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 248677 45222 32767 0x10 0 1 syz-executor.4 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a0dbf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f487,ffffffff82838b3c,2bb,ffffffff8279e3af) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(869b6650) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f0f0870) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f0f0870) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff80002121bd58,fffffd806f0f0870,fffffd806f0f08f8,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002121bd58,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002121bd58) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002121bd58,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002121bd58,ffff80002613b770,ffff80002613b7c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002613b840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002613b840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d41a59ff8d0, 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/setuid/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(ffffffff827a0dbf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f487,ffffffff82838b3c,2bb,ffffffff8279e3af) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(869b6650) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f0f0870) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f0f0870) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff80002121bd58,fffffd806f0f0870,fffffd806f0f08f8,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002121bd58,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002121bd58) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002121bd58,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002121bd58,ffff80002613b770,ffff80002613b7c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002613b840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002613b840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d41a59ff8d0, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002613b3b0 rbx 0xffffffff82bc8b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff80002121bd58 rax 0xffffffff82bc7ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe95ea51081d3150a r11 0x12132b51e7cb2e57 r12 0xffffffff82bc89a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8248a28c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002613b3a0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.3) pid=401075 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff8000212257e8,0xffff80002121ad78 process=0xffff800025526198 user=0xffff800026136000, vmspace=0xfffffd8069b4fb00 estcpu=36, cpticks=5, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 32796 267509 74057 32767 2 0x10 syz-executor.6 32796 441324 74057 32767 2 0x4000010 syz-executor.6 99244 58705 81305 32767 2 0x10 syz-executor.0 99244 119931 81305 32767 3 0x4000090 fsleep syz-executor.0 58636 238510 3541 32767 2 0x10 syz-executor.7 45222 248677 21996 32767 7 0x10 syz-executor.4 21996 273717 49493 0 3 0x82 wait syz-executor.4 78719 211474 47787 32767 2 0x490 syz-executor.5 47787 165202 49493 0 3 0x82 wait syz-executor.5 29275 107718 0 0 3 0x14200 bored sosplice 74057 229871 51152 32767 2 0x490 syz-executor.6 3541 210176 59256 32767 2 0x10 syz-executor.7 59256 319827 49493 0 3 0x82 wait syz-executor.7 51152 36810 49493 0 3 0x82 wait syz-executor.6 68256 122491 97205 32767 2 0x490 syz-executor.3 11361 274660 61480 32767 2 0x10 syz-executor.2 97205 480382 49493 0 3 0x82 wait syz-executor.3 61480 237706 49493 0 3 0x82 wait syz-executor.2 81305 69279 89751 32767 2 0x490 syz-executor.0 73390 310276 40819 32767 2 0x10 syz-executor.1 40819 315551 49493 0 3 0x82 wait syz-executor.1 89751 314426 49493 0 3 0x82 wait syz-executor.0 49493 375113 21044 0 3 0x2000082 wait syz-fuzzer 49493 258583 21044 0 3 0x6000082 nanoslp syz-fuzzer 49493 430453 21044 0 3 0x6000082 wait syz-fuzzer 49493 300409 21044 0 3 0x6000082 wait syz-fuzzer 49493 98363 21044 0 3 0x6000082 wait syz-fuzzer 49493 494311 21044 0 2 0x6000082 syz-fuzzer 49493 71401 21044 0 3 0x6000082 thrsleep syz-fuzzer 49493 386409 21044 0 3 0x6000082 wait syz-fuzzer 49493 474013 21044 0 3 0x6000082 thrsleep syz-fuzzer 49493 402851 21044 0 3 0x6000082 thrsleep syz-fuzzer 49493 153433 21044 0 3 0x6000082 thrsleep syz-fuzzer 49493 484433 21044 0 3 0x6000082 wait syz-fuzzer 49493 41328 21044 0 3 0x6000082 wait syz-fuzzer 49493 473229 21044 0 3 0x6000082 wait syz-fuzzer 49493 121005 21044 0 3 0x6000082 thrsleep syz-fuzzer 21044 389043 41355 0 3 0x10008a sigsusp ksh 41355 126368 55754 0 3 0x9a kqread sshd 21175 223059 1 0 3 0x100083 ttyin getty 55754 419233 1 0 3 0x88 kqread sshd 35862 475031 56830 73 3 0x1100090 kqread syslogd 56830 325523 1 0 3 0x100082 netio syslogd 95158 397158 1 0 3 0x100080 kqread resolvd 77147 336991 15691 77 3 0x100092 kqread dhcpleased 25321 314358 15691 77 3 0x100092 kqread dhcpleased 15691 93187 1 0 3 0x80 kqread dhcpleased 81871 83773 0 0 3 0x14200 bored smr 61599 294804 0 0 2 0x14200 zerothread 81051 181541 0 0 3 0x14200 aiodoned aiodoned 58028 470362 0 0 3 0x14200 syncer update 56628 20938 0 0 3 0x14200 cleaner cleaner 80388 333083 0 0 2 0x14200 reaper 88433 356546 0 0 3 0x14200 pgdaemon pagedaemon 9634 461600 0 0 3 0x14200 bored viomb 35013 457707 0 0 3 0x40014200 acpi0 acpi0 1867 442117 0 0 3 0x40014200 idle1 76713 283777 0 0 3 0x14200 bored softnet3 26676 372386 0 0 3 0x14200 bored softnet2 36116 117555 0 0 3 0x14200 bored softnet1 30063 307119 0 0 3 0x14200 bored softnet0 60526 291361 0 0 3 0x14200 bored systqmp 85199 4922 0 0 3 0x14200 bored systq 76678 172939 0 0 2 0x40014200 softclock 73134 422901 0 0 3 0x40014200 idle0 1 147898 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 10186 6409K 6420K 78643K 11270 0 pcb 13 12K 14K 78643K 17 0 rtable 240 6K 6K 78643K 428 0 pf 29 8K 8K 78643K 33 0 ifaddr 44 15K 15K 78643K 54 0 ifgroup 50 2K 2K 78643K 58 0 counters 60 35K 35K 78643K 64 0 ioctlops 0 0K 2K 78643K 33 0 iov 0 0K 24K 78643K 103 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1278 80K 80K 78643K 1398 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 42 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 14 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 22 81K 117K 78643K 1793 0 sigio 0 0K 0K 78643K 119 0 proc 56 78K 115K 78643K 569 0 subproc 104 6K 6K 78643K 130 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 48 0 in_multi 99 7K 7K 78643K 153 0 ether_multi 1 0K 0K 78643K 4 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 557 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 83K 86K 78643K 18599 0 UVM aobj 84 6K 6K 78643K 92 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 50 0 NDP 11 0K 2K 78643K 33 0 temp 74 5920K 5984K 78643K 7880 0 kqueue 12 18K 26K 78643K 125 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 57 0 54 1 0 1 1 0 8 0 rtentry 112 137 0 24 4 0 4 4 0 8 0 unpcb 144 504 0 491 3 2 1 2 0 8 0 syncache 304 19 0 19 4 3 1 1 0 8 1 tcpqe 32 226 0 226 3 3 0 1 0 8 0 tcpcb 808 1055 0 1035 24 21 3 18 0 8 0 arp 120 23 0 4 1 0 1 1 0 8 0 ipq 40 1 0 1 1 1 0 1 0 8 0 ipqe 40 1 0 1 1 1 0 1 0 8 0 inpcb 368 1710 0 1680 34 26 8 17 0 8 5 nd6 136 33 0 7 1 0 1 1 0 8 0 kcovpl 48 10 0 2 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 546 0 90 29 0 29 29 0 8 0 art_table 32 547 0 90 4 0 4 4 0 8 0 art_node 16 136 0 33 1 0 1 1 0 8 0 sysvmsgpl 40 19 0 18 2 1 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 89 0 8 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3354 0 1917 91 0 91 91 0 8 0 ffsino 272 3354 0 1917 97 0 97 97 0 8 0 nchpl 144 5535 0 3898 63 0 63 63 0 8 0 uvmvnodes 80 3493 0 0 72 0 72 72 0 8 0 vnodes 216 3493 0 0 195 0 195 195 0 8 0 namei 1024 16325 0 16325 3 2 1 2 0 8 1 percpumem 16 45 0 2 1 0 1 1 0 8 0 kstatmem 264 26 0 4 2 0 2 2 0 8 0 scxspl 216 17380 0 17380 11 10 1 8 1 8 1 plimitpl 152 225 0 202 3 1 2 2 0 8 1 sigapl 424 2083 0 2031 7 0 7 7 0 8 0 futexpl 64 12600 0 12599 1 0 1 1 0 8 0 knotepl 120 329 0 0 10 0 10 10 0 8 0 kqueuepl 216 156 0 148 1 0 1 1 0 8 0 pipepl 320 409 0 381 13 10 3 8 0 8 0 fdescpl 496 2065 0 2032 7 2 5 6 0 8 0 filepl 152 8454 0 8219 27 15 12 18 0 8 2 lockfpl 104 242 0 240 1 0 1 1 0 8 0 lockfspl 48 37 0 35 1 0 1 1 0 8 0 sessionpl 144 25 0 9 1 0 1 1 0 8 0 pgrppl 48 100 0 84 1 0 1 1 0 8 0 ucredpl 104 852 0 834 1 0 1 1 0 8 0 zombiepl 144 2033 0 2031 1 0 1 1 0 8 0 processpl 1072 2083 0 2031 5 1 4 5 0 8 0 procpl 680 4545 0 4476 8 0 8 8 0 8 1 sosppl 168 29 0 29 3 2 1 1 0 8 1 sockpl 488 2354 0 2316 50 37 13 25 0 8 7 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 9 0 0 2 0 2 2 0 8 0 mcl12k 12288 7 0 0 1 0 1 1 0 8 0 mcl9k 9216 4 0 0 1 0 1 1 0 8 0 mcl8k 8192 10 0 0 2 0 2 2 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 256 0 0 32 0 32 32 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 1060 0 0 65 0 65 65 0 8 0 bufpl 288 5841 0 135 408 0 408 408 0 8 0 anonpl 24 337309 0 326509 105 37 68 88 0 186 1 amapchunkpl 152 59433 0 58597 43 4 39 39 0 158 3 amappl16 200 8209 0 7964 37 23 14 25 0 8 1 amappl15 192 59 0 59 1 1 0 1 0 8 0 amappl14 184 174 0 160 2 1 1 2 0 8 0 amappl13 176 38 0 38 1 1 0 1 0 8 0 amappl12 168 2722 0 2689 2 0 2 2 0 8 0 amappl11 160 47 0 37 1 0 1 1 0 8 0 amappl10 152 37 0 25 1 0 1 1 0 8 0 amappl9 144 183 0 182 2 1 1 1 0 8 0 amappl8 136 226 0 171 2 0 2 2 0 8 0 amappl7 128 70 0 56 2 1 1 2 0 8 0 amappl6 120 285 0 267 2 1 1 2 0 8 0 amappl5 112 243 0 233 1 0 1 1 0 8 0 amappl4 104 593 0 556 3 1 2 3 0 8 0 amappl3 96 12142 0 12060 4 1 3 3 0 8 0 amappl2 88 2357 0 2290 3 1 2 3 0 8 0 amappl1 80 15555 0 15030 22 9 13 22 0 8 0 amappl 88 18035 0 17814 7 0 7 7 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 91 0 8 2 0 2 2 0 8 0 uaddrrnd 24 2065 0 2032 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2065 0 2032 1 0 1 1 0 8 0 vmmpekpl 168 19582 0 19531 3 0 3 3 0 8 0 vmmpepl 168 138228 0 136046 130 24 106 113 0 357 5 vmsppl 464 2064 0 2032 7 2 5 6 0 8 0 rwobjpl 56 43168 0 38363 72 4 68 68 0 8 0 pdppl 4096 4138 0 4064 150 68 82 92 0 8 8 pvpl 32 824609 0 807967 363 99 264 363 0 265 122 pmappl 248 2064 0 2032 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 956 0 119 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(ffffffff827a0dbf) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f487,ffffffff82838b3c,2bb,ffffffff8279e3af) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(869b6650) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f0f0870) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f0f0870) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff80002121bd58,fffffd806f0f0870,fffffd806f0f08f8,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff80002121bd58,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff80002121bd58) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff80002121bd58,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff80002121bd58,ffff80002613b770,ffff80002613b7c0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002613b840) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002613b840) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7d41a59ff8d0, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 sys/dev/kcov.c:158 __mp_lock(ffffffff82d6d010) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6d010) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff8000295ad2b0) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000295ad2b0) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x773e5279a150, count: 8 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 kd_curproc sys/dev/kcov.c:589 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x29 sys/dev/kcov.c:158 __mp_lock(ffffffff82d6d010) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d6d010) at __mp_lock+0x133 sys/kern/kern_lock.c:147 syscall(ffff8000295ad2b0) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff8000295ad2b0) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x773e5279a150, count: -7