INFO: task syz-executor.2:29697 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:28328 pid:29697 ppid: 24198 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:178 nbd_add_socket+0x166/0x810 drivers/block/nbd.c:1109 __nbd_ioctl drivers/block/nbd.c:1454 [inline] nbd_ioctl+0x38c/0xb10 drivers/block/nbd.c:1511 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:0x7fe6a8c77ae9 RSP: 002b:00007fe6a61cc188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fe6a8d8b020 RCX: 00007fe6a8c77ae9 RDX: 0000000000000008 RSI: 000000000000ab00 RDI: 0000000000000007 RBP: 00007fe6a8cd1f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff48bd31ff R14: 00007fe6a61cc300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8bb83a60 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458 1 lock held by in:imklog/6201: #0: ffff888021a70370 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by rs:main Q:Reg/6204: 5 locks held by kworker/u4:6/4429: #0: ffff8880b9c39a98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:478 #1: ffffc90003167db0 ((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 #3: ffffffff90739fb8 (&obj_hash[i].lock){-.-.}-{2:2}, at: debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:661 #4: ffff88814076c688 (&memcg->move_lock){..-.}-{2:2}, at: folio_memcg_lock+0x129/0x3e0 mm/memcontrol.c:2038 1 lock held by syz-executor.2/29697: #0: ffff88801a767198 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-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:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:295 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: 6204 Comm: rs:main Q:Reg Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:lock_is_held include/linux/lockdep.h:283 [inline] RIP: 0010:xa_entry include/linux/xarray.h:1182 [inline] RIP: 0010:xas_descend+0xe5/0x3b0 lib/xarray.c:204 Code: 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 66 02 00 00 49 8d 7e 18 49 83 c5 04 be ff ff ff ff 4f 8b 6c ec 08 36 cc 42 05 31 ff 41 89 c6 89 c6 e8 2a 8a 68 fd 45 85 f6 0f 84 RSP: 0018:ffffc9000b3277e8 EFLAGS: 00000212 RAX: dffffc0000000000 RBX: ffffc9000b3278e0 RCX: 0000000000000000 RDX: 1ffff1100e3efae4 RSI: 00000000ffffffff RDI: ffff88807f27cab0 RBP: 000000000000001f R08: 0000000000001000 R09: 0000000000000000 R10: ffffffff840f5f51 R11: 000000000000003f R12: ffff888071f7d600 R13: ffffea0002512140 R14: ffff88807f27ca98 R15: 0000000000000000 FS: 00007fe6de131700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8f0abb1008 CR3: 000000007f53c000 CR4: 0000000000350ef0 Call Trace: xas_load+0xe5/0x140 lib/xarray.c:240 mapping_get_entry mm/filemap.c:1843 [inline] __filemap_get_folio+0x160/0xd60 mm/filemap.c:1905 pagecache_get_page+0x2c/0x1a0 mm/folio-compat.c:125 ext4_da_write_begin+0x3bc/0xad0 fs/ext4/inode.c:2958 generic_perform_write+0x205/0x510 mm/filemap.c:3756 ext4_buffered_write_iter+0x1ac/0x3b0 fs/ext4/file.c:269 ext4_file_write_iter+0x423/0x14e0 fs/ext4/file.c:681 call_write_iter include/linux/fs.h:2162 [inline] new_sync_write+0x429/0x660 fs/read_write.c:503 vfs_write+0x7cd/0xae0 fs/read_write.c:590 ksys_write+0x12d/0x250 fs/read_write.c:643 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:0x7fe6e0b751cd Code: c2 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 ae fc ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 f7 fc ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fe6de130590 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fe6d40256d0 RCX: 00007fe6e0b751cd RDX: 0000000000000aad RSI: 00007fe6d40256d0 RDI: 0000000000000006 RBP: 0000000000000000 R08: 0000000000000000 R09: 38313433205b203a R10: 0000000000000000 R11: 0000000000000293 R12: 00007fe6d4025450 R13: 00007fe6de1305b0 R14: 000055a860409360 R15: 0000000000000aad ---------------- Code disassembly (best guess), 6 bytes skipped: 0: df 48 89 fisttps -0x77(%rax) 3: fa cli 4: 48 c1 ea 03 shr $0x3,%rdx 8: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) c: 0f 85 66 02 00 00 jne 0x278 12: 49 8d 7e 18 lea 0x18(%r14),%rdi 16: 49 83 c5 04 add $0x4,%r13 1a: be ff ff ff ff mov $0xffffffff,%esi 1f: 4f 8b 6c ec 08 mov 0x8(%r12,%r13,8),%r13 * 24: e8 36 cc 42 05 callq 0x542cc5f <-- trapping instruction 29: 31 ff xor %edi,%edi 2b: 41 89 c6 mov %eax,%r14d 2e: 89 c6 mov %eax,%esi 30: e8 2a 8a 68 fd callq 0xfd688a5f 35: 45 85 f6 test %r14d,%r14d 38: 0f .byte 0xf 39: 84 .byte 0x84