INFO: task syz-executor.3:20761 can't die for more than 143 seconds. task:syz-executor.3 state:D stack:25144 pid:20761 ppid: 6551 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 __bio_queue_enter+0x3c5/0x6a0 block/blk-core.c:441 bio_queue_enter block/blk.h:91 [inline] blk_mq_get_request block/blk-mq.c:2588 [inline] blk_mq_submit_bio+0x4ae/0x22c0 block/blk-mq.c:2632 __submit_bio block/blk-core.c:849 [inline] __submit_bio_noacct_mq block/blk-core.c:924 [inline] submit_bio_noacct block/blk-core.c:950 [inline] submit_bio_noacct+0x82c/0xa20 block/blk-core.c:939 submit_bio block/blk-core.c:1011 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:969 __blkdev_direct_IO_simple+0x4a2/0x860 block/fops.c:103 blkdev_direct_IO block/fops.c:383 [inline] blkdev_direct_IO+0x7fb/0x1740 block/fops.c:373 generic_file_direct_write+0x1e8/0x540 mm/filemap.c:3680 __generic_file_write_iter+0x24c/0x510 mm/filemap.c:3840 blkdev_write_iter+0x3f2/0x690 block/fops.c:557 call_write_iter include/linux/fs.h:2162 [inline] do_iter_readv_writev+0x472/0x750 fs/read_write.c:725 do_iter_write+0x188/0x710 fs/read_write.c:851 vfs_iter_write+0x70/0xa0 fs/read_write.c:892 iter_file_splice_write+0x723/0xc70 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x110/0x180 fs/splice.c:936 splice_direct_to_actor+0x34b/0x8c0 fs/splice.c:891 do_splice_direct+0x1b3/0x280 fs/splice.c:979 do_sendfile+0xaf2/0x1250 fs/read_write.c:1245 __do_sys_sendfile64 fs/read_write.c:1310 [inline] __se_sys_sendfile64 fs/read_write.c:1296 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1296 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:0x7f93ce1b3ae9 RSP: 002b:00007f93cb729188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f93ce2c6f60 RCX: 00007f93ce1b3ae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f93ce20df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000024002da8 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1e83a70f R14: 00007f93cb729300 R15: 0000000000022000 INFO: task syz-executor.3:20761 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:25144 pid:20761 ppid: 6551 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 __bio_queue_enter+0x3c5/0x6a0 block/blk-core.c:441 bio_queue_enter block/blk.h:91 [inline] blk_mq_get_request block/blk-mq.c:2588 [inline] blk_mq_submit_bio+0x4ae/0x22c0 block/blk-mq.c:2632 __submit_bio block/blk-core.c:849 [inline] __submit_bio_noacct_mq block/blk-core.c:924 [inline] submit_bio_noacct block/blk-core.c:950 [inline] submit_bio_noacct+0x82c/0xa20 block/blk-core.c:939 submit_bio block/blk-core.c:1011 [inline] submit_bio+0x1ea/0x430 block/blk-core.c:969 __blkdev_direct_IO_simple+0x4a2/0x860 block/fops.c:103 blkdev_direct_IO block/fops.c:383 [inline] blkdev_direct_IO+0x7fb/0x1740 block/fops.c:373 generic_file_direct_write+0x1e8/0x540 mm/filemap.c:3680 __generic_file_write_iter+0x24c/0x510 mm/filemap.c:3840 blkdev_write_iter+0x3f2/0x690 block/fops.c:557 call_write_iter include/linux/fs.h:2162 [inline] do_iter_readv_writev+0x472/0x750 fs/read_write.c:725 do_iter_write+0x188/0x710 fs/read_write.c:851 vfs_iter_write+0x70/0xa0 fs/read_write.c:892 iter_file_splice_write+0x723/0xc70 fs/splice.c:689 do_splice_from fs/splice.c:767 [inline] direct_splice_actor+0x110/0x180 fs/splice.c:936 splice_direct_to_actor+0x34b/0x8c0 fs/splice.c:891 do_splice_direct+0x1b3/0x280 fs/splice.c:979 do_sendfile+0xaf2/0x1250 fs/read_write.c:1245 __do_sys_sendfile64 fs/read_write.c:1310 [inline] __se_sys_sendfile64 fs/read_write.c:1296 [inline] __x64_sys_sendfile64+0x1cc/0x210 fs/read_write.c:1296 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:0x7f93ce1b3ae9 RSP: 002b:00007f93cb729188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028 RAX: ffffffffffffffda RBX: 00007f93ce2c6f60 RCX: 00007f93ce1b3ae9 RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000004 RBP: 00007f93ce20df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000024002da8 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1e83a70f R14: 00007f93cb729300 R15: 0000000000022000 INFO: task syz-executor.3:20769 can't die for more than 144 seconds. task:syz-executor.3 state:D stack:28480 pid:20769 ppid: 6551 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:0x7f93ce1b3ae9 RSP: 002b:00007f93cb708188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f93ce2c7020 RCX: 00007f93ce1b3ae9 RDX: 0000000020000400 RSI: 0000000000004c02 RDI: 0000000000000004 RBP: 00007f93ce20df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1e83a70f R14: 00007f93cb708300 R15: 0000000000022000 INFO: task syz-executor.3:20769 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:28480 pid:20769 ppid: 6551 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:0x7f93ce1b3ae9 RSP: 002b:00007f93cb708188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f93ce2c7020 RCX: 00007f93ce1b3ae9 RDX: 0000000020000400 RSI: 0000000000004c02 RDI: 0000000000000004 RBP: 00007f93ce20df6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1e83a70f R14: 00007f93cb708300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by systemd/1: #0: ffff8880b9d39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 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 3 locks held by kworker/u4:4/369: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffff8880b9c279c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x173/0x490 kernel/sched/psi.c:871 #2: ffff8880b9c28298 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x5a/0x1f0 kernel/time/timer.c:946 2 locks held by systemd-udevd/2971: #0: ffff88801a975118 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev.part.0+0x9b/0xb50 block/bdev.c:819 #1: ffff88801a970b60 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_open+0x75/0x120 drivers/block/loop.c:1733 1 lock held by in:imklog/6445: #0: ffff88807bca7270 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 1 lock held by syz-executor.3/20769: #0: ffff88801a970b60 (&lo->lo_mutex){+.+.}-{3:3}, at: loop_set_status+0x2a/0x930 drivers/block/loop.c:1248 ============================================= 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: 369 Comm: kworker/u4:4 Not tainted 5.16.0-rc1-next-20211118-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: 0x0 (bat_events) RIP: 0010:rb_erase+0x11/0x1210 lib/rbtree.c:441 Code: 54 24 08 4c 8b 04 24 e9 f7 f5 ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 b8 00 00 00 00 00 fc ff df 41 57 49 89 f7 41 56 <41> 55 49 89 fd 48 83 c7 08 48 89 fa 41 54 48 c1 ea 03 55 53 48 83 RSP: 0018:ffffc90002effc48 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff88801191d840 RCX: 1ffff11017387371 RDX: dffffc0000000000 RSI: ffff8880b9c39b80 RDI: ffff88801191d850 RBP: ffff8880b9c39b40 R08: ffff8880b9c39b40 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88801191d850 R13: ffff8880b9c39cb0 R14: ffff8880b9c39b88 R15: ffff8880b9c39b80 FS: 0000000000000000(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2f489f0000 CR3: 000000000b88e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rb_erase_cached include/linux/rbtree.h:126 [inline] __dequeue_entity kernel/sched/fair.c:593 [inline] set_next_entity+0x334/0x5e0 kernel/sched/fair.c:4436 pick_next_task_fair+0x6ab/0xe00 kernel/sched/fair.c:7309 __pick_next_task kernel/sched/core.c:5608 [inline] pick_next_task kernel/sched/core.c:5680 [inline] __schedule+0x3e8/0x4940 kernel/sched/core.c:6232 schedule+0xd2/0x260 kernel/sched/core.c:6341 worker_thread+0x15c/0x11f0 kernel/workqueue.c:2466 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 ---------------- Code disassembly (best guess): 0: 54 push %rsp 1: 24 08 and $0x8,%al 3: 4c 8b 04 24 mov (%rsp),%r8 7: e9 f7 f5 ff ff jmpq 0xfffff603 c: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1) 13: 00 00 00 00 17: 66 90 xchg %ax,%ax 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 41 57 push %r15 25: 49 89 f7 mov %rsi,%r15 28: 41 56 push %r14 * 2a: 41 55 push %r13 <-- trapping instruction 2c: 49 89 fd mov %rdi,%r13 2f: 48 83 c7 08 add $0x8,%rdi 33: 48 89 fa mov %rdi,%rdx 36: 41 54 push %r12 38: 48 c1 ea 03 shr $0x3,%rdx 3c: 55 push %rbp 3d: 53 push %rbx 3e: 48 rex.W 3f: 83 .byte 0x83