INFO: task syz-executor.5:12435 can't die for more than 143 seconds. task:syz-executor.5 state:D stack:26952 pid:12435 ppid: 11473 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_set_status+0x440/0x930 drivers/block/loop.c:1264 loop_set_status_old+0x148/0x1b0 drivers/block/loop.c:1396 lo_ioctl+0x3e9/0x17c0 drivers/block/loop.c:1566 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:0x7efffb826ae9 RSP: 002b:00007efff8d9c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efffb939f60 RCX: 00007efffb826ae9 RDX: 0000000020000400 RSI: 0000000000004c02 RDI: 0000000000000004 RBP: 00007efffb880f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd111380bf R14: 00007efff8d9c300 R15: 0000000000022000 INFO: task syz-executor.5:12435 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:26952 pid:12435 ppid: 11473 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_set_status+0x440/0x930 drivers/block/loop.c:1264 loop_set_status_old+0x148/0x1b0 drivers/block/loop.c:1396 lo_ioctl+0x3e9/0x17c0 drivers/block/loop.c:1566 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:0x7efffb826ae9 RSP: 002b:00007efff8d9c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007efffb939f60 RCX: 00007efffb826ae9 RDX: 0000000020000400 RSI: 0000000000004c02 RDI: 0000000000000004 RBP: 00007efffb880f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd111380bf R14: 00007efff8d9c300 R15: 0000000000022000 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 2 locks held by systemd-udevd/2972: #0: ffff88801a45e918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801a45a360 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 1 lock held by in:imklog/6222: #0: ffff88807a2a4af0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 1 lock held by syz-executor.5/12435: #0: ffff88801a45a360 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0x930 drivers/block/loop.c:1248 ============================================= 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: 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:jhash2 include/linux/jhash.h:127 [inline] RIP: 0010:hash_stack lib/stackdepot.c:203 [inline] RIP: 0010:__stack_depot_save+0x92/0x4f0 lib/stackdepot.c:352 Code: 44 8d 04 85 7b 71 f5 75 83 f8 03 89 c7 0f 86 de 01 00 00 44 89 c3 44 89 c0 4c 89 e2 03 5a 08 83 ef 03 48 83 c2 0c 44 8b 4a f4 <03> 42 f8 41 29 d9 45 01 c1 41 89 d8 01 c3 41 c1 c0 04 45 31 c8 44 RSP: 0018:ffffc90001adfaa8 EFLAGS: 00000286 RAX: 000000004b2b2a94 RBX: 0000000017d93b47 RCX: 0000000000000001 RDX: ffffc90001adfb3c RSI: 0000000000000800 RDI: 0000000000000011 RBP: ffff88801478ecb0 R08: 00000000a4172221 R09: 0000000081be52df R10: 0000000000000001 R11: 0000000000000000 R12: ffffc90001adfb18 R13: 000000000000000d R14: 000000000000000d R15: ffff88801478ecb0 FS: 00007f235321e8c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f23506f7000 CR3: 000000007ba0a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kasan_save_stack+0x38/0x50 mm/kasan/common.c:40 kasan_set_track+0x21/0x30 mm/kasan/common.c:46 kasan_set_free_info+0x20/0x30 mm/kasan/generic.c:370 ____kasan_slab_free mm/kasan/common.c:366 [inline] ____kasan_slab_free mm/kasan/common.c:328 [inline] __kasan_slab_free+0xff/0x130 mm/kasan/common.c:374 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x8b/0x1c0 mm/slub.c:1749 slab_free mm/slub.c:3513 [inline] kmem_cache_free+0x92/0x5e0 mm/slub.c:3529 security_file_free+0xa4/0xd0 security/security.c:1535 file_free fs/file_table.c:55 [inline] __fput+0x3d6/0x9f0 fs/file_table.c:298 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:0x7f23527ad840 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:00007fff0aa07d28 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: fffffffffffffffe RBX: 00007fff0aa08030 RCX: 00007f23527ad840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 0000560384678040 RBP: 000000000000000d R08: 0000000000000000 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 000056038466b040 R14: 00007fff0aa07ff0 R15: 0000560384678090 ---------------- Code disassembly (best guess): 0: 44 8d 04 85 7b 71 f5 lea 0x75f5717b(,%rax,4),%r8d 7: 75 8: 83 f8 03 cmp $0x3,%eax b: 89 c7 mov %eax,%edi d: 0f 86 de 01 00 00 jbe 0x1f1 13: 44 89 c3 mov %r8d,%ebx 16: 44 89 c0 mov %r8d,%eax 19: 4c 89 e2 mov %r12,%rdx 1c: 03 5a 08 add 0x8(%rdx),%ebx 1f: 83 ef 03 sub $0x3,%edi 22: 48 83 c2 0c add $0xc,%rdx 26: 44 8b 4a f4 mov -0xc(%rdx),%r9d * 2a: 03 42 f8 add -0x8(%rdx),%eax <-- trapping instruction 2d: 41 29 d9 sub %ebx,%r9d 30: 45 01 c1 add %r8d,%r9d 33: 41 89 d8 mov %ebx,%r8d 36: 01 c3 add %eax,%ebx 38: 41 c1 c0 04 rol $0x4,%r8d 3c: 45 31 c8 xor %r9d,%r8d 3f: 44 rex.R