INFO: task kworker/u4:37:17891 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:37 state:D stack:26280 pid:17891 ppid:2 flags:0x00004000 Workqueue: nfc2_nci_rx_wq nci_rx_work Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 device_lock include/linux/device.h:832 [inline] nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778 nci_target_auto_activated net/nfc/nci/ntf.c:489 [inline] nci_rf_intf_activated_ntf_packet net/nfc/nci/ntf.c:672 [inline] nci_ntf_packet+0x1326/0x2bc0 net/nfc/nci/ntf.c:802 nci_rx_work+0x190/0x330 net/nfc/nci/core.c:1517 process_one_work+0x991/0x15c0 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.5:19108 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:25288 pid:19108 ppid:5103 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_timeout+0x276/0x2b0 kernel/time/timer.c:2143 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x1ce/0x5c0 kernel/sched/completion.c:106 __flush_workqueue+0x3f5/0x13a0 kernel/workqueue.c:2962 nci_close_device+0x142/0x370 net/nfc/nci/core.c:579 nci_unregister_device+0x38/0x310 net/nfc/nci/core.c:1292 virtual_ncidev_close+0x52/0xb0 drivers/nfc/virtual_ncidev.c:163 __fput+0x27c/0xa90 fs/file_table.c:321 task_work_run+0x16f/0x270 kernel/task_work.c:179 get_signal+0x1c7/0x25b0 kernel/signal.c:2635 arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x11f/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f27f6c8c169 RSP: 002b:00007f27f57fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffff2 RBX: 00007f27f6dabf80 RCX: 00007f27f6c8c169 RDX: 0000000000000064 RSI: 0000000020000500 RDI: 0000000000000003 RBP: 00007f27f6ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2cf4c89f R14: 00007f27f57fe300 R15: 0000000000022000 INFO: task syz-executor.5:19130 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28328 pid:19130 ppid:5103 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 genl_lock net/netlink/genetlink.c:33 [inline] genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2577 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 ____sys_sendmsg+0x71c/0x900 net/socket.c:2501 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2555 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f27f6c8c169 RSP: 002b:00007f27f57bc168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f27f6dac120 RCX: 00007f27f6c8c169 RDX: 0000000000000000 RSI: 0000000020000780 RDI: 0000000000000005 RBP: 00007f27f6ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2cf4c89f R14: 00007f27f57bc300 R15: 0000000000022000 INFO: task syz-executor.5:19138 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:26824 pid:19138 ppid:5103 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 nci_request net/nfc/nci/core.c:149 [inline] nci_start_poll+0x319/0x970 net/nfc/nci/core.c:854 nfc_start_poll+0x192/0x320 net/nfc/core.c:225 nfc_genl_start_poll+0x1ac/0x490 net/nfc/netlink.c:828 genl_family_rcv_msg_doit.isra.0+0x1e6/0x2d0 net/netlink/genetlink.c:968 genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline] genl_rcv_msg+0x4ff/0x7e0 net/netlink/genetlink.c:1065 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2577 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 ____sys_sendmsg+0x71c/0x900 net/socket.c:2501 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2555 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2584 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f27f6c8c169 RSP: 002b:00007f27f537a168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f27f6dac2c0 RCX: 00007f27f6c8c169 RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000005 RBP: 00007f27f6ce7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2cf4c89f R14: 00007f27f537a300 R15: 0000000000022000 INFO: task syz-executor.0:19141 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27552 pid:19141 ppid:5098 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 genl_lock net/netlink/genetlink.c:33 [inline] genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2577 genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 __sys_sendto+0x23a/0x340 net/socket.c:2142 __do_sys_sendto net/socket.c:2154 [inline] __se_sys_sendto net/socket.c:2150 [inline] __x64_sys_sendto+0xe1/0x1b0 net/socket.c:2150 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f58c2a3e19c RSP: 002b:00007f58c3726000 EFLAGS: 00000293 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 00007f58c37260f0 RCX: 00007f58c2a3e19c RDX: 000000000000001c RSI: 00007f58c3726140 RDI: 0000000000000005 RBP: 0000000000000000 R08: 00007f58c3726054 R09: 000000000000000c R10: 0000000000000000 R11: 0000000000000293 R12: 00007f58c37260a8 R13: 00007f58c3726140 R14: 0000000000000005 R15: 0000000000000000 Showing all locks held in the system: 3 locks held by kworker/u4:1/11: #0: ffff8880b993c298 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:539 #1: ffffc90000107da8 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x15c0 kernel/workqueue.c:2365 #2: ffffffff8c7955c0 (rcu_read_lock){....}-{1:2}, at: batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:406 [inline] #2: ffffffff8c7955c0 (rcu_read_lock){....}-{1:2}, at: batadv_nc_worker+0xf7/0xfe0 net/batman-adv/network-coding.c:719 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c794a70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c794770 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8c7955c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6495 2 locks held by getty/4751: #0: ffff888029a80098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:37/17891: #0: ffff88801d71a938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88801d71a938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88801d71a938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff88801d71a938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:639 [inline] #0: ffff88801d71a938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:666 [inline] #0: ffff88801d71a938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: process_one_work+0x87a/0x15c0 kernel/workqueue.c:2361 #1: ffffc900151ffda8 ((work_completion)(&ndev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x15c0 kernel/workqueue.c:2365 #2: ffff88801891c100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:832 [inline] #2: ffff88801891c100 (&dev->mutex){....}-{3:3}, at: nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778 1 lock held by syz-executor.5/19108: #0: ffff88801891f350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_close_device+0x6d/0x370 net/nfc/nci/core.c:561 2 locks held by syz-executor.5/19130: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 5 locks held by syz-executor.5/19138: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 #2: ffff88801891c508 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_genl_start_poll+0x19e/0x490 net/nfc/netlink.c:826 #3: ffff88801891c100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:832 [inline] #3: ffff88801891c100 (&dev->mutex){....}-{3:3}, at: nfc_start_poll+0x58/0x320 net/nfc/core.c:208 #4: ffff88801891f350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_request net/nfc/nci/core.c:149 [inline] #4: ffff88801891f350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_start_poll+0x319/0x970 net/nfc/nci/core.c:854 2 locks held by syz-executor.0/19141: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 2 locks held by syz-executor.5/19253: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 2 locks held by syz-executor.0/19263: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 2 locks held by syz-executor.5/19278: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 2 locks held by syz-executor.0/19288: #0: ffffffff8e1875d0 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075 #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline] #1: ffffffff8e187688 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 18098 Comm: kworker/u4:61 Not tainted 6.3.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: phy7 ieee80211_iface_work RIP: 0010:debug_spin_lock_before kernel/locking/spinlock_debug.c:85 [inline] RIP: 0010:do_raw_spin_lock+0x89/0x2b0 kernel/locking/spinlock_debug.c:114 Code: 00 00 00 48 89 4c 24 60 31 c9 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 da 01 00 00 8b 45 04 <3d> ad 4e ad de 0f 85 76 01 00 00 4c 8d 6d 10 48 b8 00 00 00 00 00 RSP: 0018:ffffc900161a7890 EFLAGS: 00000046 RAX: 00000000dead4ead RBX: 1ffff92002c34f13 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffffff920288ac RBP: ffffffff920288a8 R08: 0000000000000000 R09: ffffffff914d2b87 R10: fffffbfff229a570 R11: 0000000000000000 R12: 0000000000000216 R13: ffff8880349f2800 R14: dead000000000100 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0060ad000 CR3: 000000002bac8000 CR4: 0000000000350ee0 Call Trace: __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline] _raw_spin_lock_irqsave+0x45/0x60 kernel/locking/spinlock.c:162 __debug_check_no_obj_freed lib/debugobjects.c:984 [inline] debug_check_no_obj_freed+0xcb/0x420 lib/debugobjects.c:1027 slab_free_hook mm/slub.c:1756 [inline] slab_free_freelist_hook+0xeb/0x1c0 mm/slub.c:1807 slab_free mm/slub.c:3787 [inline] __kmem_cache_free+0xaf/0x2d0 mm/slub.c:3800 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] ieee80211_ibss_rx_queued_mgmt+0x1b18/0x3030 net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1583 [inline] ieee80211_iface_work+0xa4d/0xd70 net/mac80211/iface.c:1637 process_one_work+0x991/0x15c0 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308