INFO: task kworker/u5:3:10673 blocked for more than 143 seconds. Not tainted 5.15.0-next-20211109-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:3 state:D stack:26864 pid:10673 ppid: 2 flags:0x00004000 Workqueue: hci1 scan_update_work Call Trace: context_switch kernel/sched/core.c:4984 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6265 schedule+0xd2/0x260 kernel/sched/core.c:6338 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6397 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 hci_req_sync net/bluetooth/hci_request.c:209 [inline] scan_update_work+0x26/0xb0 net/bluetooth/hci_request.c:1987 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INFO: task kworker/u4:10:13889 blocked for more than 143 seconds. Not tainted 5.15.0-next-20211109-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:10 state:D stack:26504 pid:13889 ppid: 2 flags:0x00004000 Workqueue: netns cleanup_net Call Trace: context_switch kernel/sched/core.c:4984 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6265 schedule+0xd2/0x260 kernel/sched/core.c:6338 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6397 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 rfkill_unregister+0xda/0x2c0 net/rfkill/core.c:1117 wiphy_unregister+0x134/0xbf0 net/wireless/core.c:1027 ieee80211_unregister_hw+0x160/0x1f0 net/mac80211/main.c:1410 mac80211_hwsim_del_radio drivers/net/wireless/mac80211_hwsim.c:3583 [inline] hwsim_exit_net+0x50e/0xca0 drivers/net/wireless/mac80211_hwsim.c:4346 ops_exit_list+0xb0/0x160 net/core/net_namespace.c:168 cleanup_net+0x4ea/0xb00 net/core/net_namespace.c:593 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INFO: task systemd-rfkill:29284 blocked for more than 143 seconds. Not tainted 5.15.0-next-20211109-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:systemd-rfkill state:D stack:25984 pid:29284 ppid: 1 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4984 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6265 schedule+0xd2/0x260 kernel/sched/core.c:6338 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1857 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x174/0x270 kernel/sched/completion.c:138 __flush_work+0x56c/0xb10 kernel/workqueue.c:3084 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3171 hci_request_cancel_all+0x44/0x130 net/bluetooth/hci_request.c:2869 hci_dev_close_sync+0xa1/0x10b0 net/bluetooth/hci_sync.c:3970 hci_dev_do_close+0x32/0x70 net/bluetooth/hci_core.c:553 hci_rfkill_set_block+0x19c/0x1d0 net/bluetooth/hci_core.c:935 rfkill_set_block+0x1f9/0x540 net/rfkill/core.c:344 rfkill_fop_write+0x41a/0x500 net/rfkill/core.c:1276 vfs_write+0x28e/0xae0 fs/read_write.c:588 ksys_write+0x1ee/0x250 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f5fed8b81b0 RSP: 002b:00007fff3b714448 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000055b2da4c6040 RCX: 00007f5fed8b81b0 RDX: 0000000000000008 RSI: 00007fff3b714490 RDI: 0000000000000003 RBP: 00007fff3b714488 R08: 000055b2da4cc1b0 R09: 0000000000001010 R10: 0000000000080000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007fff3b714480 R14: 0000000000000000 R15: 0000000000000003 INFO: task syz-executor.5:29385 blocked for more than 144 seconds. Not tainted 5.15.0-next-20211109-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:23928 pid:29385 ppid: 1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4984 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6265 schedule+0xd2/0x260 kernel/sched/core.c:6338 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6397 __mutex_lock_common kernel/locking/mutex.c:680 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:740 rfkill_fop_open+0x10d/0x720 net/rfkill/core.c:1148 misc_open+0x372/0x4a0 drivers/char/misc.c:141 chrdev_open+0x266/0x770 fs/char_dev.c:414 do_dentry_open+0x4c8/0x1250 fs/open.c:822 do_open fs/namei.c:3426 [inline] path_openat+0x1cad/0x2750 fs/namei.c:3559 do_filp_open+0x1aa/0x400 fs/namei.c:3586 do_sys_openat2+0x16d/0x4d0 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_openat fs/open.c:1244 [inline] __se_sys_openat fs/open.c:1239 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1239 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f8bc4baca04 RSP: 002b:00007ffc353311b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ffc353318f8 RCX: 00007f8bc4baca04 RDX: 0000000000000002 RSI: 00007f8bc4c5326f RDI: 00000000ffffff9c RBP: 00007f8bc4c5326f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 00007ffc35331390 R14: 0000000000000000 R15: 00000000000000f8 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 no locks held by systemd-journal/2968. 2 locks held by in:imklog/6231: 3 locks held by kworker/u5:3/10673: #0: ffff88802d170138 ((wq_completion)hci1){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff88802d170138 ((wq_completion)hci1){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff88802d170138 ((wq_completion)hci1){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff88802d170138 ((wq_completion)hci1){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff88802d170138 ((wq_completion)hci1){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff88802d170138 ((wq_completion)hci1){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc90001b3fdb0 ((work_completion)(&hdev->scan_update)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 #2: ffff88803c4410d8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync net/bluetooth/hci_request.c:209 [inline] #2: ffff88803c4410d8 (&hdev->req_lock){+.+.}-{3:3}, at: scan_update_work+0x26/0xb0 net/bluetooth/hci_request.c:1987 4 locks held by kworker/u4:10/13889: #0: ffff888144bab138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888144bab138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888144bab138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888144bab138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888144bab138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888144bab138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269 #1: ffffc90004fafdb0 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 #2: ffffffff8d2f8950 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xb00 net/core/net_namespace.c:555 #3: ffffffff8d6f9648 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_unregister+0xda/0x2c0 net/rfkill/core.c:1117 2 locks held by kworker/u4:18/13920: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffff8880b9c279c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x173/0x490 kernel/sched/psi.c:871 2 locks held by systemd-rfkill/29284: #0: ffffffff8d6f9648 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0xff/0x500 net/rfkill/core.c:1260 #1: ffff88803c4410d8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x2a/0x70 net/bluetooth/hci_core.c:551 2 locks held by syz-executor.5/29385: #0: ffffffff8c5e3288 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x55/0x4a0 drivers/char/misc.c:107 #1: ffffffff8d6f9648 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_open+0x10d/0x720 net/rfkill/core.c:1148 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.0-next-20211109-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:254 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:339 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 13920 Comm: kworker/u4:18 Not tainted 5.15.0-next-20211109-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:iret_to_self arch/x86/include/asm/sync_core.h:38 [inline] RIP: 0010:sync_core arch/x86/include/asm/sync_core.h:88 [inline] RIP: 0010:do_sync_core+0x1d/0x20 arch/x86/kernel/alternative.c:1107 Code: c8 93 00 4c 8b 44 24 20 e9 b8 fd ff ff eb 07 0f 1f 00 0f 01 e8 c3 8c d0 50 54 48 83 04 24 08 9c 8c c8 50 68 1d cc 2a 81 48 cf 66 90 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 41 56 31 RSP: 0018:ffffc9000472f9f0 EFLAGS: 00000096 RAX: 0000000000000010 RBX: 0000000000000200 RCX: 0000000000000000 RDX: ffff88802c9e57c0 RSI: ffffffff816c5c5a RDI: 0000000000000000 RBP: ffff8880b9c3ab90 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff817e0dbd R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000008 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f612c953000 CR3: 000000000b88e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: smp_call_function_many_cond+0xa86/0xc90 kernel/smp.c:960 on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1135 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1112 [inline] text_poke_bp_batch+0x47d/0x560 arch/x86/kernel/alternative.c:1366 text_poke_flush arch/x86/kernel/alternative.c:1451 [inline] text_poke_flush arch/x86/kernel/alternative.c:1448 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1458 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d5/0x430 kernel/jump_label.c:830 static_key_disable_cpuslocked+0x152/0x1b0 kernel/jump_label.c:207 static_key_disable+0x16/0x20 kernel/jump_label.c:215 toggle_allocation_gate mm/kfence/core.c:746 [inline] toggle_allocation_gate+0x183/0x390 mm/kfence/core.c:724 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: c8 93 00 4c enterq $0x93,$0x4c 4: 8b 44 24 20 mov 0x20(%rsp),%eax 8: e9 b8 fd ff ff jmpq 0xfffffdc5 d: eb 07 jmp 0x16 f: 0f 1f 00 nopl (%rax) 12: 0f 01 e8 serialize 15: c3 retq 16: 8c d0 mov %ss,%eax 18: 50 push %rax 19: 54 push %rsp 1a: 48 83 04 24 08 addq $0x8,(%rsp) 1f: 9c pushfq 20: 8c c8 mov %cs,%eax 22: 50 push %rax 23: 68 1d cc 2a 81 pushq $0xffffffff812acc1d 28: 48 cf iretq * 2a: c3 retq <-- trapping instruction 2b: 66 90 xchg %ax,%ax 2d: c3 retq 2e: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 35: 00 00 00 00 39: 0f 1f 40 00 nopl 0x0(%rax) 3d: 41 56 push %r14 3f: 31 .byte 0x31