INFO: task syz-executor.3:9594 can't die for more than 143 seconds. task:syz-executor.3 state:D stack:27400 pid: 9594 ppid: 5734 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 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 __loop_clr_fd+0x1ae/0x1070 drivers/block/loop.c:1122 loop_clr_fd drivers/block/loop.c:1237 [inline] lo_ioctl+0x398/0x17c0 drivers/block/loop.c:1562 blkdev_ioctl+0x37a/0x800 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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:0x7f98e8e3e8a7 RSP: 002b:00007f98e63b3fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000100 RCX: 00007f98e8e3e8a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004 RBP: 00007f98e63b46bc R08: 00007f98e63b4040 R09: 0000000020000080 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000016 R14: 00007f98e63b4000 R15: 000000002000a500 INFO: task syz-executor.3:9594 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:27400 pid: 9594 ppid: 5734 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 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 __loop_clr_fd+0x1ae/0x1070 drivers/block/loop.c:1122 loop_clr_fd drivers/block/loop.c:1237 [inline] lo_ioctl+0x398/0x17c0 drivers/block/loop.c:1562 blkdev_ioctl+0x37a/0x800 block/ioctl.c:609 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 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:0x7f98e8e3e8a7 RSP: 002b:00007f98e63b3fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000100 RCX: 00007f98e8e3e8a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004 RBP: 00007f98e63b46bc R08: 00007f98e63b4040 R09: 0000000020000080 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000016 R14: 00007f98e63b4000 R15: 000000002000a500 INFO: task syz-executor.3:9656 can't die for more than 143 seconds. task:syz-executor.3 state:D stack:28496 pid: 9656 ppid: 5734 flags:0x00004004 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:0x7f98e8df1a04 RSP: 002b:00007f98e6392ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f98e8e88970 RCX: 00007f98e8df1a04 RDX: 0000000000000002 RSI: 00007f98e6393000 RDI: 00000000ffffff9c RBP: 00007f98e6393000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000003 R14: 0000000020000100 R15: 0000000000000000 INFO: task syz-executor.3:9656 blocked for more than 144 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:28496 pid: 9656 ppid: 5734 flags:0x00004004 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:0x7f98e8df1a04 RSP: 002b:00007f98e6392ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f98e8e88970 RCX: 00007f98e8df1a04 RDX: 0000000000000002 RSI: 00007f98e6393000 RDI: 00000000ffffff9c RBP: 00007f98e6393000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000003 R14: 0000000020000100 R15: 0000000000000000 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 systemd-udevd/2970: #0: ffff88801a558918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801a2ccb60 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 1 lock held by in:imklog/6297: #0: ffff8880151a6370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 1 lock held by syz-executor.3/9594: #0: ffff88801a2ccb60 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106 1 lock held by syz-executor.3/9656: #0: ffff88801a558918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 ============================================= NMI backtrace for cpu 0 CPU: 0 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2968 Comm: systemd-journal 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:__sanitizer_cov_trace_pc+0x5c/0x60 kernel/kcov.c:210 Code: 82 88 15 00 00 83 f8 02 75 20 48 8b 8a 90 15 00 00 8b 92 8c 15 00 00 48 8b 01 48 83 c0 01 48 39 c2 76 07 48 89 34 c1 48 89 01 0f 1f 00 41 55 41 54 49 89 fc 55 48 bd eb 83 b5 80 46 86 c8 61 RSP: 0018:ffffc900027dfd90 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000fe0 RCX: 0000000000000000 RDX: ffff88807a4eba80 RSI: ffffffff83f92339 RDI: 0000000000000003 RBP: 000055f85608a9a3 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff83f9232b R11: 0000000000000000 R12: 000055f85608a9a3 R13: ffff88802b26d520 R14: ffff88802b26d520 R15: ffffffff8d911808 FS: 00007f94f41d28c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f94f1a60000 CR3: 000000001c79f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: strncpy_from_user+0x69/0x3e0 lib/strncpy_from_user.c:124 getname_flags.part.0+0x95/0x4f0 fs/namei.c:149 getname_flags+0x9a/0xe0 include/linux/audit.h:323 user_path_at_empty+0x2b/0x60 fs/namei.c:2800 user_path_at include/linux/namei.h:57 [inline] do_faccessat+0x127/0x850 fs/open.c:421 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:0x7f94f348d9c7 Code: 83 c4 08 48 3d 01 f0 ff ff 73 01 c3 48 8b 0d c8 d4 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 b8 15 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d a1 d4 2b 00 f7 d8 64 89 01 48 RSP: 002b:00007fff66858038 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00007fff6685af50 RCX: 00007f94f348d9c7 RDX: 00007f94f3efea00 RSI: 0000000000000000 RDI: 000055f85608a9a3 RBP: 00007fff66858070 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fff6685af50 R15: 00007fff66858560 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 88 15 00 00 83 f8 mov %dl,-0x77d0000(%rip) # 0xf8830006 6: 02 75 20 add 0x20(%rbp),%dh 9: 48 8b 8a 90 15 00 00 mov 0x1590(%rdx),%rcx 10: 8b 92 8c 15 00 00 mov 0x158c(%rdx),%edx 16: 48 8b 01 mov (%rcx),%rax 19: 48 83 c0 01 add $0x1,%rax 1d: 48 39 c2 cmp %rax,%rdx 20: 76 07 jbe 0x29 22: 48 89 34 c1 mov %rsi,(%rcx,%rax,8) 26: 48 89 01 mov %rax,(%rcx) * 29: c3 retq <-- trapping instruction 2a: 0f 1f 00 nopl (%rax) 2d: 41 55 push %r13 2f: 41 54 push %r12 31: 49 89 fc mov %rdi,%r12 34: 55 push %rbp 35: 48 bd eb 83 b5 80 46 movabs $0x61c8864680b583eb,%rbp 3c: 86 c8 61