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 205580 71740 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279f709) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281d9e3,ffffffff8283c03e,2bb,ffffffff827a18af) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(e08844da) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd807a2c06c0) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd807a2c06c0) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021263808,fffffd807a2c06c0,fffffd807a2c0748,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021263808,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021263808) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021263808,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021263808,ffff80002e41bc60,ffff80002e41bcb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e41bd30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e41bd30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79f8cbb18c10, 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(ffffffff8279f709) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281d9e3,ffffffff8283c03e,2bb,ffffffff827a18af) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(e08844da) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd807a2c06c0) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd807a2c06c0) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021263808,fffffd807a2c06c0,fffffd807a2c0748,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021263808,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021263808) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021263808,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021263808,ffff80002e41bc60,ffff80002e41bcb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e41bd30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e41bd30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79f8cbb18c10, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e41b8a0 rbx 0xffffffff82bbeb9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021263808 rax 0xffffffff82bbdff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa1a980ffe3e47fa4 r11 0xaa32a0bb7fd9d97e r12 0xffffffff82bbe9a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff81b3671c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e41b890 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.6) pid=26607 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800021262818,0xffff800021263570 process=0xffff8000ffff6198 user=0xffff80002e416000, vmspace=0xfffffd807d9a5598 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 61267 314836 45261 32767 2 0x10 syz-executor.1 61267 156955 45261 32767 3 0x4000090 fsleep syz-executor.1 50226 320851 2304 32767 2 0x10 syz-executor.7 68887 445868 11947 32767 2 0x10 syz-executor.4 68887 164187 11947 32767 3 0x4000090 fsleep syz-executor.4 52984 359938 33812 32767 2 0x10 syz-executor.3 52984 121616 33812 32767 2 0x4000090 syz-executor.3 45261 348210 3646 32767 2 0x490 syz-executor.1 3646 171824 53008 0 3 0x82 wait syz-executor.1 32423 257743 40222 32767 2 0x490 syz-executor.5 40222 433646 53008 0 3 0x82 wait syz-executor.5 11947 121154 97302 32767 3 0x90 nanoslp syz-executor.4 97302 71382 53008 0 3 0x82 wait syz-executor.4 33812 313592 33870 32767 2 0x490 syz-executor.3 33870 365719 53008 0 3 0x82 wait syz-executor.3 58544 284636 53008 0 3 0x82 wait syz-executor.0 26742 60862 37353 32767 2 0x490 syz-executor.6 37353 51074 53008 0 3 0x82 wait syz-executor.6 85349 448293 37283 32767 2 0x10 syz-executor.2 37283 259152 53008 0 3 0x82 wait syz-executor.2 2304 155405 20017 32767 2 0x10 syz-executor.7 20017 515543 53008 0 3 0x82 wait syz-executor.7 1352 21671 0 0 3 0x14200 bored sosplice 53008 409995 13695 0 3 0x2000082 wait syz-fuzzer 53008 150203 13695 0 3 0x6000082 nanoslp syz-fuzzer 53008 309859 13695 0 3 0x6000082 thrsleep syz-fuzzer 53008 402096 13695 0 3 0x6000082 thrsleep syz-fuzzer 53008 109862 13695 0 3 0x6000082 wait syz-fuzzer 53008 516551 13695 0 3 0x6000082 wait syz-fuzzer 53008 463592 13695 0 3 0x6000082 thrsleep syz-fuzzer 53008 516968 13695 0 3 0x6000082 wait syz-fuzzer 53008 195655 13695 0 3 0x6000082 thrsleep syz-fuzzer 53008 460856 13695 0 3 0x6000082 thrsleep syz-fuzzer 53008 128580 13695 0 3 0x6000082 wait syz-fuzzer 53008 493046 13695 0 3 0x6000082 thrsleep syz-fuzzer 53008 370541 13695 0 3 0x6000082 wait syz-fuzzer 53008 266051 13695 0 3 0x6000082 kqread syz-fuzzer 53008 439342 13695 0 3 0x6000082 wait syz-fuzzer 53008 500023 13695 0 3 0x6000082 wait syz-fuzzer 13695 5574 9164 0 3 0x10008a sigsusp ksh 9164 402133 32917 0 3 0x9a kqread sshd 41157 388573 1 0 3 0x100083 ttyin getty 32917 460893 1 0 3 0x88 kqread sshd 67541 103104 31711 73 3 0x1100090 kqread syslogd 31711 184991 1 0 3 0x100082 netio syslogd 75150 524171 1 0 3 0x100080 kqread resolvd 97294 226743 52647 77 3 0x100092 kqread dhcpleased 34688 52457 52647 77 3 0x100092 kqread dhcpleased 52647 162515 1 0 3 0x80 kqread dhcpleased 74778 326132 0 0 3 0x14200 bored smr 31922 496582 0 0 2 0x14200 zerothread 98506 224031 0 0 3 0x14200 aiodoned aiodoned 84500 364414 0 0 3 0x14200 syncer update 92249 182695 0 0 3 0x14200 cleaner cleaner 71740 205580 0 0 7 0x14200 reaper 22090 433921 0 0 3 0x14200 pgdaemon pagedaemon 35281 91806 0 0 3 0x14200 bored viomb 78078 443301 0 0 3 0x40014200 acpi0 acpi0 65750 49036 0 0 3 0x40014200 idle1 83219 489558 0 0 3 0x14200 bored softnet3 84144 462860 0 0 3 0x14200 bored softnet2 79169 389102 0 0 3 0x14200 bored softnet1 42913 28064 0 0 3 0x14200 bored softnet0 28716 432416 0 0 3 0x14200 bored systqmp 83975 253708 0 0 3 0x14200 bored systq 55950 190784 0 0 2 0x40014200 softclock 54897 454282 0 0 3 0x40014200 idle0 1 380678 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 10221 6413K 6420K 78643K 11409 0 pcb 13 20K 24K 78643K 21 0 rtable 240 6K 7K 78643K 2089 0 pf 29 8K 8K 78643K 101 0 ifaddr 44 15K 16K 78643K 194 0 ifgroup 50 2K 2K 78643K 194 0 sysctl 3 1K 1K 78643K 3 0 counters 60 35K 35K 78643K 132 0 ioctlops 0 0K 2K 78643K 150 0 iov 0 0K 24K 78643K 1430 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 4569 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 322 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 228 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 109K 78643K 15925 0 sigio 0 0K 0K 78643K 178 0 proc 56 78K 103K 78643K 2307 0 subproc 104 6K 6K 78643K 572 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 438 0 in_multi 99 7K 7K 78643K 642 0 ether_multi 1 0K 0K 78643K 21 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 265 1182K 1182K 78643K 265 0 exec 0 0K 1K 78643K 3526 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 432 92K 109K 78643K 157673 0 UVM aobj 131 4K 4K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 553 0 NDP 11 0K 2K 78643K 135 0 temp 74 5920K 6048K 78643K 42758 0 kqueue 12 18K 32K 78643K 2002 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 863 0 860 13 12 1 3 0 8 0 rtentry 112 542 0 429 4 0 4 4 0 8 0 unpcb 144 9075 0 9056 91 85 6 10 0 8 5 syncache 304 243 0 243 29 28 1 1 0 8 1 tcpqe 32 266 0 266 27 26 1 1 0 8 1 tcpcb 808 5871 0 5800 145 132 13 22 0 8 5 arp 120 94 0 75 1 0 1 1 0 8 0 ipq 40 87 0 87 8 7 1 1 0 8 1 ipqe 40 329 0 329 8 7 1 1 0 8 1 inpcb 368 23650 0 23576 218 205 13 29 0 8 2 nd6 136 162 0 137 4 2 2 2 0 8 0 kcovpl 48 44 0 36 1 0 1 1 0 8 0 rttmr 136 1 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 2142 0 1679 42 12 30 30 0 8 1 art_table 32 2143 0 1679 4 0 4 4 0 8 0 art_node 16 541 0 438 1 0 1 1 0 8 0 semupl 112 5 0 5 2 2 0 1 0 8 0 semapl 112 225 0 215 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 22038 0 20566 93 0 93 93 0 8 0 ffsino 272 22038 0 20566 99 0 99 99 0 8 0 nchpl 144 42691 0 41046 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 136973 0 136973 5 4 1 2 0 8 1 percpumem 16 79 0 36 1 0 1 1 0 8 0 kstatmem 264 94 0 72 2 0 2 2 0 8 0 scxspl 216 130618 0 130618 44 41 3 8 1 8 3 plimitpl 152 2235 0 2212 14 12 2 2 0 8 0 sigapl 424 16149 0 16096 8 1 7 7 0 8 0 futexpl 64 132369 0 132367 5 4 1 1 0 8 0 knotepl 120 907 0 0 13 2 11 11 0 8 0 kqueuepl 216 4518 0 4509 75 70 5 8 0 8 4 pipepl 320 3186 0 3158 81 75 6 8 0 8 3 fdescpl 496 16131 0 16097 7 2 5 6 0 8 0 filepl 152 103604 0 103357 180 165 15 24 0 8 5 lockfpl 104 2405 0 2403 1 0 1 1 0 8 0 lockfspl 48 891 0 889 1 0 1 1 0 8 0 sessionpl 144 59 0 43 1 0 1 1 0 8 0 pgrppl 48 391 0 375 1 0 1 1 0 8 0 ucredpl 104 15864 0 15846 1 0 1 1 0 8 0 zombiepl 144 16099 0 16096 1 0 1 1 0 8 0 processpl 1072 16149 0 16096 4 0 4 4 0 8 0 procpl 680 44189 0 44117 36 28 8 9 0 8 1 sosppl 168 201 0 198 18 17 1 1 0 8 0 sockpl 488 40551 0 40455 545 522 23 42 0 8 8 mcl64k 65536 29 0 0 3 0 3 3 0 8 0 mcl16k 16384 41 0 0 6 3 3 3 0 8 0 mcl12k 12288 24 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 33 0 0 3 0 3 3 0 8 0 mcl4k 4096 71 0 0 6 2 4 5 0 8 0 mcl2k2 2112 14 0 0 1 0 1 1 0 8 0 mcl2k 2048 396 0 0 34 9 25 34 0 8 0 mtagpl 96 18 0 0 1 0 1 1 0 8 0 mbufpl 256 1859 0 0 82 0 82 82 0 8 0 bufpl 288 28030 0 21707 452 0 452 452 0 8 0 anonpl 24 1668820 0 1657242 207 113 94 118 0 186 0 amapchunkpl 152 517521 0 516673 143 105 38 53 0 158 0 amappl16 200 36461 0 36165 189 171 18 41 0 8 0 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 292 0 276 2 1 1 2 0 8 0 amappl13 176 45 0 44 2 1 1 1 0 8 0 amappl12 168 17352 0 17311 2 0 2 2 0 8 0 amappl11 160 54 0 44 1 0 1 1 0 8 0 amappl10 152 104 0 91 1 0 1 1 0 8 0 amappl9 144 379 0 379 11 10 1 1 0 8 1 amappl8 136 1036 0 846 7 0 7 7 0 8 0 amappl7 128 125 0 110 2 0 2 2 0 8 0 amappl6 120 602 0 577 1 0 1 1 0 8 0 amappl5 112 686 0 677 1 0 1 1 0 8 0 amappl4 104 1169 0 1119 2 0 2 2 0 8 0 amappl3 96 97625 0 97537 13 10 3 5 0 8 0 amappl2 88 17008 0 16930 3 1 2 3 0 8 0 amappl1 80 66293 0 65761 22 9 13 22 0 8 0 amappl 88 156092 0 155843 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 16131 0 16097 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 16131 0 16097 1 0 1 1 0 8 0 vmmpekpl 168 121884 0 121822 5 1 4 4 0 8 0 vmmpepl 168 952045 0 949577 291 167 124 137 0 357 1 vmsppl 464 16130 0 16097 6 1 5 5 0 8 0 rwobjpl 56 240057 0 232560 124 14 110 111 0 8 0 pdppl 4096 32270 0 32194 578 496 82 88 0 8 6 pvpl 32 4756138 0 4738127 506 335 171 334 0 265 0 pmappl 248 16130 0 16097 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1809 0 893 27 0 27 27 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(ffffffff8279f709) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281d9e3,ffffffff8283c03e,2bb,ffffffff827a18af) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(e08844da) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd807a2c06c0) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd807a2c06c0) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021263808,fffffd807a2c06c0,fffffd807a2c0748,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021263808,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021263808) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021263808,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021263808,ffff80002e41bc60,ffff80002e41bcb0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e41bd30) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e41bd30) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79f8cbb18c10, 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(ffffffff82d841f0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d841f0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211b32a0) 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(ffffffff82d841f0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d841f0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211b32a0) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5