INFO: task kworker/u5:4:6568 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-next-20211208-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:4 state:D stack:27384 pid: 6568 ppid: 2 flags:0x00004000 Workqueue: hci4 scan_update_work Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 hci_req_sync net/bluetooth/hci_request.c:198 [inline] scan_update_work+0x26/0xb0 net/bluetooth/hci_request.c:1900 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2318 worker_thread+0x658/0x11f0 kernel/workqueue.c:2465 kthread+0x405/0x4f0 kernel/kthread.c:345 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 INFO: task systemd-rfkill:32026 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-next-20211208-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:systemd-rfkill state:D stack:26000 pid:32026 ppid: 1 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 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:3104 __cancel_work_timer+0x3f9/0x570 kernel/workqueue.c:3191 hci_request_cancel_all+0x38/0x100 net/bluetooth/hci_request.c:2698 hci_dev_close_sync+0xa1/0x1120 net/bluetooth/hci_sync.c:4028 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:0x7fbee22df1b0 RSP: 002b:00007ffefb497e38 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00005617096c2040 RCX: 00007fbee22df1b0 RDX: 0000000000000008 RSI: 00007ffefb497e80 RDI: 0000000000000003 RBP: 00007ffefb497e78 R08: 00005617096c4a50 R09: 0000000000001010 R10: 0000000000080000 R11: 0000000000000246 R12: 0000000000000001 R13: 00007ffefb497e70 R14: 0000000000000000 R15: 0000000000000003 INFO: task syz-executor.2:32062 blocked for more than 143 seconds. Not tainted 5.16.0-rc4-next-20211208-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:23712 pid:32062 ppid: 1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6428 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 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:824 do_open fs/namei.c:3476 [inline] path_openat+0x1c9e/0x2940 fs/namei.c:3609 do_filp_open+0x1aa/0x400 fs/namei.c:3636 do_sys_openat2+0x16d/0x4d0 fs/open.c:1214 do_sys_open fs/open.c:1230 [inline] __do_sys_openat fs/open.c:1246 [inline] __se_sys_openat fs/open.c:1241 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1241 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:0x7f693fab4db4 RSP: 002b:00007ffc5a50e740 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ffc5a50ee88 RCX: 00007f693fab4db4 RDX: 0000000000000002 RSI: 00007f693fb5b31c RDI: 00000000ffffff9c RBP: 00007f693fb5b31c R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 00007ffc5a50e920 R14: 00007f693fc154d8 R15: 0000000000000006 Showing all locks held in the system: 1 lock held by khungtaskd/26: #0: ffffffff8bb828a0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6460 1 lock held by systemd-journal/2951: 1 lock held by in:imklog/6231: 2 locks held by agetty/6445: #0: ffff888012986098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc9000295d2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2077 3 locks held by kworker/u5:4/6568: #0: ffff888065dca938 ((wq_completion)hci4){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888065dca938 ((wq_completion)hci4){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888065dca938 ((wq_completion)hci4){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888065dca938 ((wq_completion)hci4){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline] #0: ffff888065dca938 ((wq_completion)hci4){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline] #0: ffff888065dca938 ((wq_completion)hci4){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2289 #1: ffffc900028cfdb0 ((work_completion)(&hdev->scan_update)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2293 #2: ffff88801a049000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync net/bluetooth/hci_request.c:198 [inline] #2: ffff88801a049000 (&hdev->req_lock){+.+.}-{3:3}, at: scan_update_work+0x26/0xb0 net/bluetooth/hci_request.c:1900 3 locks held by kworker/u4:15/18913: 2 locks held by systemd-rfkill/32026: #0: ffffffff8d70c0c8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0xff/0x500 net/rfkill/core.c:1260 #1: ffff88801a049000 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x2a/0x70 net/bluetooth/hci_core.c:551 2 locks held by syz-executor.2/32062: #0: ffffffff8c5ed4c8 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x55/0x4a0 drivers/char/misc.c:107 #1: ffffffff8d70c0c8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_open+0x10d/0x720 net/rfkill/core.c:1148 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 26 Comm: khungtaskd Not tainted 5.16.0-rc4-next-20211208-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: 2951 Comm: systemd-journal Not tainted 5.16.0-rc4-next-20211208-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:trace_lock_acquire include/trace/events/lock.h:13 [inline] RIP: 0010:lock_acquire+0x436/0x510 kernel/locking/lockdep.c:5610 Code: fa ff 74 24 08 e8 8a f7 fe ff 5e 5f 65 ff 0d e1 90 a5 7e 0f 85 63 fc ff ff e8 45 66 a3 ff e9 59 fc ff ff 65 ff 05 ca 90 a5 7e <48> 8b 05 23 4c 21 0c e8 3e d7 05 00 85 c0 74 17 65 ff 0d b3 90 a5 RSP: 0018:ffffc90001a4fe08 EFLAGS: 00000083 RAX: 0000000000000001 RBX: 1ffff92000349fc3 RCX: ffffffff815cdbb8 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff8d926690 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff8d926697 R10: fffffbfff1b24cd2 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffff88807be82468 R15: 0000000000000000 FS: 00007fd3f072a8c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3edd8f000 CR3: 0000000021c6a000 CR4: 00000000003506e0 Call Trace: do_write_seqcount_begin_nested include/linux/seqlock.h:520 [inline] do_write_seqcount_begin include/linux/seqlock.h:545 [inline] vtime_user_enter+0x9f/0x170 kernel/sched/cputime.c:710 __context_tracking_enter+0xef/0x100 kernel/context_tracking.c:82 user_enter_irqoff include/linux/context_tracking.h:41 [inline] __exit_to_user_mode kernel/entry/common.c:130 [inline] syscall_exit_to_user_mode+0x48/0x60 kernel/entry/common.c:302 do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fd3efcb9840 Code: 73 01 c3 48 8b 0d 68 77 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d 89 bb 20 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 1e f6 ff ff 48 89 04 24 RSP: 002b:00007ffc98ea1db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: fffffffffffffffe RBX: 00007ffc98ea20c0 RCX: 00007fd3efcb9840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000562981c6d780 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000562981c61040 R14: 00007ffc98ea2080 R15: 0000562981c6d5a0 ---------------- Code disassembly (best guess): 0: fa cli 1: ff 74 24 08 pushq 0x8(%rsp) 5: e8 8a f7 fe ff callq 0xfffef794 a: 5e pop %rsi b: 5f pop %rdi c: 65 ff 0d e1 90 a5 7e decl %gs:0x7ea590e1(%rip) # 0x7ea590f4 13: 0f 85 63 fc ff ff jne 0xfffffc7c 19: e8 45 66 a3 ff callq 0xffa36663 1e: e9 59 fc ff ff jmpq 0xfffffc7c 23: 65 ff 05 ca 90 a5 7e incl %gs:0x7ea590ca(%rip) # 0x7ea590f4 * 2a: 48 8b 05 23 4c 21 0c mov 0xc214c23(%rip),%rax # 0xc214c54 <-- trapping instruction 31: e8 3e d7 05 00 callq 0x5d774 36: 85 c0 test %eax,%eax 38: 74 17 je 0x51 3a: 65 gs 3b: ff .byte 0xff 3c: 0d .byte 0xd 3d: b3 90 mov $0x90,%bl 3f: a5 movsl %ds:(%rsi),%es:(%rdi)