INFO: task syz-executor.5:26267 can't die for more than 143 seconds. task:syz-executor.5 state:D stack:26016 pid:26267 ppid: 21333 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 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:0x7fd67d8ff8a7 RSP: 002b:00007fd67ae53fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000140 RCX: 00007fd67d8ff8a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000007 RBP: 00007fd67ae546bc R08: 00007fd67ae54040 R09: 0000000020000080 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 00007fd67ae54000 R15: 0000000020000180 INFO: task syz-executor.5:26267 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.5 state:D stack:26016 pid:26267 ppid: 21333 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 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:0x7fd67d8ff8a7 RSP: 002b:00007fd67ae53fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000140 RCX: 00007fd67d8ff8a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000007 RBP: 00007fd67ae546bc R08: 00007fd67ae54040 R09: 0000000020000080 R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 00007fd67ae54000 R15: 0000000020000180 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83ba0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 1 lock held by in:imklog/6232: #0: ffff88801e8e6370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by agetty/6245: #0: ffff88801ad45098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bef2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 3 locks held by kworker/u4:9/20709: 1 lock held by syz-executor.5/26267: #0: ffff88801b100360 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106 2 locks held by systemd-udevd/26263: #0: ffff88801b104918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801b100360 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 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: 2965 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:unwind_next_frame+0x13d9/0x1ce0 arch/x86/kernel/unwind_orc.c:600 Code: 09 49 89 f9 41 83 e1 07 44 38 ce 41 0f 9e c1 40 84 f6 40 0f 95 c6 41 84 f1 0f 85 af 06 00 00 83 e0 07 38 c1 40 0f 9e c6 84 c9 <0f> 95 c0 40 84 c6 0f 85 98 06 00 00 49 0f bf 70 02 4d 8d 7e 34 4c RSP: 0018:ffffc90001f5f9c8 EFLAGS: 00000246 RAX: 0000000000000001 RBX: 1ffff920003ebf41 RCX: 0000000000000000 RDX: ffffc90001f5fae0 RSI: 0000000000000001 RDI: ffffffff8e17afa8 RBP: 0000000000000001 R08: ffffffff8e17afa6 R09: 0000000000000001 R10: fffff520003ebf5f R11: 000000000008808a R12: ffffc90001f5fe08 R13: ffffc90001f5fad5 R14: ffffc90001f5faa0 R15: ffffffff8e17afaa FS: 00007f2f973228c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2f941ab000 CR3: 000000001a083000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: arch_stack_walk+0x7d/0xe0 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:122 kasan_save_stack+0x1e/0x50 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:434 [inline] __kasan_slab_alloc+0x90/0xc0 mm/kasan/common.c:467 kasan_slab_alloc include/linux/kasan.h:259 [inline] slab_post_alloc_hook mm/slab.h:519 [inline] slab_alloc_node mm/slub.c:3234 [inline] slab_alloc mm/slub.c:3242 [inline] kmem_cache_alloc+0x202/0x3a0 mm/slub.c:3247 prepare_creds+0x3f/0x7b0 kernel/cred.c:260 access_override_creds fs/open.c:351 [inline] do_faccessat+0x3f4/0x850 fs/open.c:415 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:0x7f2f965dd9c7 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:00007ffe645c6c38 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00007ffe645c9b50 RCX: 00007f2f965dd9c7 RDX: 00007f2f9704ea00 RSI: 0000000000000000 RDI: 00005576baa629a3 RBP: 00007ffe645c6c70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffe645c9b50 R15: 00007ffe645c7160 ---------------- Code disassembly (best guess): 0: 09 49 89 or %ecx,-0x77(%rcx) 3: f9 stc 4: 41 83 e1 07 and $0x7,%r9d 8: 44 38 ce cmp %r9b,%sil b: 41 0f 9e c1 setle %r9b f: 40 84 f6 test %sil,%sil 12: 40 0f 95 c6 setne %sil 16: 41 84 f1 test %sil,%r9b 19: 0f 85 af 06 00 00 jne 0x6ce 1f: 83 e0 07 and $0x7,%eax 22: 38 c1 cmp %al,%cl 24: 40 0f 9e c6 setle %sil 28: 84 c9 test %cl,%cl * 2a: 0f 95 c0 setne %al <-- trapping instruction 2d: 40 84 c6 test %al,%sil 30: 0f 85 98 06 00 00 jne 0x6ce 36: 49 0f bf 70 02 movswq 0x2(%r8),%rsi 3b: 4d 8d 7e 34 lea 0x34(%r14),%r15 3f: 4c rex.WR