panic: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/intr.c", line 699 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 23773 26476 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a3044) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f9a9,ffffffff827ac472,2bb,ffffffff827a3e5f) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(f2039f04) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f04d948) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f04d948) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021224aa0,fffffd806f04d948,fffffd806f04d9d0,7,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021224aa0,7) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021224aa0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021224aa0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021224aa0,ffff800026133040,ffff800026133090) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800026133110) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026133110) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7018da6acf30, count: 2 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}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/intr.c", line 699 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a3044) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f9a9,ffffffff827ac472,2bb,ffffffff827a3e5f) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(f2039f04) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f04d948) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f04d948) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021224aa0,fffffd806f04d948,fffffd806f04d9d0,7,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021224aa0,7) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021224aa0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021224aa0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021224aa0,ffff800026133040,ffff800026133090) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800026133110) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026133110) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7018da6acf30, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800026132c80 rbx 0xffffffff82bd0b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021224aa0 rax 0xffffffff82bcfff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x407b906bea5988ca r11 0xd86a2ebee30f7f9f r12 0xffffffff82bd09a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8272402c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800026132c70 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.4) pid=337058 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002121f010,0xffff800021225550 process=0xffff8000212ce9f8 user=0xffff80002612e000, vmspace=0xfffffd80698d8cc8 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 14264 4168 257 0 2 0 syz-executor.6 14264 59980 257 0 3 0x4000080 fsleep syz-executor.6 43364 236263 62318 0 2 0 syz-executor.2 43364 374909 62318 0 2 0x4000000 syz-executor.2 91248 286105 20988 0 2 0 syz-executor.7 91248 386102 20988 0 2 0x4000000 syz-executor.7 91248 54922 20988 0 2 0x4000000 syz-executor.7 20988 62555 31361 0 2 0x482 syz-executor.7 87905 303489 31361 0 2 0x2 syz-executor.5 257 209287 31361 0 2 0x482 syz-executor.6 97597 358605 31361 0 2 0x2 syz-executor.3 82231 159886 31361 0 3 0x82 nanoslp syz-executor.4 62318 181009 31361 0 3 0x82 nanoslp syz-executor.2 8357 468335 31361 0 2 0x2 syz-executor.1 73655 297945 31361 0 2 0x2 syz-executor.0 31361 161386 16018 0 3 0x2000082 wait syz-fuzzer 31361 484642 16018 0 2 0x6000482 syz-fuzzer 31361 36478 16018 0 3 0x6000082 wait syz-fuzzer 31361 462142 16018 0 3 0x6000082 wait syz-fuzzer 31361 138489 16018 0 3 0x6000082 thrsleep syz-fuzzer 31361 1623 16018 0 3 0x6000082 thrsleep syz-fuzzer 31361 101012 16018 0 3 0x6000082 wait syz-fuzzer 31361 332939 16018 0 3 0x6000082 wait syz-fuzzer 31361 495485 16018 0 3 0x6000082 wait syz-fuzzer 31361 207352 16018 0 3 0x6000082 wait syz-fuzzer 31361 294341 16018 0 3 0x6000082 thrsleep syz-fuzzer 31361 483457 16018 0 3 0x6000082 wait syz-fuzzer 31361 419137 16018 0 3 0x6000082 thrsleep syz-fuzzer 31361 335199 16018 0 3 0x6000082 thrsleep syz-fuzzer 31361 325012 16018 0 3 0x6000082 thrsleep syz-fuzzer 31361 68733 16018 0 3 0x6000082 kqread syz-fuzzer 16018 318497 13499 0 3 0x10008a sigsusp ksh 13499 390117 15183 0 3 0x9a kqread sshd 73156 167810 1 0 3 0x100083 ttyin getty 15183 201003 1 0 3 0x88 kqread sshd 49112 213235 1857 74 3 0x1100092 bpf pflogd 1857 52709 1 0 3 0x80 netio pflogd 89202 131070 1334 73 3 0x1100090 kqread syslogd 1334 58332 1 0 3 0x100082 netio syslogd 5504 130673 1 0 3 0x100080 kqread resolvd 77936 242779 10645 77 3 0x100092 kqread dhcpleased 31549 396675 10645 77 3 0x100092 kqread dhcpleased 10645 33752 1 0 3 0x80 kqread dhcpleased 96850 362715 0 0 3 0x14200 bored smr 4808 455201 0 0 2 0x14200 zerothread 49300 77339 0 0 3 0x14200 aiodoned aiodoned 90627 472743 0 0 3 0x14200 syncer update 51120 36155 0 0 3 0x14200 cleaner cleaner 26476 23773 0 0 7 0x14200 reaper 3134 353744 0 0 3 0x14200 pgdaemon pagedaemon 59451 507085 0 0 3 0x14200 bored viomb 79221 378068 0 0 3 0x40014200 acpi0 acpi0 70344 403178 0 0 3 0x40014200 idle1 68384 146691 0 0 3 0x14200 bored softnet3 70006 260414 0 0 3 0x14200 bored softnet2 92044 268861 0 0 3 0x14200 bored softnet1 85488 300835 0 0 3 0x14200 bored softnet0 624 35055 0 0 3 0x14200 bored systqmp 88041 418035 0 0 3 0x14200 bored systq 59472 16879 0 0 3 0x40014200 bored softclock 57427 35615 0 0 3 0x40014200 idle0 1 156555 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10212 6494K 6687K 78643K 15937 0 pcb 14 8K 8K 78643K 113 0 rtable 234 6K 6K 78643K 354 0 pf 32 9K 10K 78643K 43 0 ifaddr 45 15K 15K 78643K 47 0 ifgroup 55 2K 2K 78643K 55 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 4K 78643K 2605 0 iov 0 0K 0K 78643K 1811 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1346 84K 84K 78643K 3055 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 78 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 306 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 77K 78643K 23604 0 sigio 0 0K 0K 78643K 65 0 proc 67 91K 115K 78643K 526 0 subproc 104 6K 6K 78643K 104 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 99 7K 7K 78643K 99 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 169 758K 758K 78643K 169 0 exec 0 0K 1K 78643K 387 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 319 85K 87K 78643K 205750 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 1K 78643K 28 0 temp 73 5916K 6044K 78643K 53609 0 kqueue 12 18K 28K 78643K 955 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 36 0 33 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 12799 0 12783 69 68 1 6 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 181 0 181 1 1 0 1 0 8 0 tcpcb 808 42 0 38 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 335 0 327 1 0 1 1 0 8 0 nd6 136 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 27 0 25 1 0 1 1 0 8 0 pfstkey 128 27 0 25 1 0 1 1 0 8 0 pfstate 376 27 0 25 3 2 1 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 453 0 0 29 0 29 29 0 8 0 art_table 32 454 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semapl 112 304 0 294 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 25991 0 24543 91 0 91 91 0 8 0 ffsino 272 25991 0 24543 97 0 97 97 0 8 0 nchpl 144 55560 0 53871 64 0 64 64 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 159306 0 159306 4 3 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 150920 0 150920 10 9 1 8 1 8 1 plimitpl 152 34 0 18 1 0 1 1 0 8 0 sigapl 424 23926 0 23882 6 0 6 6 0 8 0 futexpl 64 170041 0 170040 1 0 1 1 0 8 0 knotepl 120 117 0 0 4 0 4 4 0 8 0 kqueuepl 216 7988 0 7980 80 72 8 8 0 8 7 pipepl 320 6650 0 6622 62 59 3 13 0 8 0 fdescpl 496 23909 0 23882 5 0 5 5 0 8 0 filepl 152 106776 0 106533 202 187 15 20 0 8 5 lockfpl 104 1107 0 1105 1 0 1 1 0 8 0 lockfspl 48 547 0 545 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 3699 0 3682 1 0 1 1 0 8 0 ucredpl 104 8884 0 8872 1 0 1 1 0 8 0 zombiepl 144 23883 0 23882 1 0 1 1 0 8 0 processpl 1072 23926 0 23882 4 0 4 4 0 8 0 procpl 680 52375 0 52311 59 52 7 7 0 8 1 sockpl 488 13170 0 13143 222 217 5 20 0 8 1 mcl64k 65536 25 0 0 4 1 3 3 0 8 0 mcl16k 16384 65 0 0 8 5 3 3 0 8 0 mcl12k 12288 73 0 0 2 0 2 2 0 8 0 mcl9k 9216 21 0 0 2 0 2 2 0 8 0 mcl8k 8192 34 0 0 4 2 2 3 0 8 0 mcl4k 4096 73 0 0 7 4 3 3 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 392 0 0 46 17 29 46 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1594 0 0 25 2 23 25 0 8 0 bufpl 288 27737 0 21405 453 0 453 453 0 8 0 anonpl 24 1732641 0 1724663 73 22 51 58 0 186 0 amapchunkpl 152 646314 0 645596 179 147 32 34 0 158 3 amappl16 200 25820 0 25654 11 2 9 10 0 8 0 amappl15 192 51 0 51 2 2 0 1 0 8 0 amappl14 184 164 0 147 2 1 1 2 0 8 0 amappl13 176 17 0 16 1 0 1 1 0 8 0 amappl12 168 24581 0 24553 2 0 2 2 0 8 0 amappl11 160 63 0 48 1 0 1 1 0 8 0 amappl10 152 56 0 45 1 0 1 1 0 8 0 amappl9 144 483 0 482 1 0 1 1 0 8 0 amappl8 136 395 0 316 3 0 3 3 0 8 0 amappl7 128 103 0 92 1 0 1 1 0 8 0 amappl6 120 429 0 409 2 1 1 2 0 8 0 amappl5 112 282 0 270 1 0 1 1 0 8 0 amappl4 104 813 0 771 3 1 2 3 0 8 0 amappl3 96 130504 0 130425 4 1 3 3 0 8 0 amappl2 88 25104 0 25036 3 1 2 3 0 8 0 amappl1 80 87882 0 87329 23 10 13 23 0 8 0 amappl 88 205178 0 204986 9 4 5 6 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 23909 0 23882 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 23909 0 23882 1 0 1 1 0 8 0 vmmpekpl 168 154205 0 154171 3 0 3 3 0 8 0 vmmpepl 168 1269945 0 1267944 251 155 96 118 0 357 1 vmsppl 464 23908 0 23882 5 1 4 5 0 8 0 rwobjpl 56 268128 0 260818 112 8 104 105 0 8 0 pdppl 4096 47826 0 47764 2932 2862 70 76 0 8 8 pvpl 32 6134618 0 6121036 391 271 120 362 0 265 0 pmappl 248 23908 0 23882 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3768 0 2950 24 0 24 24 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a3044) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f9a9,ffffffff827ac472,2bb,ffffffff827a3e5f) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(f2039f04) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f04d948) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f04d948) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021224aa0,fffffd806f04d948,fffffd806f04d9d0,7,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021224aa0,7) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021224aa0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021224aa0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021224aa0,ffff800026133040,ffff800026133090) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800026133110) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026133110) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7018da6acf30, count: -13 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82c55160) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c55160) at __mp_lock+0x12e sys/kern/kern_lock.c:147 reaper(ffff8000211b3a98) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d58ff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82c55160) at __mp_lock+0x12e __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c55160) at __mp_lock+0x12e sys/kern/kern_lock.c:147 reaper(ffff8000211b3a98) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5