INFO: task syz-executor.2:24327 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.2 state:D stack:27472 pid:24327 ppid: 6583 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:0x7fc3c38948a7 RSP: 002b:00007fc3c0e09fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000240 RCX: 00007fc3c38948a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000004 RBP: 00007fc3c0e0a6bc R08: 00007fc3c0e0a040 R09: 0000000020000000 R10: 000000000000040a R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 00007fc3c0e0a000 R15: 0000000020000080 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 1 lock held by systemd-udevd/2972: #0: ffff88801aaa6118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 2 locks held by kworker/u4:1/31306: 2 locks held by systemd-udevd/5922: #0: ffff88801aaa6118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801aaa1b60 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 1 lock held by syz-executor.2/24327: #0: ffff88801aaa1b60 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106 1 lock held by syz-executor.2/24337: #0: ffff88801aaa6118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 1 lock held by syz-executor.2/24391: #0: ffff88801aaa6118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 ============================================= 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: 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:__debug_check_no_obj_freed lib/debugobjects.c:983 [inline] RIP: 0010:debug_check_no_obj_freed+0x117/0x420 lib/debugobjects.c:1023 Code: 22 01 00 00 00 00 ad de 4c 89 c0 31 ed 48 c1 e8 03 41 89 ec 42 80 3c 38 00 0f 85 d2 00 00 00 49 8d 78 18 41 83 c4 01 49 8b 28 <48> 89 f8 48 c1 e8 03 42 80 3c 38 00 0f 85 30 02 00 00 4d 8b 48 18 RSP: 0018:ffffc90001acfb60 EFLAGS: 00000002 RAX: 1ffff11004484231 RBX: ffff88803a8b2000 RCX: ffffffff815d25d0 RDX: 1ffffffff20e764b RSI: 0000000000000004 RDI: ffff8880224211a0 RBP: ffff888077b9e818 R08: ffff888022421188 R09: 0000000000000003 R10: fffff52000359f5a R11: 000000000000001f R12: 0000000000000001 R13: dead000000000122 R14: dead000000000100 R15: dffffc0000000000 FS: 00007ff4dceb08c0(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ff4d27be000 CR3: 000000002241c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000023c499bf DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: free_pages_prepare mm/page_alloc.c:1343 [inline] free_pcp_prepare+0x2ae/0x870 mm/page_alloc.c:1389 free_unref_page_prepare mm/page_alloc.c:3309 [inline] free_unref_page+0x19/0x690 mm/page_alloc.c:3388 qlink_free mm/kasan/quarantine.c:146 [inline] qlist_free_all+0x5a/0xc0 mm/kasan/quarantine.c:165 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:444 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 getname_flags.part.0+0x50/0x4f0 fs/namei.c:138 getname_flags include/linux/audit.h:323 [inline] getname+0x8e/0xd0 fs/namei.c:217 do_sys_openat2+0xf5/0x4d0 fs/open.c:1206 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:0x7ff4dc43f85d Code: 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 b8 02 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 67 f6 ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007ffd1fe592f0 EFLAGS: 00000293 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffd1fe59600 RCX: 00007ff4dc43f85d RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055b3f9cc5cc0 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000293 R12: 00000000ffffffff R13: 000055b3f9cc0040 R14: 00007ffd1fe595c0 R15: 000055b3f9cc5ae0 ---------------- Code disassembly (best guess): 0: 22 01 and (%rcx),%al 2: 00 00 add %al,(%rax) 4: 00 00 add %al,(%rax) 6: ad lods %ds:(%rsi),%eax 7: de 4c 89 c0 fimuls -0x40(%rcx,%rcx,4) b: 31 ed xor %ebp,%ebp d: 48 c1 e8 03 shr $0x3,%rax 11: 41 89 ec mov %ebp,%r12d 14: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 19: 0f 85 d2 00 00 00 jne 0xf1 1f: 49 8d 78 18 lea 0x18(%r8),%rdi 23: 41 83 c4 01 add $0x1,%r12d 27: 49 8b 28 mov (%r8),%rbp * 2a: 48 89 f8 mov %rdi,%rax <-- trapping instruction 2d: 48 c1 e8 03 shr $0x3,%rax 31: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 36: 0f 85 30 02 00 00 jne 0x26c 3c: 4d 8b 48 18 mov 0x18(%r8),%r9