INFO: task syz-executor.5:31051 can't die for more than 143 seconds. task:syz-executor.5 state:D stack:25656 pid:31051 ppid: 16741 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:0x7f836b8048a7 RSP: 002b:00007f8368d79fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000080 RCX: 00007f836b8048a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000005 RBP: 00007f8368d7a6bc R08: 00007f8368d7a040 R09: 0000000020000000 R10: 0000000000018000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 00007f8368d7a000 R15: 00000000200001c0 INFO: task syz-executor.5:31051 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:25656 pid:31051 ppid: 16741 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:0x7f836b8048a7 RSP: 002b:00007f8368d79fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000020000080 RCX: 00007f836b8048a7 RDX: 0000000000000000 RSI: 0000000000004c01 RDI: 0000000000000005 RBP: 00007f8368d7a6bc R08: 00007f8368d7a040 R09: 0000000020000000 R10: 0000000000018000 R11: 0000000000000246 R12: ffffffffffffffff R13: 0000000000000005 R14: 00007f8368d7a000 R15: 00000000200001c0 INFO: task syz-executor.5:31075 can't die for more than 143 seconds. task:syz-executor.5 state:D stack:28272 pid:31075 ppid: 16741 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:0x7f836b7b7a04 RSP: 002b:00007f8368d58ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f836b84e970 RCX: 00007f836b7b7a04 RDX: 0000000000000002 RSI: 00007f8368d59000 RDI: 00000000ffffff9c RBP: 00007f8368d59000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000004 R14: 0000000020000098 R15: 0000000000000001 INFO: task syz-executor.5:31075 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.5 state:D stack:28272 pid:31075 ppid: 16741 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:0x7f836b7b7a04 RSP: 002b:00007f8368d58ed0 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f836b84e970 RCX: 00007f836b7b7a04 RDX: 0000000000000002 RSI: 00007f8368d59000 RDI: 00000000ffffff9c RBP: 00007f8368d59000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000002 R13: 0000000000000004 R14: 0000000020000098 R15: 0000000000000001 Showing all locks held in the system: 3 locks held by kworker/u4:1/10: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffffc90000cf7db0 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8ca/0x1690 kernel/workqueue.c:2273 #2: ffff8880b9c28298 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:946 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/6383: #0: ffff888021a9caf0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 1 lock held by syz-executor.5/31051: #0: ffff8881478e8360 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0x7a/0x1070 drivers/block/loop.c:1106 1 lock held by syz-executor.5/31075: #0: ffff888019ecc118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 2 locks held by systemd-udevd/31073: #0: ffff888019ecc118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff8881478e8360 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 ============================================= NMI backtrace for cpu 0 CPU: 0 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 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2963 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:check_preemption_disabled+0x60/0x170 lib/smp_processor_id.c:19 Code: 1f 44 00 00 44 89 e0 5b 5d 41 5c 41 5d 41 5e c3 0f 1f 44 00 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de 0f 1f 44 00 00 48 85 db <74> d3 0f 1f 44 00 00 31 ff 65 4c 8b 34 25 40 70 02 00 41 8b 5e 2c RSP: 0018:ffffc90001f9f918 EFLAGS: 00000046 RAX: 0000000000000007 RBX: 0000000000000000 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff8a04b6a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001 R13: ffffffff89ac10c0 R14: ffff88807a8ed7c0 R15: 0000000000000dc0 FS: 00007f00ccc718c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f00ca3b5000 CR3: 000000007a6d1000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:433 [inline] lock_release+0x15a/0x720 kernel/locking/lockdep.c:5656 might_alloc include/linux/sched/mm.h:249 [inline] slab_pre_alloc_hook mm/slab.h:492 [inline] slab_alloc_node mm/slub.c:3148 [inline] slab_alloc mm/slub.c:3242 [inline] kmem_cache_alloc+0x46/0x3a0 mm/slub.c:3247 kmem_cache_zalloc include/linux/slab.h:714 [inline] lsm_file_alloc security/security.c:572 [inline] security_file_alloc+0x34/0x170 security/security.c:1516 __alloc_file+0xd8/0x280 fs/file_table.c:106 alloc_empty_file+0x6d/0x170 fs/file_table.c:150 path_openat+0xe1/0x2750 fs/namei.c:3545 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_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:0x7f00cc200840 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:00007ffc86782d38 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007ffc86783040 RCX: 00007f00cc200840 RDX: 00000000000001a0 RSI: 0000000000080042 RDI: 000055a83520f5f0 RBP: 000000000000000d R08: 000000000000ffc0 R09: 00000000ffffffff R10: 0000000000000069 R11: 0000000000000246 R12: 00000000ffffffff R13: 000055a83520b040 R14: 00007ffc86783000 R15: 000055a835218f30 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 44 00 00 add %r8b,(%rax) 3: 44 89 e0 mov %r12d,%eax 6: 5b pop %rbx 7: 5d pop %rbp 8: 41 5c pop %r12 a: 41 5d pop %r13 c: 41 5e pop %r14 e: c3 retq f: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 14: 9c pushfq 15: 5b pop %rbx 16: 81 e3 00 02 00 00 and $0x200,%ebx 1c: 31 ff xor %edi,%edi 1e: 48 89 de mov %rbx,%rsi 21: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 26: 48 85 db test %rbx,%rbx * 29: 74 d3 je 0xfffffffe <-- trapping instruction 2b: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 30: 31 ff xor %edi,%edi 32: 65 4c 8b 34 25 40 70 mov %gs:0x27040,%r14 39: 02 00 3b: 41 8b 5e 2c mov 0x2c(%r14),%ebx