syzbot


KCSAN: data-race in nci_dev_up / nci_req_complete (2)

Status: auto-obsoleted due to no activity on 2023/12/02 10:14
Subsystems: nfc net
[Documentation on labels]
First crash: 668d, last: 668d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in nci_dev_up / nci_req_complete net nfc 6 1 781d 781d 0/29 auto-obsoleted due to no activity on 2023/08/11 03:41
upstream KCSAN: data-race in nci_dev_up / nci_req_complete (4) net nfc 6 2 533d 533d 0/29 auto-obsoleted due to no activity on 2024/04/14 23:38
upstream KCSAN: data-race in nci_dev_up / nci_req_complete (3) net nfc 6 2 596d 610d 0/29 auto-obsoleted due to no activity on 2024/02/11 16:39

Sample crash report:
==================================================================
BUG: KCSAN: data-race in nci_dev_up / nci_req_complete

write to 0xffff888106d069a0 of 4 bytes by task 27998 on cpu 1:
 __nci_request net/nfc/nci/core.c:136 [inline]
 nci_open_device net/nfc/nci/core.c:503 [inline]
 nci_dev_up+0x257/0x8a0 net/nfc/nci/core.c:632
 nfc_dev_up+0x11b/0x1c0 net/nfc/core.c:118
 nfc_genl_dev_up+0x53/0x80 net/nfc/netlink.c:770
 genl_family_rcv_msg_doit net/netlink/genetlink.c:971 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1051 [inline]
 genl_rcv_msg+0x607/0x6a0 net/netlink/genetlink.c:1066
 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2545
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1075
 netlink_unicast_kernel net/netlink/af_netlink.c:1342 [inline]
 netlink_unicast+0x589/0x650 net/netlink/af_netlink.c:1368
 netlink_sendmsg+0x66e/0x770 net/netlink/af_netlink.c:1910
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg net/socket.c:745 [inline]
 ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2558
 ___sys_sendmsg net/socket.c:2612 [inline]
 __sys_sendmsg+0x1e9/0x270 net/socket.c:2641
 __do_sys_sendmsg net/socket.c:2650 [inline]
 __se_sys_sendmsg net/socket.c:2648 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2648
 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 0xffff888106d069a0 of 4 bytes by task 18468 on cpu 0:
 nci_req_complete+0x24/0x90 net/nfc/nci/core.c:80
 nci_rsp_packet+0xc4d/0xe10
 nci_rx_work+0xe4/0x200 net/nfc/nci/core.c:1518
 process_one_work kernel/workqueue.c:2630 [inline]
 process_scheduled_works+0x5b8/0xa30 kernel/workqueue.c:2703
 worker_thread+0x525/0x730 kernel/workqueue.c:2784
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 18468 Comm: kworker/u4:32 Not tainted 6.6.0-rc7-syzkaller-00151-g56567a20b22b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023
Workqueue: nfc2_nci_rx_wq nci_rx_work
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/28 10:09 upstream 56567a20b22b 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in nci_dev_up / nci_req_complete
* Struck through repros no longer work on HEAD.