syzbot


KCSAN: data-race in can_rcv_filter / can_rx_unregister (2)

Status: auto-obsoleted due to no activity on 2023/08/01 12:06
Subsystems: can
[Documentation on labels]
First crash: 633d, last: 633d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in can_rcv_filter / can_rx_unregister can 1 694d 694d 0/28 auto-obsoleted due to no activity on 2023/06/01 19:55
upstream KCSAN: data-race in can_rcv_filter / can_rx_unregister (3) can 1 303d 303d 0/28 auto-obsoleted due to no activity on 2024/06/27 05:25

Sample crash report:
==================================================================
BUG: KCSAN: data-race in can_rcv_filter / can_rx_unregister

read-write to 0xffff88810864e020 of 4 bytes by task 8913 on cpu 0:
 can_rx_unregister+0x429/0x520 net/can/af_can.c:553
 bcm_delete_rx_op+0x2bd/0x3b0 net/can/bcm.c:799
 bcm_sendmsg+0x3c3/0x470 net/can/bcm.c:1370
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg net/socket.c:748 [inline]
 ____sys_sendmsg+0x375/0x4c0 net/socket.c:2504
 ___sys_sendmsg net/socket.c:2558 [inline]
 __sys_sendmsg+0x1e9/0x270 net/socket.c:2587
 __do_sys_sendmsg net/socket.c:2596 [inline]
 __se_sys_sendmsg net/socket.c:2594 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2594
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff88810864e020 of 4 bytes by interrupt on cpu 1:
 can_rcv_filter+0x40/0x490 net/can/af_can.c:583
 can_receive+0x116/0x1f0 net/can/af_can.c:659
 canfd_rcv+0xe7/0x180 net/can/af_can.c:702
 __netif_receive_skb_one_core net/core/dev.c:5493 [inline]
 __netif_receive_skb+0x90/0x1b0 net/core/dev.c:5607
 process_backlog+0x21f/0x380 net/core/dev.c:5935
 __napi_poll+0x60/0x3b0 net/core/dev.c:6498
 napi_poll net/core/dev.c:6565 [inline]
 net_rx_action+0x32b/0x750 net/core/dev.c:6698
 __do_softirq+0xc1/0x265 kernel/softirq.c:553
 invoke_softirq kernel/softirq.c:427 [inline]
 __irq_exit_rcu kernel/softirq.c:632 [inline]
 irq_exit_rcu+0x3b/0x90 kernel/softirq.c:644
 sysvec_apic_timer_interrupt+0x6d/0x80 arch/x86/kernel/apic/apic.c:1109
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645
 avc_search_node security/selinux/avc.c:532 [inline]
 avc_lookup security/selinux/avc.c:560 [inline]
 avc_has_perm_noaudit+0xa5/0x210 security/selinux/avc.c:1154
 selinux_inode_permission+0x2cf/0x410 security/selinux/hooks.c:3040
 security_inode_permission+0x6a/0xa0 security/security.c:2072
 inode_permission+0xbf/0x300 fs/namei.c:536
 may_lookup fs/namei.c:1716 [inline]
 link_path_walk+0x159/0x7e0 fs/namei.c:2267
 path_parentat fs/namei.c:2526 [inline]
 __filename_parentat+0x13b/0x3c0 fs/namei.c:2550
 filename_parentat fs/namei.c:2568 [inline]
 filename_create+0x77/0x2b0 fs/namei.c:3867
 do_mkdirat+0x63/0x260 fs/namei.c:4132
 __do_sys_mkdirat fs/namei.c:4155 [inline]
 __se_sys_mkdirat fs/namei.c:4153 [inline]
 __x64_sys_mkdirat+0x50/0x60 fs/namei.c:4153
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x00000001 -> 0x00000000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8912 Comm: syz-executor.5 Not tainted 6.4.0-syzkaller-01224-g1ef6663a587b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/06/27 12:03 upstream 1ef6663a587b 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in can_rcv_filter / can_rx_unregister
* Struck through repros no longer work on HEAD.