syzbot


KCSAN: data-race in nci_dev_up / nci_req_complete

Status: auto-obsoleted due to no activity on 2023/08/11 03:41
Subsystems: net nfc
[Documentation on labels]
First crash: 894d, last: 894d
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 (2) nfc net 6 1 780d 780d 0/29 auto-obsoleted due to no activity on 2023/12/02 10:14
upstream KCSAN: data-race in nci_dev_up / nci_req_complete (4) net nfc 6 2 646d 646d 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 709d 723d 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 0xffff888131e681a0 of 4 bytes by task 24524 on cpu 1:
 __nci_request net/nfc/nci/core.c:136 [inline]
 nci_open_device net/nfc/nci/core.c:521 [inline]
 nci_dev_up+0x4e6/0x890 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:970 [inline]
 genl_family_rcv_msg net/netlink/genetlink.c:1050 [inline]
 genl_rcv_msg+0x67d/0x720 net/netlink/genetlink.c:1067
 netlink_rcv_skb+0x126/0x220 net/netlink/af_netlink.c:2549
 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1078
 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
 netlink_unicast+0x56f/0x640 net/netlink/af_netlink.c:1365
 netlink_sendmsg+0x665/0x770 net/netlink/af_netlink.c:1914
 sock_sendmsg_nosec net/socket.c:725 [inline]
 sock_sendmsg net/socket.c:748 [inline]
 ____sys_sendmsg+0x37c/0x4d0 net/socket.c:2494
 ___sys_sendmsg net/socket.c:2548 [inline]
 __sys_sendmsg+0x1e9/0x270 net/socket.c:2577
 __do_sys_sendmsg net/socket.c:2586 [inline]
 __se_sys_sendmsg net/socket.c:2584 [inline]
 __x64_sys_sendmsg+0x46/0x50 net/socket.c:2584
 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 0xffff888131e681a0 of 4 bytes by task 19824 on cpu 0:
 nci_req_complete+0x24/0x90 net/nfc/nci/core.c:80
 nci_core_init_rsp_packet net/nfc/nci/rsp.c:162 [inline]
 nci_rsp_packet+0xd75/0xe10 net/nfc/nci/rsp.c:376
 nci_rx_work+0xe4/0x200 net/nfc/nci/core.c:1513
 process_one_work+0x434/0x860 kernel/workqueue.c:2597
 worker_thread+0x5f2/0xa10 kernel/workqueue.c:2748
 kthread+0x1d7/0x210 kernel/kthread.c:389
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 19824 Comm: kworker/u4:9 Not tainted 6.4.0-syzkaller-12155-ga452483508d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: nfc2_nci_rx_wq nci_rx_work
==================================================================
nci: nci_rsp_packet: unknown rsp opcode 0xe02

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/07 03:34 upstream a452483508d7 22ae5830 .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.