INFO: task syz-executor.3:8000 blocked for more than 143 seconds.
Not tainted 5.16.0-rc1-next-20211118-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:23368 pid: 8000 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
blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819
blkdev_get_by_dev+0x6b/0x80 block/bdev.c:859
blkdev_open+0x154/0x2e0 block/fops.c:501
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:0x7f91b24e9a04
RSP: 002b:00007ffd2cdaf4b0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007ffd2cdaf5b0 RCX: 00007f91b24e9a04
RDX: 0000000000000002 RSI: 00007ffd2cdaf5f0 RDI: 00000000ffffff9c
RBP: 00007ffd2cdaf5f0 R08: 0000000000000000 R09: 00007ffd2cdaf3c0
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002
R13: 0000000000000000 R14: 0000000000000010 R15: 00007ffd2cdaf5f0
INFO: task systemd-udevd:9586 blocked for more than 143 seconds.
Not tainted 5.16.0-rc1-next-20211118-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:systemd-udevd state:D stack:27544 pid: 9586 ppid: 2973 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
blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178
__loop_clr_fd+0x1ae/0x1070 drivers/block/loop.c:1122
lo_release+0x1ac/0x1f0 drivers/block/loop.c:1761
blkdev_put_whole block/bdev.c:694 [inline]
blkdev_put+0x2fb/0x9e0 block/bdev.c:956
blkdev_close+0x6a/0x80 block/fops.c:515
__fput+0x286/0x9f0 fs/file_table.c:280
task_work_run+0xdd/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop kernel/entry/common.c:175 [inline]
exit_to_user_mode_prepare+0x27e/0x290 kernel/entry/common.c:207
__syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:300
do_syscall_64+0x42/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f5ca9db3270
RSP: 002b:00007fff67105e88 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000007 RCX: 00007f5ca9db3270
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000007
RBP: 00007f5caac6d710 R08: 0000560addaadad0 R09: 0000560addaad800
R10: 00007f5caac6d8c0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000560adda9e720 R14: 0000000000000003 R15: 000000000000000e
Showing all locks held in the system:
1 lock held by khungtaskd/26:
#0: ffffffff8bb83ba0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458
2 locks held by in:imklog/6224:
#0: ffff88807220a370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990
#1: ffffffff8bb83ba0 (rcu_read_lock){....}-{1:2}, at: is_bpf_text_address+0x0/0x170 kernel/bpf/core.c:702
1 lock held by syz-executor.3/8000:
#0: ffff88801a758918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819
2 locks held by systemd-udevd/9586:
#0: ffff88801a758918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0x97/0x9e0 block/bdev.c:914
#1: ffff88801a74cb60 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 26 Comm: khungtaskd Not tainted 5.16.0-rc1-next-20211118-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: 6224 Comm: in:imklog Not tainted 5.16.0-rc1-next-20211118-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:memchr+0x36/0x80 lib/string.c:896
Code: 55 48 8d 2c 17 53 48 83 ec 10 eb 27 48 8d 5f 01 48 89 f8 48 89 fa 48 c1 e8 03 83 e2 07 42 0f b6 04 20 38 d0 7f 04 84 c0 75 25 <40> 3a 73 ff 74 13 48 89 df 48 39 ef 75 d4 48 83 c4 10 31 c0 5b 5d
RSP: 0018:ffffc9000b4879b0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: ffff88803bb6b822 RCX: 0000000000000000
RDX: 0000000000000001 RSI: 000000000000000a RDI: ffff88803bb6b821
RBP: ffff88803bb6b827 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffff83fd7133 R11: 0000000000000000 R12: dffffc0000000000
R13: 000000000000001a R14: 0000000000000000 R15: 0000000000000400
FS: 00007f6606a0f700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd5ff4dc000 CR3: 0000000070349000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
memchr include/linux/fortify-string.h:280 [inline]
record_print_text+0x254/0x3e0 kernel/printk/printk.c:1348
syslog_print+0x48a/0x580 kernel/printk/printk.c:1539
do_syslog.part.0+0x202/0x640 kernel/printk/printk.c:1658
do_syslog+0x49/0x60 kernel/printk/printk.c:1643
kmsg_read+0x90/0xb0 fs/proc/kmsg.c:40
pde_read fs/proc/inode.c:311 [inline]
proc_reg_read+0x119/0x300 fs/proc/inode.c:321
vfs_read+0x1b5/0x600 fs/read_write.c:479
ksys_read+0x12d/0x250 fs/read_write.c:619
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:0x7f660905222d
Code: c1 20 00 00 75 10 b8 00 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24 b8 00 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 97 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01
RSP: 002b:00007f66069ee580 EFLAGS: 00000293 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f660905222d
RDX: 0000000000001fa0 RSI: 00007f66069eeda0 RDI: 0000000000000004
RBP: 00005570b13009d0 R08: 0000000000000000 R09: 0000000000000000
R10: 2ce33e6c02ce33e7 R11: 0000000000000293 R12: 00007f66069eeda0
R13: 0000000000001fa0 R14: 0000000000001f9f R15: 00007f66069eedd2
----------------
Code disassembly (best guess):
0: 55 push %rbp
1: 48 8d 2c 17 lea (%rdi,%rdx,1),%rbp
5: 53 push %rbx
6: 48 83 ec 10 sub $0x10,%rsp
a: eb 27 jmp 0x33
c: 48 8d 5f 01 lea 0x1(%rdi),%rbx
10: 48 89 f8 mov %rdi,%rax
13: 48 89 fa mov %rdi,%rdx
16: 48 c1 e8 03 shr $0x3,%rax
1a: 83 e2 07 and $0x7,%edx
1d: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax
22: 38 d0 cmp %dl,%al
24: 7f 04 jg 0x2a
26: 84 c0 test %al,%al
28: 75 25 jne 0x4f
* 2a: 40 3a 73 ff cmp -0x1(%rbx),%sil <-- trapping instruction
2e: 74 13 je 0x43
30: 48 89 df mov %rbx,%rdi
33: 48 39 ef cmp %rbp,%rdi
36: 75 d4 jne 0xc
38: 48 83 c4 10 add $0x10,%rsp
3c: 31 c0 xor %eax,%eax
3e: 5b pop %rbx
3f: 5d pop %rbp