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 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a4430) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820f81,ffffffff8283fe9b,2bb,ffffffff827a58e3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(9fa8123d) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f280510) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f280510) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211ee010,fffffd806f280510,fffffd806f280598,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211ee010,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211ee010) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211ee010,0,0,1) at exit1+0x3ff sys/kern/kern_exit.c:206 sys_exit(ffff8000211ee010,ffff80002124b6a0,ffff80002124b6f0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002124b770) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002124b770) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cbccc2f170, 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(ffffffff827a4430) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820f81,ffffffff8283fe9b,2bb,ffffffff827a58e3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(9fa8123d) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f280510) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f280510) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211ee010,fffffd806f280510,fffffd806f280598,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211ee010,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211ee010) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211ee010,0,0,1) at exit1+0x3ff sys/kern/kern_exit.c:206 sys_exit(ffff8000211ee010,ffff80002124b6a0,ffff80002124b6f0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002124b770) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002124b770) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cbccc2f170, count: -13 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002124b2e0 rbx 0xffff800020d59b9f rdx 0x3fd rcx 0 rax 0x8f r8 0x101010101010101 r9 0x8080808080808080 r10 0x2b86aa67e7ca08 r11 0x813b202a7dfec341 r12 0xffff800020d599a0 r13 0 r14 0 r15 0x1 rip 0xffffffff816fe4dc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002124b2d0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor3196881301) pid=341362 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000211b3a98,0xffffffff82c5dde8 process=0xffff80002121d930 user=0xffff800021246000, vmspace=0xfffffd807eff83a0 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 15499 398329 45595 0 3 0x82 nanoslp syz-executor3196881301 45595 294041 73104 0 3 0x10008a sigsusp ksh 73104 184931 85144 0 3 0x9a kqread sshd 37983 110556 1 0 3 0x100083 ttyin getty 85144 392380 1 0 3 0x88 kqread sshd 54621 241239 95196 73 3 0x1100090 kqread syslogd 95196 476785 1 0 3 0x100082 netio syslogd 30268 391536 1 0 3 0x100080 kqread resolvd 60461 139933 64680 77 3 0x100092 kqread dhcpleased 10161 382789 64680 77 3 0x100092 kqread dhcpleased 64680 233983 1 0 3 0x80 kqread dhcpleased 18040 336698 0 0 3 0x14200 bored smr 4369 333707 0 0 3 0x14200 pgzero zerothread 55511 206575 0 0 3 0x14200 aiodoned aiodoned 12214 80470 0 0 3 0x14200 syncer update 13037 132234 0 0 3 0x14200 cleaner cleaner 54480 179600 0 0 2 0x14200 reaper 13883 303628 0 0 3 0x14200 pgdaemon pagedaemon 67013 304261 0 0 3 0x14200 bored viomb 26676 35400 0 0 3 0x40014200 acpi0 acpi0 87368 319368 0 0 3 0x40014200 idle1 30062 9795 0 0 3 0x14200 bored softnet3 31448 421975 0 0 3 0x14200 bored softnet2 27070 406576 0 0 3 0x14200 bored softnet1 79367 80467 0 0 3 0x14200 bored softnet0 14224 53472 0 0 3 0x14200 bored systqmp 37681 258262 0 0 3 0x14200 bored systq 44913 422508 0 0 3 0x40014200 bored softclock 98873 1219 0 0 7 0x40014200 idle0 1 147840 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 10156 6389K 6420K 78643K 11234 0 pcb 13 8K 8K 78643K 13 0 rtable 58 1K 2K 78643K 112 0 pf 12 6K 6K 78643K 12 0 ifaddr 12 9K 9K 78643K 12 0 ifgroup 17 1K 1K 78643K 17 0 counters 44 33K 33K 78643K 44 0 ioctlops 0 0K 2K 78643K 21 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1174 73K 74K 78643K 1187 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 1 0K 0K 78643K 1 0 proc 55 78K 79K 78643K 246 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 11 0K 0K 78643K 11 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 25 122K 122K 78643K 25 0 exec 0 0K 1K 78643K 246 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 96 4K 5K 78643K 54648 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 3 0K 0K 78643K 3 0 temp 1 5904K 5968K 78643K 17446 0 kqueue 11 16K 18K 78643K 7314 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 21 0 18 1 0 1 1 0 8 0 rtentry 112 23 0 1 1 0 1 1 0 8 0 unpcb 144 33 0 20 1 0 1 1 0 8 0 syncache 304 5 0 5 2 2 0 1 0 8 0 tcpqe 32 197 0 197 1 1 0 1 0 8 0 tcpcb 808 7298 0 7294 1 0 1 1 0 8 0 arp 120 2 0 0 1 0 1 1 0 8 0 inpcb 368 7316 0 7309 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 96 0 0 6 0 6 6 0 8 0 art_table 32 97 0 0 1 0 1 1 0 8 0 art_node 16 22 0 2 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 8713 0 7326 87 0 87 87 0 8 0 ffsino 272 8713 0 7326 93 0 93 93 0 8 0 nchpl 144 16187 0 14626 58 0 58 58 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 33432 0 33432 2 1 1 1 0 8 1 percpumem 16 35 0 0 1 0 1 1 0 8 0 kstatmem 264 6 0 0 1 0 1 1 0 8 0 scxspl 216 48888 0 48888 10 9 1 8 1 8 1 plimitpl 152 16 0 10 1 0 1 1 0 8 0 sigapl 424 7602 0 7571 4 0 4 4 0 8 0 futexpl 64 7645 0 7645 1 0 1 1 0 8 1 knotepl 120 47 0 0 2 0 2 2 0 8 0 kqueuepl 216 7310 0 7303 1 0 1 1 0 8 0 pipepl 320 88 0 85 2 1 1 1 0 8 0 fdescpl 496 7585 0 7571 3 1 2 3 0 8 0 filepl 152 15711 0 15657 3 0 3 3 0 8 0 lockfpl 104 6 0 4 1 0 1 1 0 8 0 lockfspl 48 4 0 2 1 0 1 1 0 8 0 sessionpl 144 17 0 9 1 0 1 1 0 8 0 pgrppl 48 17 0 9 1 0 1 1 0 8 0 ucredpl 104 66 0 56 1 0 1 1 0 8 0 zombiepl 144 7572 0 7571 2 1 1 1 0 8 0 processpl 1072 7602 0 7571 3 0 3 3 0 8 0 procpl 680 14892 0 14860 3 0 3 3 0 8 0 sockpl 488 7370 0 7347 3 0 3 3 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 440 0 0 50 20 30 50 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 453 0 0 25 4 21 25 0 8 0 bufpl 288 9805 0 3613 443 0 443 443 0 8 0 anonpl 24 543193 0 541265 25 13 12 23 0 186 0 amapchunkpl 152 181328 0 181162 8 1 7 7 0 158 0 amappl16 200 12703 0 12701 6 5 1 5 0 8 0 amappl15 192 14 0 14 2 2 0 1 0 8 0 amappl14 184 101 0 92 1 0 1 1 0 8 0 amappl13 176 6 0 6 2 2 0 1 0 8 0 amappl12 168 8087 0 8073 1 0 1 1 0 8 0 amappl11 160 61 0 51 1 0 1 1 0 8 0 amappl10 152 13 0 13 2 2 0 1 0 8 0 amappl9 144 412 0 412 1 1 0 1 0 8 0 amappl8 136 35 0 33 1 0 1 1 0 8 0 amappl7 128 7300 0 7297 1 0 1 1 0 8 0 amappl6 120 148 0 135 1 0 1 1 0 8 0 amappl5 112 108 0 100 1 0 1 1 0 8 0 amappl4 104 420 0 393 1 0 1 1 0 8 0 amappl3 96 46467 0 46431 1 0 1 1 0 8 0 amappl2 88 427 0 384 3 1 2 2 0 8 0 amappl1 80 38306 0 37874 15 5 10 11 0 8 0 amappl 88 54374 0 54316 2 0 2 2 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 7585 0 7571 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7585 0 7571 1 0 1 1 0 8 0 vmmpekpl 168 35956 0 35939 1 0 1 1 0 8 0 vmmpepl 168 315435 0 314479 53 11 42 47 0 357 0 vmsppl 464 7584 0 7571 3 1 2 3 0 8 0 rwobjpl 56 91124 0 84563 94 1 93 93 0 8 0 pdppl 4096 15178 0 15142 58 22 36 42 0 8 0 pvpl 32 1308966 0 1304589 58 21 37 52 0 265 0 pmappl 248 7584 0 7571 2 1 1 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 778 0 49 21 0 21 21 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82be2ff0) 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(ffffffff82d11830) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d11830) at __mp_lock+0x129 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff82be2ff0) at sched_idle+0x41e sys/kern/kern_sched.c:188 end trace frame: 0x0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82be2ff0) 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(ffffffff82d11830) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d11830) at __mp_lock+0x129 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffffffff82be2ff0) at sched_idle+0x41e sys/kern/kern_sched.c:188 end trace frame: 0x0, count: -8 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(ffffffff827a4430) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820f81,ffffffff8283fe9b,2bb,ffffffff827a58e3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(9fa8123d) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f280510) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f280510) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211ee010,fffffd806f280510,fffffd806f280598,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211ee010,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211ee010) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211ee010,0,0,1) at exit1+0x3ff sys/kern/kern_exit.c:206 sys_exit(ffff8000211ee010,ffff80002124b6a0,ffff80002124b6f0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002124b770) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002124b770) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cbccc2f170, count: 2 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a4430) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82820f81,ffffffff8283fe9b,2bb,ffffffff827a58e3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(9fa8123d) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f280510) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f280510) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211ee010,fffffd806f280510,fffffd806f280598,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211ee010,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211ee010) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211ee010,0,0,1) at exit1+0x3ff sys/kern/kern_exit.c:206 sys_exit(ffff8000211ee010,ffff80002124b6a0,ffff80002124b6f0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002124b770) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002124b770) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78cbccc2f170, count: -13