================================================================== BUG: KASAN: null-ptr-deref in __queue_work+0x242/0xed0 kernel/workqueue.c:1476 Read of size 8 at addr 0000000000000000 by task syz-executor.0/4406 CPU: 1 PID: 4406 Comm: syz-executor.0 Not tainted 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_backtrace+0x2e/0x3c arch/riscv/kernel/stacktrace.c:113 [] show_stack+0x34/0x40 arch/riscv/kernel/stacktrace.c:119 [] __dump_stack lib/dump_stack.c:88 [inline] [] dump_stack_lvl+0xe4/0x150 lib/dump_stack.c:106 [] __kasan_report mm/kasan/report.c:446 [inline] [] kasan_report+0x1de/0x1e0 mm/kasan/report.c:459 [] check_region_inline mm/kasan/generic.c:183 [inline] [] __asan_load8+0x6e/0x96 mm/kasan/generic.c:256 [] __queue_work+0x242/0xed0 kernel/workqueue.c:1476 [] queue_work_on+0xe8/0xfe kernel/workqueue.c:1562 [] queue_work include/linux/workqueue.h:502 [inline] [] nci_send_cmd+0x14e/0x1e4 net/nfc/nci/core.c:1372 [] nci_reset_req+0x90/0xb8 net/nfc/nci/core.c:166 [] __nci_request+0x50/0x1a6 net/nfc/nci/core.c:107 [] nci_open_device net/nfc/nci/core.c:502 [inline] [] nci_dev_up+0x1b0/0x3fe net/nfc/nci/core.c:627 [] nfc_dev_up+0x128/0x26c net/nfc/core.c:118 [] nfc_genl_dev_up+0x5e/0x8a net/nfc/netlink.c:770 [] genl_family_rcv_msg_doit+0x19a/0x23c net/netlink/genetlink.c:731 [] genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] [] genl_rcv_msg+0x236/0x3ba net/netlink/genetlink.c:792 [] netlink_rcv_skb+0xf8/0x2be net/netlink/af_netlink.c:2494 [] genl_rcv+0x36/0x4c net/netlink/genetlink.c:803 [] netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] [] netlink_unicast+0x40e/0x5fe net/netlink/af_netlink.c:1343 [] netlink_sendmsg+0x4e0/0x994 net/netlink/af_netlink.c:1919 [] sock_sendmsg_nosec net/socket.c:705 [inline] [] sock_sendmsg+0xa0/0xc4 net/socket.c:725 [] ____sys_sendmsg+0x46e/0x484 net/socket.c:2413 [] ___sys_sendmsg+0x16c/0x1f6 net/socket.c:2467 [] __sys_sendmsg+0xba/0x150 net/socket.c:2496 [] __do_sys_sendmsg net/socket.c:2505 [inline] [] sys_sendmsg+0x2c/0x3a net/socket.c:2503 [] ret_from_syscall+0x0/0x2 ================================================================== Unable to handle kernel access to user memory without uaccess routines at virtual address 0000000000000000 Oops [#1] Modules linked in: CPU: 1 PID: 4406 Comm: syz-executor.0 Tainted: G B 5.17.0-rc1-syzkaller-00002-g0966d385830d #0 Hardware name: riscv-virtio,qemu (DT) epc : __queue_work+0x242/0xed0 kernel/workqueue.c:1476 ra : __queue_work+0x242/0xed0 kernel/workqueue.c:1476 epc : ffffffff800924a4 ra : ffffffff800924a4 sp : ffffaf800e493010 gp : ffffffff85863ac0 tp : ffffaf800e6648c0 t0 : ffffffff86bcb657 t1 : fffff5ef0b53c90c t2 : 0000000000000000 s0 : ffffaf800e4930a0 s1 : ffffaf805a9f1840 a0 : 0000000000000001 a1 : 0000000000000007 a2 : 1ffff5f001ccc918 a3 : ffffffff831afd6c a4 : 0000000000000000 a5 : ffffaf800e6658c0 a6 : 0000000000f00000 a7 : ffffaf805a9e4863 s2 : 0000000000000000 s3 : ffffaf80124970f8 s4 : ffffaf80108d4000 s5 : ffffaf8007229800 s6 : 0000000000000001 s7 : 0000000000000008 s8 : ffffffff83449840 s9 : ffffffff86c1a620 s10: ffffaf80108d41c0 s11: ffffffff855c0c80 t3 : 0000000061736944 t4 : fffff5ef0b53c90c t5 : fffff5ef0b53c90d t6 : ffffaf800e492a58 status: 0000000000000100 badaddr: 0000000000000000 cause: 000000000000000d [] queue_work_on+0xe8/0xfe kernel/workqueue.c:1562 [] queue_work include/linux/workqueue.h:502 [inline] [] nci_send_cmd+0x14e/0x1e4 net/nfc/nci/core.c:1372 [] nci_reset_req+0x90/0xb8 net/nfc/nci/core.c:166 [] __nci_request+0x50/0x1a6 net/nfc/nci/core.c:107 [] nci_open_device net/nfc/nci/core.c:502 [inline] [] nci_dev_up+0x1b0/0x3fe net/nfc/nci/core.c:627 [] nfc_dev_up+0x128/0x26c net/nfc/core.c:118 [] nfc_genl_dev_up+0x5e/0x8a net/nfc/netlink.c:770 [] genl_family_rcv_msg_doit+0x19a/0x23c net/netlink/genetlink.c:731 [] genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] [] genl_rcv_msg+0x236/0x3ba net/netlink/genetlink.c:792 [] netlink_rcv_skb+0xf8/0x2be net/netlink/af_netlink.c:2494 [] genl_rcv+0x36/0x4c net/netlink/genetlink.c:803 [] netlink_unicast_kernel net/netlink/af_netlink.c:1317 [inline] [] netlink_unicast+0x40e/0x5fe net/netlink/af_netlink.c:1343 [] netlink_sendmsg+0x4e0/0x994 net/netlink/af_netlink.c:1919 [] sock_sendmsg_nosec net/socket.c:705 [inline] [] sock_sendmsg+0xa0/0xc4 net/socket.c:725 [] ____sys_sendmsg+0x46e/0x484 net/socket.c:2413 [] ___sys_sendmsg+0x16c/0x1f6 net/socket.c:2467 [] __sys_sendmsg+0xba/0x150 net/socket.c:2496 [] __do_sys_sendmsg net/socket.c:2505 [inline] [] sys_sendmsg+0x2c/0x3a net/socket.c:2503 [] ret_from_syscall+0x0/0x2 ---[ end trace 0000000000000000 ]---