INFO: task kworker/u5:0:45 blocked for more than 143 seconds.
Not tainted 5.15.0-next-20211115-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u5:0 state:D stack:26912 pid: 45 ppid: 2 flags:0x00004000
Workqueue: hci5 scan_update_work
Call Trace:
context_switch kernel/sched/core.c:4987 [inline]
__schedule+0xa9a/0x4940 kernel/sched/core.c:6268
schedule+0xd2/0x260 kernel/sched/core.c:6341
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6400
__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 systemd-rfkill:15381 blocked for more than 143 seconds.
Not tainted 5.15.0-next-20211115-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:systemd-rfkill state:D stack:25984 pid:15381 ppid: 1 flags:0x00004000
Call Trace:
context_switch kernel/sched/core.c:4987 [inline]
__schedule+0xa9a/0x4940 kernel/sched/core.c:6268
schedule+0xd2/0x260 kernel/sched/core.c:6341
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:0x7efd0a8961b0
RSP: 002b:00007ffdf1ad8b58 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000564bb5484040 RCX: 00007efd0a8961b0
RDX: 0000000000000008 RSI: 00007ffdf1ad8ba0 RDI: 0000000000000003
RBP: 00007ffdf1ad8b98 R08: 0000000000000003 R09: 0000000000001010
R10: 000000000001b0c0 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdf1ad8b90 R14: 0000000000000000 R15: 0000000000000003
INFO: task syz-executor.5:15436 blocked for more than 143 seconds.
Not tainted 5.15.0-next-20211115-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.5 state:D stack:23792 pid:15436 ppid: 1 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:4987 [inline]
__schedule+0xa9a/0x4940 kernel/sched/core.c:6268
schedule+0xd2/0x260 kernel/sched/core.c:6341
schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6400
__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:0x7f83f5a5da04
RSP: 002b:00007ffcf9373530 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffcf9373c78 RCX: 00007f83f5a5da04
RDX: 0000000000000002 RSI: 00007f83f5b0426f RDI: 00000000ffffff9c
RBP: 00007f83f5b0426f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 00007ffcf9373710 R14: 0000000000000000 R15: 00000000000000f8
Showing all locks held in the system:
1 lock held by khungtaskd/27:
#0: ffffffff8bb83aa0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458
3 locks held by kworker/u5:0/45:
#0: ffff888030f61138 ((wq_completion)hci5){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff888030f61138 ((wq_completion)hci5){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff888030f61138 ((wq_completion)hci5){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1198 [inline]
#0: ffff888030f61138 ((wq_completion)hci5){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:635 [inline]
#0: ffff888030f61138 ((wq_completion)hci5){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:662 [inline]
#0: ffff888030f61138 ((wq_completion)hci5){+.+.}-{0:0}, at: process_one_work+0x896/0x1690 kernel/workqueue.c:2269
#1: ffffc9000115fdb0 ((work_completion)(&hdev->scan_update)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273
#2: ffff88801d37d0d8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_req_sync net/bluetooth/hci_request.c:209 [inline]
#2: ffff88801d37d0d8 (&hdev->req_lock){+.+.}-{3:3}, at: scan_update_work+0x26/0xb0 net/bluetooth/hci_request.c:1987
2 locks held by systemd-rfkill/15381:
#0: ffffffff8d6f8dc8 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0xff/0x500 net/rfkill/core.c:1260
#1: ffff88801d37d0d8 (&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/15436:
#0: ffffffff8c5e2f28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x55/0x4a0 drivers/char/misc.c:107
#1: ffffffff8d6f8dc8 (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-20211115-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: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: 2967 Comm: systemd-journal Not tainted 5.15.0-next-20211115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mark_usage kernel/locking/lockdep.c:4499 [inline]
RIP: 0010:__lock_acquire+0x1198/0x54a0 kernel/locking/lockdep.c:4981
Code: e9 27 f3 ff ff 65 8b 05 8e c8 a5 7e 85 c0 0f 85 0e 03 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 5c 24 40 48 89 da 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 03 38 d0 7c 0c 84 d2 74 08 48
RSP: 0018:ffffc90001fd7a00 EFLAGS: 00000803
RAX: dffffc0000000000 RBX: ffff88807a98a78c RCX: 1ffff1100f5314f4
RDX: 1ffff1100f5314f1 RSI: 0000000000000000 RDI: ffff88807a98a7c9
RBP: ffff88807a98a7ca R08: 0000000000000000 R09: ffffffff8ff73a07
R10: 0000000000000001 R11: 000000000000003f R12: ffff88807a98a7a8
R13: ffff88807a989d40 R14: 0000000000000000 R15: 0000000000000002
FS: 00007f4b9d90a8c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4b9ae1c000 CR3: 000000007a842000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire kernel/locking/lockdep.c:5637 [inline]
lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5602
__raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
_raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162
__debug_check_no_obj_freed lib/debugobjects.c:980 [inline]
debug_check_no_obj_freed+0xc7/0x420 lib/debugobjects.c:1023
slab_free_hook mm/slub.c:1698 [inline]
slab_free_freelist_hook+0xeb/0x1c0 mm/slub.c:1749
slab_free mm/slub.c:3513 [inline]
kmem_cache_free+0x92/0x5e0 mm/slub.c:3529
putname fs/namei.c:270 [inline]
putname+0xfe/0x140 fs/namei.c:256
do_sys_openat2+0x153/0x4d0 fs/open.c:1221
do_sys_open fs/open.c:1228 [inline]
__do_sys_open fs/open.c:1236 [inline]
__se_sys_open fs/open.c:1232 [inline]
__x64_sys_open+0x119/0x1c0 fs/open.c:1232
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:0x7f4b9ce99840
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:00007fffb17cf0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fffb17cf3d0 RCX: 00007f4b9ce99840
RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000562991e0c580
RBP: 000000000000000d R08: 00000000000001c0 R09: 00000000ffffffff
R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000562991e08040 R14: 00007fffb17cf390 R15: 0000562991e152b0
----------------
Code disassembly (best guess):
0: e9 27 f3 ff ff jmpq 0xfffff32c
5: 65 8b 05 8e c8 a5 7e mov %gs:0x7ea5c88e(%rip),%eax # 0x7ea5c89a
c: 85 c0 test %eax,%eax
e: 0f 85 0e 03 00 00 jne 0x322
14: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1b: fc ff df
1e: 48 8b 5c 24 40 mov 0x40(%rsp),%rbx
23: 48 89 da mov %rbx,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx <-- trapping instruction
2e: 48 89 d8 mov %rbx,%rax
31: 83 e0 07 and $0x7,%eax
34: 83 c0 03 add $0x3,%eax
37: 38 d0 cmp %dl,%al
39: 7c 0c jl 0x47
3b: 84 d2 test %dl,%dl
3d: 74 08 je 0x47
3f: 48 rex.W