53Q}y cp60f\cyvq@݂{]BlML9Un宗u %wNz$-Ҍa`Lu_Xԝ$gdL5S.e'{Bmpanic: kernel diagnostic assertion "__mp_lock_held(&sched_lock, curcpu()) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_lock.c", line 63 Stopped at db_enter+0xa: popq %rbp TID PID UID PRFLAGS PFLAGS CPU COMMAND db_enter() at db_enter+0xa sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x147 sys/kern/subr_prf.c:208 __assert(ffffffff81681564,ffff80002119b0a0,ffff8000210a3080,ffff80000002f180) at __assert+0x24 sys/kern/subr_prf.c:155 _kernel_lock(ffff8000210a3080,ffff800021196000) at _kernel_lock+0x125 sys/kern/kern_lock.c:63 pageflttrap() at pageflttrap+0x6c sys/arch/amd64/amd64/trap.c:163 kerntrap(9) at kerntrap+0x8d sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,ffff800002cd8000,ffffffffffffffff,0,9,ffff8000210a3080) at alltraps_kern+0x7b ptsignal(2558,ffff8000210a3080,ffff8000210ca018) at ptsignal+0x115 sys/kern/kern_sig.c:944 mi_switch() at mi_switch+0x1fb sys/kern/sched_bsd.c:392 sleep_finish(1,ffff80002119b330) at sleep_finish+0xd3 sys/kern/kern_synch.c:312 sleep_finish_all(ffff80002119b330,32) at sleep_finish_all+0x22 sleep_finish_timeout sys/kern/kern_synch.c:336 [inline] sleep_finish_all(ffff80002119b330,32) at sleep_finish_all+0x22 sys/kern/kern_synch.c:157 tsleep(ffff8000210a3080,3,0,ffff8000210ca0e0) at tsleep+0x142 single_thread_set(ffff8000210a3080,ffff8000210a3080,0) at single_thread_set+0x28b single_thread_wait sys/kern/kern_sig.c:2051 [inline] single_thread_set(ffff8000210a3080,ffff8000210a3080,0) at single_thread_set+0x28b sys/kern/kern_sig.c:2042 exit1(ffff8000210a3080,9,0) at exit1+0x84 sys/kern/kern_exit.c:137 end trace frame: 0xffff80002119b500, count: 0 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{0}> ddb{0}> set $lines = 0 ddb{0}> show panic kernel diagnostic assertion "__mp_lock_held(&sched_lock, curcpu()) == 0" failed: file "/syzkaller/managers/multicore/kernel/sys/kern/kern_lock.c", line 63 ddb{0}> trace db_enter() at db_enter+0xa sys/arch/amd64/amd64/db_interface.c:399 panic() at panic+0x147 sys/kern/subr_prf.c:208 __assert(ffffffff81681564,ffff80002119b0a0,ffff8000210a3080,ffff80000002f180) at __assert+0x24 sys/kern/subr_prf.c:155 _kernel_lock(ffff8000210a3080,ffff800021196000) at _kernel_lock+0x125 sys/kern/kern_lock.c:63 pageflttrap() at pageflttrap+0x6c sys/arch/amd64/amd64/trap.c:163 kerntrap(9) at kerntrap+0x8d sys/arch/amd64/amd64/trap.c:294 alltraps_kern(6,ffff800002cd8000,ffffffffffffffff,0,9,ffff8000210a3080) at alltraps_kern+0x7b ptsignal(2558,ffff8000210a3080,ffff8000210ca018) at ptsignal+0x115 sys/kern/kern_sig.c:944 mi_switch() at mi_switch+0x1fb sys/kern/sched_bsd.c:392 sleep_finish(1,ffff80002119b330) at sleep_finish+0xd3 sys/kern/kern_synch.c:312 sleep_finish_all(ffff80002119b330,32) at sleep_finish_all+0x22 sleep_finish_timeout sys/kern/kern_synch.c:336 [inline] sleep_finish_all(ffff80002119b330,32) at sleep_finish_all+0x22 sys/kern/kern_synch.c:157 tsleep(ffff8000210a3080,3,0,ffff8000210ca0e0) at tsleep+0x142 single_thread_set(ffff8000210a3080,ffff8000210a3080,0) at single_thread_set+0x28b single_thread_wait sys/kern/kern_sig.c:2051 [inline] single_thread_set(ffff8000210a3080,ffff8000210a3080,0) at single_thread_set+0x28b sys/kern/kern_sig.c:2042 exit1(ffff8000210a3080,9,0) at exit1+0x84 sys/kern/kern_exit.c:137 postsig(100,ffff8000210a3080) at postsig+0x3ea sigexit sys/kern/kern_sig.c:1500 [inline] postsig(100,ffff8000210a3080) at postsig+0x3ea sys/kern/kern_sig.c:1432 userret(0) at userret+0x11b sys/kern/kern_sig.c:1882 syscall(0) at syscall+0x54d mi_syscall_return sys/sys/syscall_mi.h:122 [inline] syscall(0) at syscall+0x54d sys/arch/amd64/amd64/trap.c:605 Xsyscall(6,58,9b62dc29c00,53,0,9b62dc20d80) at Xsyscall+0x128 end of kernel end trace frame: 0x9b5af62bec0, count: -18 ddb{0}> show registers rdi 0xffffffff81e432f8 kprintf_mutex rsi 0xffffffff81108239 db_enter+0x9 rbp 0xffff80002119b000 rbx 0xffff80002119b0a0 rdx 0xffff800002cd8000 rcx 0x3dec __ALIGN_SIZE+0x2dec rax 0xffff800002cd8000 r8 0xffff80002119afd0 r9 0x8080808080808080 r10 0xfd4d6f322589a98a r11 0xffffffff81afc6f0 x86_bus_space_io_read_1 r12 0x3000000008 r13 0xffff80002119b010 r14 0x100 r15 0xffffffff81bf423e cmd0646_9_tim_udma+0x1cad2 rip 0xffffffff8110823a db_enter+0xa cs 0x8 rflags 0x202 rsp 0xffff80002119b000 ss 0x10 db_enter+0xa: popq %rbp ddb{0}> show proc PROC (syz-executor1) pid=46555 stat=sleep flags process=1000 proc=4002000 pri=50, usrpri=86, nice=20 forw=0x0, list=0xffff8000210a3c38,0xffffffff81ec3860 process=0xffff8000210ca018 user=0xffff800021196000, vmspace=0xffffff007f125d68 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 48511 213229 97869 0 2 0 syz-executor0 48511 163220 97869 0 3 0x4000080 fsleep syz-executor0 92724 180839 32468 0 2 0x4081080 syz-executor1 *92724 46555 32468 0 3 0x4003000 suspend syz-executor1 10505 296692 1 0 3 0x100083 ttyin getty 24940 344276 0 0 3 0x14200 bored sosplice 32468 116984 1393 0 3 0x82 nanosleep syz-executor1 97869 86516 1393 0 3 0x82 nanosleep syz-executor0 1393 289050 41778 0 3 0x82 thrsleep syz-fuzzer 1393 218224 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 435989 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 185510 41778 0 3 0x4000082 kqread syz-fuzzer 1393 480300 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 301684 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 458985 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 222898 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 100286 41778 0 3 0x4000082 thrsleep syz-fuzzer 1393 488261 41778 0 3 0x4000082 thrsleep syz-fuzzer 41778 507429 7585 0 3 0x10008a pause ksh 7585 159727 72199 0 3 0x92 select sshd 72199 420596 1 0 3 0x80 select sshd 43844 167110 31889 73 3 0x100090 kqread syslogd 31889 298717 1 0 3 0x100082 netio syslogd 18889 246829 1 77 3 0x100090 poll dhclient 15265 404501 1 0 3 0x80 poll dhclient 7412 463379 0 0 2 0x14200 zerothread 54221 523800 0 0 3 0x14200 aiodoned aiodoned 14540 423695 0 0 3 0x14200 syncer update 67144 287728 0 0 3 0x14200 cleaner cleaner 25889 145695 0 0 3 0x14200 reaper reaper 60346 46254 0 0 3 0x14200 pgdaemon pagedaemon 85625 244600 0 0 3 0x14200 bored crynlk 7648 9506 0 0 3 0x14200 bored crypto 24041 185502 0 0 3 0x40014200 acpi0 acpi0 5784 442676 0 0 3 0x40014200 idle1 38821 71533 0 0 3 0x14200 bored softnet 6134 206584 0 0 3 0x14200 bored systqmp 90948 341290 0 0 3 0x14200 bored systq 4943 125986 0 0 3 0x40014200 bored softclock 65106 201577 0 0 3 0x40014200 idle0 1 341926 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper