INFO: task syz-executor.2:17092 blocked for more than 143 seconds. Not tainted 5.16.0-rc2-next-20211125-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28232 pid:17092 ppid: 1 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:4983 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6293 schedule+0xd2/0x260 kernel/sched/core.c:6366 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6425 __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 hci_unregister_dev+0x29b/0x550 net/bluetooth/hci_core.c:2697 vhci_release+0x7c/0xf0 drivers/bluetooth/hci_vhci.c:566 __fput+0x286/0x9f0 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 exit_task_work include/linux/task_work.h:32 [inline] do_exit+0xc14/0x2c20 kernel/exit.c:832 do_group_exit+0x125/0x310 kernel/exit.c:929 __do_sys_exit_group kernel/exit.c:940 [inline] __se_sys_exit_group kernel/exit.c:938 [inline] __x64_sys_exit_group+0x3a/0x50 kernel/exit.c:938 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:0x7f6a0852dae9 RSP: 002b:00007ffd77513608 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 00007ffd77513de8 RCX: 00007f6a0852dae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000043 RBP: 0000000000000000 R08: 0000000000000025 R09: 00007ffd77513de8 R10: 0000000000000200 R11: 0000000000000246 R12: 00007f6a08587233 R13: 0000000000000010 R14: 0000000000000000 R15: 00000000000000f8 INFO: task syz-executor.5:17109 blocked for more than 143 seconds. Not tainted 5.16.0-rc2-next-20211125-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:23304 pid:17109 ppid: 1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4983 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6293 schedule+0xd2/0x260 kernel/sched/core.c:6366 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6425 __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:0x7fd4fc253a04 RSP: 002b:00007ffd14e6c070 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ffd14e6c7b8 RCX: 00007fd4fc253a04 RDX: 0000000000000002 RSI: 00007fd4fc2fa26f RDI: 00000000ffffff9c RBP: 00007fd4fc2fa26f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 00007ffd14e6c250 R14: 0000000000000000 R15: 00000000000000f8 INFO: task systemd-rfkill:17110 blocked for more than 143 seconds. Not tainted 5.16.0-rc2-next-20211125-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:systemd-rfkill state:D stack:25248 pid:17110 ppid: 1 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4983 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6293 schedule+0xd2/0x260 kernel/sched/core.c:6366 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:3085 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3172 hci_request_cancel_all+0x38/0x100 net/bluetooth/hci_request.c:2709 hci_dev_close_sync+0xa1/0x1120 net/bluetooth/hci_sync.c:3971 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:0x7fc4847a61b0 RSP: 002b:00007ffda161f298 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000055c313923040 RCX: 00007fc4847a61b0 RDX: 0000000000000008 RSI: 00007ffda161f2e0 RDI: 0000000000000003 RBP: 00007ffda161f2d8 R08: 000055c313925a60 R09: 0000000000001010 R10: 0000000000080000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffda161f2d0 R14: 0000000000000000 R15: 0000000000000003 INFO: task kworker/u5:0:17137 blocked for more than 144 seconds. Not tainted 5.16.0-rc2-next-20211125-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:0 state:D stack:29288 pid:17137 ppid: 2 flags:0x00004000 Workqueue: hci5 scan_update_work Call Trace: context_switch kernel/sched/core.c:4983 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6293 schedule+0xd2/0x260 kernel/sched/core.c:6366 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6425 __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:1911 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2299 worker_thread+0x658/0x11f0 kernel/workqueue.c:2446 kthread+0x405/0x4f0 kernel/kthread.c:345 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Showing all locks held in the system: 1 lock held by ksoftirqd/1/19: #0: ffff8880b9d39d58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:489 1 lock held by khungtaskd/27: #0: ffffffff8bb83220 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 3 locks held by kworker/u4:2/44: #0: ffff8880b9c39d58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:489 #1: ffffc9000114fdb0 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2274 #2: ffff8880b9c28518 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:946 1 lock held by in:imklog/6232: #0: ffff888013eadc70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by agetty/6242: #0: ffff88801c22c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc900031332e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 5 locks held by kworker/u4:12/16357: 1 lock held by syz-executor.2/17092: #0: ffffffff8d6fa6e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_unregister+0xda/0x2c0 net/rfkill/core.c:1117 2 locks held by syz-executor.5/17109: #0: ffffffff8c5df5e8 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x55/0x4a0 drivers/char/misc.c:107 #1: ffffffff8d6fa6e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_open+0x10d/0x720 net/rfkill/core.c:1148 2 locks held by systemd-rfkill/17110: #0: ffffffff8d6fa6e8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0xff/0x500 net/rfkill/core.c:1260 #1: ffff88801e3a5000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x2a/0x70 net/bluetooth/hci_core.c:551 3 locks held by kworker/u5:0/17137: #0: ffff888021dde138 ((wq_completion)hci5){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888021dde138 ((wq_completion)hci5){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888021dde138 ((wq_completion)hci5){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline] #0: ffff888021dde138 ((wq_completion)hci5){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888021dde138 ((wq_completion)hci5){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888021dde138 ((wq_completion)hci5){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2270 #1: ffffc9000420fdb0 ((work_completion)(&hdev->scan_update)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2274 #2: ffff88801e3a5000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync net/bluetooth/hci_request.c:209 [inline] #2: ffff88801e3a5000 (&hdev->req_lock){+.+.}-{3:3}, at: scan_update_work+0x26/0xb0 net/bluetooth/hci_request.c:1911 1 lock held by syz-executor.2/17490: #0: ffffffff8c5df5e8 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x55/0x4a0 drivers/char/misc.c:107 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc2-next-20211125-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:111 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:256 [inline] watchdog+0xcb7/0xed0 kernel/hung_task.c:413 kthread+0x405/0x4f0 kernel/kthread.c:345 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 12878 Comm: kworker/1:7 Not tainted 5.16.0-rc2-next-20211125-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_power_efficient wg_ratelimiter_gc_entries RIP: 0010:debug_spin_lock_after kernel/locking/spinlock_debug.c:93 [inline] RIP: 0010:do_raw_spin_lock+0x155/0x2b0 kernel/locking/spinlock_debug.c:117 Code: 24 04 f0 0f b1 55 00 0f 85 91 00 00 00 65 44 8b 35 48 d0 a4 7e 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 0f b6 14 02 <4c> 89 e0 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 d9 00 00 00 4c RSP: 0018:ffffc90014777c40 EFLAGS: 00000a02 RAX: dffffc0000000000 RBX: 1ffff920028eef89 RCX: ffffffff815d4520 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffc90014777c68 RBP: ffffffff8c838280 R08: 0000000000000001 R09: 0000000000000003 R10: fffff520028eef8d R11: 0000000000000000 R12: ffffffff8c838288 R13: ffffffff8c838290 R14: 0000000000000001 R15: 00000000000007db FS: 0000000000000000(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1c3bee8000 CR3: 000000001d0aa000 CR4: 00000000003526e0 Call Trace: spin_lock include/linux/spinlock.h:354 [inline] wg_ratelimiter_gc_entries+0x5d/0x430 drivers/net/wireguard/ratelimiter.c:63 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2299 worker_thread+0x658/0x11f0 kernel/workqueue.c:2446 kthread+0x405/0x4f0 kernel/kthread.c:345 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: 24 04 and $0x4,%al 2: f0 0f b1 55 00 lock cmpxchg %edx,0x0(%rbp) 7: 0f 85 91 00 00 00 jne 0x9e d: 65 44 8b 35 48 d0 a4 mov %gs:0x7ea4d048(%rip),%r14d # 0x7ea4d05d 14: 7e 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 4c 89 e2 mov %r12,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx 26: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx * 2a: 4c 89 e0 mov %r12,%rax <-- trapping instruction 2d: 83 e0 07 and $0x7,%eax 30: 83 c0 03 add $0x3,%eax 33: 38 d0 cmp %dl,%al 35: 7c 08 jl 0x3f 37: 84 d2 test %dl,%dl 39: 0f 85 d9 00 00 00 jne 0x118 3f: 4c rex.WR