panic: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/setuid/kernel/sys/arch/amd64/amd64/intr.c", line 699 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 248376 91459 32767 0x10 0 0 syz-executor.7 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279dc9a) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820322,ffffffff8283c727,2bb,ffffffff827a1c2e) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(b02380bf) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f226288) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f226288) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021225298,fffffd806f226288,fffffd806f226310,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021225298,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021225298) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021225298,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021225298,ffff80002612dc40,ffff80002612dc90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612dd10) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612dd10) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x711bae6fae40, 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/setuid/kernel/sys/arch/amd64/amd64/intr.c", line 699 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279dc9a) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820322,ffffffff8283c727,2bb,ffffffff827a1c2e) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(b02380bf) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f226288) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f226288) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021225298,fffffd806f226288,fffffd806f226310,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021225298,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021225298) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021225298,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021225298,ffff80002612dc40,ffff80002612dc90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612dd10) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612dd10) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x711bae6fae40, count: -13 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002612d880 rbx 0xffff800020d59b9f rdx 0 rcx 0xffff800021225298 rax 0xffff800020d58ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xbd49f82f17bbeffe r11 0x1b60a085d6b82ad2 r12 0xffff800020d599a0 r13 0 r14 0 r15 0x1 rip 0xffffffff814c2d0c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002612d870 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=160784 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021224d48,0xffff8000212a3aa8 process=0xffff800027bafab8 user=0xffff800026128000, vmspace=0xfffffd806b083938 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94318 184897 60043 32767 2 0x10 syz-executor.2 94318 70998 60043 32767 3 0x4000090 fsleep syz-executor.2 32327 366110 10594 32767 2 0x10 syz-executor.4 32327 150315 10594 32767 3 0x4000090 fsleep syz-executor.4 91459 248376 53885 32767 7 0x10 syz-executor.7 976 54196 83646 32767 3 0x90 nanoslp syz-executor.5 53885 458533 71249 0 3 0x82 wait syz-executor.7 8672 489781 7745 32767 3 0x90 nanoslp syz-executor.6 83646 445149 71249 0 3 0x82 wait syz-executor.5 10594 194653 36002 32767 3 0x90 nanoslp syz-executor.4 7745 17265 71249 0 3 0x82 wait syz-executor.6 60043 503593 35932 32767 3 0x90 nanoslp syz-executor.2 36002 23055 71249 0 3 0x82 wait syz-executor.4 24202 70345 26054 32767 3 0x90 nanoslp syz-executor.3 35932 29855 71249 0 3 0x82 wait syz-executor.2 72501 115068 65676 32767 3 0x90 nanoslp syz-executor.1 65676 167292 71249 0 3 0x82 wait syz-executor.1 26054 195014 71249 0 3 0x82 wait syz-executor.3 38609 226647 60937 32767 3 0x90 nanoslp syz-executor.0 60937 23436 71249 0 3 0x82 wait syz-executor.0 71249 229658 77677 0 3 0x2000082 wait syz-fuzzer 71249 116914 77677 0 3 0x6000082 nanoslp syz-fuzzer 71249 131787 77677 0 3 0x6000082 wait syz-fuzzer 71249 204655 77677 0 3 0x6000082 wait syz-fuzzer 71249 42579 77677 0 3 0x6000082 thrsleep syz-fuzzer 71249 266788 77677 0 3 0x6000082 wait syz-fuzzer 71249 180979 77677 0 3 0x6000082 wait syz-fuzzer 71249 469840 77677 0 3 0x6000082 thrsleep syz-fuzzer 71249 299271 77677 0 3 0x6000082 wait syz-fuzzer 71249 147764 77677 0 3 0x6000082 thrsleep syz-fuzzer 71249 134528 77677 0 3 0x6000082 wait syz-fuzzer 71249 51719 77677 0 3 0x6000082 wait syz-fuzzer 71249 490600 77677 0 3 0x6000082 thrsleep syz-fuzzer 71249 61229 77677 0 3 0x6000082 thrsleep syz-fuzzer 71249 252293 77677 0 3 0x6000082 thrsleep syz-fuzzer 71249 18537 77677 0 3 0x6000082 kqread syz-fuzzer 77677 178 10691 0 3 0x10008a sigsusp ksh 10691 371443 63596 0 3 0x9a kqread sshd 32364 19392 1 0 3 0x100083 ttyin getty 63596 103272 1 0 3 0x88 kqread sshd 84213 298366 30787 73 3 0x1100090 kqread syslogd 30787 215918 1 0 3 0x100082 netio syslogd 29984 222462 1 0 3 0x100080 kqread resolvd 25180 257811 58315 77 3 0x100092 kqread dhcpleased 44759 465647 58315 77 3 0x100092 kqread dhcpleased 58315 167263 1 0 3 0x80 kqread dhcpleased 63093 412041 0 0 3 0x14200 bored smr 69723 40102 0 0 2 0x14200 zerothread 34096 186449 0 0 3 0x14200 aiodoned aiodoned 70965 319856 0 0 3 0x14200 syncer update 76581 375109 0 0 3 0x14200 cleaner cleaner 86074 90211 0 0 2 0x14200 reaper 90240 302763 0 0 3 0x14200 pgdaemon pagedaemon 25226 120272 0 0 3 0x14200 bored viomb 71480 275780 0 0 3 0x40014200 acpi0 acpi0 69692 148627 0 0 3 0x40014200 idle1 83621 22075 0 0 3 0x14200 bored softnet3 44322 217454 0 0 3 0x14200 bored softnet2 20343 259835 0 0 3 0x14200 bored softnet1 31045 147304 0 0 3 0x14200 bored softnet0 92150 469606 0 0 3 0x14200 bored systqmp 78272 423147 0 0 3 0x14200 bored systq 57776 412500 0 0 3 0x40014200 bored softclock 96821 67580 0 0 3 0x40014200 idle0 1 395715 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10182 6408K 6420K 78643K 11260 0 pcb 13 8K 8K 78643K 13 0 rtable 234 6K 6K 78643K 344 0 pf 29 8K 8K 78643K 29 0 ifaddr 44 15K 15K 78643K 46 0 ifgroup 50 2K 2K 78643K 50 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 2K 78643K 29 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1278 80K 80K 78643K 1291 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 21 77K 117K 78643K 5396 0 sigio 0 0K 0K 78643K 654 0 proc 56 78K 115K 78643K 471 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 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 352 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 291 80K 81K 78643K 46751 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 11 0K 2K 78643K 27 0 temp 33 5906K 5970K 78643K 15251 0 kqueue 12 18K 20K 78643K 27 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 33 0 30 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 1410 0 1397 3 2 1 3 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 172 0 172 1 1 0 1 0 8 0 tcpcb 808 175 0 167 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 225 0 217 2 0 2 2 0 8 1 nd6 136 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 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 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 6736 0 5298 90 0 90 90 0 8 0 ffsino 272 6736 0 5298 96 0 96 96 0 8 0 nchpl 144 14534 0 12856 63 0 63 63 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 33767 0 33767 2 1 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 22 0 0 2 0 2 2 0 8 0 scxspl 216 38033 0 38033 10 9 1 8 1 8 1 plimitpl 152 41 0 18 1 0 1 1 0 8 0 sigapl 424 5679 0 5626 7 0 7 7 0 8 0 futexpl 64 57028 0 57026 1 0 1 1 0 8 0 knotepl 120 104 0 0 4 0 4 4 0 8 0 kqueuepl 216 923 0 915 1 0 1 1 0 8 0 pipepl 320 6376 0 6345 11 7 4 9 0 8 1 fdescpl 496 5662 0 5630 7 2 5 6 0 8 0 filepl 152 25916 0 25677 15 4 11 15 0 8 0 lockfpl 104 10 0 8 1 0 1 1 0 8 0 lockfspl 48 6 0 4 1 0 1 1 0 8 0 sessionpl 144 23 0 7 1 0 1 1 0 8 0 pgrppl 48 142 0 126 1 0 1 1 0 8 0 ucredpl 104 99 0 81 1 0 1 1 0 8 0 zombiepl 144 5631 0 5626 1 0 1 1 0 8 0 processpl 1072 5679 0 5626 4 0 4 4 0 8 0 procpl 680 11052 0 10981 7 0 7 7 0 8 0 sockpl 488 2005 0 1981 13 9 4 12 0 8 0 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 18 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 231 0 0 29 0 29 29 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 365 0 0 21 0 21 21 0 8 0 bufpl 288 9347 0 3021 452 0 452 452 0 8 0 anonpl 24 527454 0 520054 54 7 47 52 0 186 0 amapchunkpl 152 147613 0 146872 38 3 35 35 0 158 3 amappl16 200 9847 0 9701 8 0 8 8 0 8 0 amappl15 192 8 0 8 1 1 0 1 0 8 0 amappl14 184 155 0 142 2 1 1 2 0 8 0 amappl13 176 29 0 27 1 0 1 1 0 8 0 amappl12 168 6275 0 6238 3 0 3 3 0 8 0 amappl11 160 49 0 39 1 0 1 1 0 8 0 amappl10 152 18 0 9 1 0 1 1 0 8 0 amappl9 144 229 0 228 1 0 1 1 0 8 0 amappl8 136 242 0 186 2 0 2 2 0 8 0 amappl7 128 78 0 66 2 0 2 2 0 8 0 amappl6 120 278 0 261 2 1 1 2 0 8 0 amappl5 112 814 0 806 1 0 1 1 0 8 0 amappl4 104 550 0 515 2 0 2 2 0 8 0 amappl3 96 30353 0 30271 4 1 3 3 0 8 0 amappl2 88 6138 0 6069 3 1 2 3 0 8 0 amappl1 80 27279 0 26758 22 10 12 22 0 8 0 amappl 88 46270 0 46065 6 0 6 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 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 5662 0 5630 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5662 0 5630 1 0 1 1 0 8 0 vmmpekpl 168 54272 0 54219 3 0 3 3 0 8 0 vmmpepl 168 317556 0 315525 112 12 100 110 0 357 3 vmsppl 464 5661 0 5630 7 2 5 6 0 8 0 rwobjpl 56 77033 0 69991 103 2 101 101 0 8 1 pdppl 4096 11332 0 11260 134 52 82 92 0 8 10 pvpl 32 1616655 0 1603521 333 88 245 332 0 265 131 pmappl 248 5661 0 5630 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 882 0 55 24 0 24 24 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82c1fff0) 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(ffffffff82c97058) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c97058) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff82c97058) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c97058) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002c815180) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002c815180) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a89ceeba970, count: 6 ddb{0}> trace x86_ipi_db(ffffffff82c1fff0) 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(ffffffff82c97058) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c97058) at __mp_lock+0x122 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff82c97058) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c97058) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002c815180) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002c815180) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a89ceeba970, count: -9 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279dc9a) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820322,ffffffff8283c727,2bb,ffffffff827a1c2e) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(b02380bf) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f226288) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f226288) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021225298,fffffd806f226288,fffffd806f226310,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021225298,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021225298) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021225298,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021225298,ffff80002612dc40,ffff80002612dc90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612dd10) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612dd10) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x711bae6fae40, count: 2 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279dc9a) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820322,ffffffff8283c727,2bb,ffffffff827a1c2e) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(b02380bf) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f226288) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f226288) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021225298,fffffd806f226288,fffffd806f226310,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021225298,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021225298) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021225298,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021225298,ffff80002612dc40,ffff80002612dc90) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612dd10) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612dd10) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x711bae6fae40, count: -13