bisecting fixing commit since 3e732ebf7316ac83e8562db7e64cc68aec390a18 building syzkaller on 975824663d2c65cf7a4d7829fa95f118b675c3be testing commit 3e732ebf7316ac83e8562db7e64cc68aec390a18 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: d66c9bb833b630d73e48585835bda093f0fd90bab190488f342f5c7184b1351b all runs: crashed: INFO: task hung in nbd_add_socket testing current HEAD 6bfb56e93bcef41859c2d5ab234ffd80b691be35 testing commit 6bfb56e93bcef41859c2d5ab234ffd80b691be35 compiler: gcc (GCC) 10.2.1 20210217, GNU ld (GNU Binutils for Debian) 2.35.2 kernel signature: 2e7f6fe671e557e20cd36201f039d4f6779f2be5440a696f0b64b7e66b3c0a34 run #0: crashed: INFO: task hung in nbd_add_socket run #1: crashed: INFO: task hung in nbd_add_socket run #2: crashed: INFO: task hung in nbd_add_socket run #3: crashed: INFO: task hung in nbd_add_socket run #4: crashed: INFO: task hung in nbd_add_socket run #5: boot failed: INFO: task hung in add_early_randomness run #6: boot failed: INFO: task hung in add_early_randomness run #7: boot failed: INFO: task hung in add_early_randomness run #8: boot failed: INFO: task hung in add_early_randomness run #9: boot failed: INFO: task hung in add_early_randomness revisions tested: 2, total time: 29m40.529303648s (build: 13m3.097410698s, test: 16m6.623809431s) the crash still happens on HEAD commit msg: cert host tools: Stop complaining about deprecated OpenSSL functions crash: INFO: task hung in nbd_add_socket INFO: task syz-executor.0:4092 blocked for more than 143 seconds. Not tainted 5.19.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28448 pid: 4092 ppid: 4033 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0x9cd/0x4af0 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 blk_mq_freeze_queue_wait+0xec/0x120 block/blk-mq.c:180 nbd_add_socket+0x152/0x7e0 drivers/block/nbd.c:1122 __nbd_ioctl drivers/block/nbd.c:1463 [inline] nbd_ioctl+0x3a2/0x9c0 drivers/block/nbd.c:1520 blkdev_ioctl+0x2ff/0x660 block/ioctl.c:614 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+0x11f/0x190 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f76ffa89049 RSP: 002b:00007f7700baa168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f76ffb9bf60 RCX: 00007f76ffa89049 RDX: 0000000000000005 RSI: 000000000000ab00 RDI: 0000000000000004 RBP: 00007f76ffae308d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffb7388b4f R14: 00007f7700baa300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8ad7b620 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491 5 locks held by kworker/u4:3/160: 1 lock held by hwrng/754: #0: ffffffff8b7b2ae8 (reading_mutex){+.+.}-{3:3}, at: hwrng_fillfn+0xbb/0x250 drivers/char/hw_random/core.c:503 2 locks held by getty/3286: #0: ffff88814aa72098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x1f/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900028d62e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xb14/0x1040 drivers/tty/n_tty.c:2124 1 lock held by syz-executor.0/4092: #0: ffff88801b90c998 (&nbd->config_lock){+.+.}-{3:3}, at: nbd_ioctl+0x11c/0x9c0 drivers/block/nbd.c:1513 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 5.19.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+0x57/0x7d lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x30/0xc0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x18f/0x1d0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0x891/0xc20 kernel/hung_task.c:378 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 8 Comm: kworker/u4:0 Not tainted 5.19.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:preempt_latency_start kernel/sched/core.c:5560 [inline] RIP: 0010:preempt_latency_start kernel/sched/core.c:5555 [inline] RIP: 0010:preempt_count_add+0x9d/0x140 kernel/sched/core.c:5583 Code: 00 85 c0 75 35 65 48 8b 2c 25 80 6f 02 00 48 8d bd 58 14 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 81 00 00 00 48 89 9d 58 14 00 00 5b 5d c3 31 ff 31 db e8 da RSP: 0018:ffffc900000d7ac8 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffffffff8164c0fb RCX: 1ffffffff1e81720 RDX: 1ffff11001fddd83 RSI: ffffffff81263aa0 RDI: ffff88800feeec18 RBP: ffff88800feed7c0 R08: ffffffff8ca4e8d0 R09: ffff88800fdc1123 R10: ffffed1001fb8224 R11: 0000000000000001 R12: ffffffff81263aa0 R13: 0000000000000000 R14: 0000000000000003 R15: ffffffff8e09c52a FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007feaa46c6990 CR3: 000000000aa8e000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x2b/0x70 kernel/smp.c:1153 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1231 [inline] text_poke_bp_batch+0x5a0/0x6d0 arch/x86/kernel/alternative.c:1488 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x15f/0x220 kernel/jump_label.c:177 static_key_enable+0x11/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0xe3/0x310 mm/kfence/core.c:800 process_one_work+0x841/0x13a0 kernel/workqueue.c:2289 worker_thread+0x598/0xec0 kernel/workqueue.c:2436 kthread+0x299/0x340 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 ---------------- Code disassembly (best guess): 0: 00 85 c0 75 35 65 add %al,0x653575c0(%rbp) 6: 48 8b 2c 25 80 6f 02 mov 0x26f80,%rbp d: 00 e: 48 8d bd 58 14 00 00 lea 0x1458(%rbp),%rdi 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 48 89 fa mov %rdi,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) * 2a: 0f 85 81 00 00 00 jne 0xb1 <-- trapping instruction 30: 48 89 9d 58 14 00 00 mov %rbx,0x1458(%rbp) 37: 5b pop %rbx 38: 5d pop %rbp 39: c3 retq 3a: 31 ff xor %edi,%edi 3c: 31 db xor %ebx,%ebx 3e: e8 .byte 0xe8 3f: da .byte 0xda