INFO: task syz-executor.1:4514 blocked for more than 143 seconds. Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:28408 pid: 4514 ppid: 3627 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5073 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6382 schedule+0xd2/0x1f0 kernel/sched/core.c:6454 blk_mq_freeze_queue_wait+0x112/0x160 block/blk-mq.c:179 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+0x36e/0x800 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 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:0x7fd0dee89049 RSP: 002b:00007fd0dff26168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd0def9bf60 RCX: 00007fd0dee89049 RDX: 0000000000000005 RSI: 000000000000ab00 RDI: 0000000000000004 RBP: 00007fd0deee308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddae38d5f R14: 00007fd0dff26300 R15: 0000000000022000 INFO: task syz-executor.1:4520 blocked for more than 143 seconds. Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:29512 pid: 4520 ppid: 3627 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5073 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6382 schedule+0xd2/0x1f0 kernel/sched/core.c:6454 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6513 __mutex_lock_common kernel/locking/mutex.c:673 [inline] __mutex_lock+0xa32/0x12f0 kernel/locking/mutex.c:733 nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 blkdev_ioctl+0x36e/0x800 block/ioctl.c:588 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl fs/ioctl.c:856 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:856 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:0x7fd0dee89049 RSP: 002b:00007fd0dff05168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fd0def9c030 RCX: 00007fd0dee89049 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000004 RBP: 00007fd0deee308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffddae38d5f R14: 00007fd0dff05300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8bd81ee0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6467 2 locks held by kworker/u4:4/976: #0: ffff8880b9c39fd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:554 #1: ffff8880b9c278c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x176/0x4e0 kernel/sched/psi.c:880 2 locks held by getty/3280: #0: ffff88807e9f0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90002e662e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcea/0x1230 drivers/tty/n_tty.c:2075 1 lock held by syz-executor.1/4514: #0: ffff88801c089998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 1 lock held by syz-executor.1/4520: #0: ffff88801c089998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x151/0xb10 drivers/block/nbd.c:1504 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316 #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+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 2950 Comm: klogd Not tainted 5.18.0-rc1-syzkaller-00016-g3e732ebf7316 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:native_apic_mem_read+0x36/0x40 arch/x86/include/asm/apic.h:115 Code: fb 48 8d bb 00 c0 5f ff 48 89 fa 48 c1 ea 03 0f b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 08 8b 83 00 c0 5f ff <5b> c3 e8 c3 f7 90 00 eb f1 90 b8 01 00 00 00 c3 66 2e 0f 1f 84 00 RSP: 0018:ffffc900027df5c0 EFLAGS: 00000246 RAX: 00000000000400f6 RBX: 0000000000000300 RCX: ffffffff812affb3 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffffff5fc300 RBP: fffffbfff16f4b54 R08: 0000000000000000 R09: ffffffff8db6ed47 R10: fffffbfff1b6dda8 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000400cc0 R14: 00000000ffffffff R15: 00000000000000e8 FS: 00007fbb475dc800(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c004c3b000 CR3: 00000000241a7000 CR4: 0000000000350ee0 Call Trace: apic_read arch/x86/include/asm/apic.h:389 [inline] native_apic_wait_icr_idle+0x47/0x70 arch/x86/kernel/apic/apic.c:252 __irq_work_queue_local+0x15a/0x1b0 kernel/irq_work.c:102 irq_work_queue kernel/irq_work.c:114 [inline] irq_work_queue+0x47/0x80 kernel/irq_work.c:106 __kfence_alloc+0x164/0x1540 mm/kfence/core.c:988 kfence_alloc include/linux/kfence.h:128 [inline] slab_alloc_node mm/slub.c:3135 [inline] kmem_cache_alloc_node+0x3cc/0x3f0 mm/slub.c:3267 __alloc_skb+0x215/0x340 net/core/skbuff.c:414 alloc_skb include/linux/skbuff.h:1300 [inline] alloc_skb_with_frags+0x93/0x730 net/core/skbuff.c:5988 sock_alloc_send_pskb+0x793/0x920 net/core/sock.c:2600 unix_dgram_sendmsg+0x414/0x1a90 net/unix/af_unix.c:1896 sock_sendmsg_nosec net/socket.c:705 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:725 __sys_sendto+0x216/0x310 net/socket.c:2040 __do_sys_sendto net/socket.c:2052 [inline] __se_sys_sendto net/socket.c:2048 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2048 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:0x7fbb477780ac Code: 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 19 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 64 c3 0f 1f 00 55 48 83 ec 20 48 89 54 24 10 RSP: 002b:00007fffe1854ae8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbb477780ac RDX: 0000000000000059 RSI: 00005607ee0173b0 RDI: 0000000000000003 RBP: 00005607ee012910 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000014 R13: 0000000000000001 R14: 00007fbb478f377d R15: 00007fffe1854bf8 ---------------- Code disassembly (best guess): 0: fb sti 1: 48 8d bb 00 c0 5f ff lea -0xa04000(%rbx),%rdi 8: 48 89 fa mov %rdi,%rdx b: 48 c1 ea 03 shr $0x3,%rdx f: 0f b6 14 02 movzbl (%rdx,%rax,1),%edx 13: 48 89 f8 mov %rdi,%rax 16: 83 e0 07 and $0x7,%eax 19: 83 c0 03 add $0x3,%eax 1c: 38 d0 cmp %dl,%al 1e: 7c 04 jl 0x24 20: 84 d2 test %dl,%dl 22: 75 08 jne 0x2c 24: 8b 83 00 c0 5f ff mov -0xa04000(%rbx),%eax * 2a: 5b pop %rbx <-- trapping instruction 2b: c3 retq 2c: e8 c3 f7 90 00 callq 0x90f7f4 31: eb f1 jmp 0x24 33: 90 nop 34: b8 01 00 00 00 mov $0x1,%eax 39: c3 retq 3a: 66 data16 3b: 2e cs 3c: 0f .byte 0xf 3d: 1f (bad) 3e: 84 00 test %al,(%rax)