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 443615 63781 32767 0x10 0 1 syz-executor.2 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(a4f91929) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f5b4af8) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f5b4af8) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021238d50,fffffd806f5b4af8,fffffd806f5b4b80,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021238d50,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021238d50) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021238d50,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021238d50,ffff80002e45f990,ffff80002e45f9e0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e45fa60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45fa60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a70a6cf560, 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(a4f91929) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f5b4af8) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f5b4af8) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021238d50,fffffd806f5b4af8,fffffd806f5b4b80,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021238d50,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021238d50) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021238d50,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021238d50,ffff80002e45f990,ffff80002e45f9e0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e45fa60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45fa60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a70a6cf560, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e45f5d0 rbx 0xffffffff82bc8b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021238d50 rax 0xffffffff82bc7ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x6fa34e3ae5adc09b r11 0x5bd999e6b4b92e9f r12 0xffffffff82bc89a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8248a28c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e45f5c0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=228355 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000212ccff8,0xffff8000212392b0 process=0xffff8000ffffa5b8 user=0xffff80002e45a000, vmspace=0xfffffd806ba4b928 estcpu=36, cpticks=4, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 64974 58874 84787 32767 2 0x10 syz-executor.5 64974 347535 84787 32767 3 0x4000090 netcon syz-executor.5 74065 353043 26054 32767 2 0x10 syz-executor.4 74065 328608 26054 32767 3 0x4000090 fsleep syz-executor.4 43279 31818 18646 32767 2 0x490 syz-executor.0 18646 57716 69004 0 3 0x82 wait syz-executor.0 84787 32114 47911 32767 2 0x490 syz-executor.5 47911 345421 69004 0 3 0x82 wait syz-executor.5 63781 443615 56203 32767 7 0x10 syz-executor.2 56203 36079 69004 0 3 0x82 wait syz-executor.2 26054 336903 34861 32767 2 0x490 syz-executor.4 34861 359707 69004 0 3 0x82 wait syz-executor.4 75712 191364 0 0 3 0x14200 bored sosplice 14089 134704 49206 32767 2 0x10 syz-executor.7 49206 6061 69004 0 3 0x82 wait syz-executor.7 34513 385776 70927 32767 2 0x490 syz-executor.6 70927 350107 69004 0 3 0x82 wait syz-executor.6 91802 111483 96147 32767 2 0x10 syz-executor.3 96147 27537 69004 0 3 0x82 wait syz-executor.3 19422 362643 17596 32767 2 0x490 syz-executor.1 17596 93099 69004 0 3 0x82 wait syz-executor.1 69004 349094 55940 0 3 0x2000082 thrsleep syz-fuzzer 69004 246326 55940 0 2 0x6000482 syz-fuzzer 69004 405130 55940 0 3 0x6000082 kqread syz-fuzzer 69004 73712 55940 0 3 0x6000082 wait syz-fuzzer 69004 60439 55940 0 3 0x6000082 wait syz-fuzzer 69004 434427 55940 0 3 0x6000082 wait syz-fuzzer 69004 29271 55940 0 3 0x6000082 thrsleep syz-fuzzer 69004 390838 55940 0 3 0x6000082 wait syz-fuzzer 69004 89913 55940 0 3 0x6000082 thrsleep syz-fuzzer 69004 145587 55940 0 3 0x6000082 thrsleep syz-fuzzer 69004 514578 55940 0 3 0x6000082 wait syz-fuzzer 69004 12122 55940 0 3 0x6000082 wait syz-fuzzer 69004 67970 55940 0 3 0x6000082 wait syz-fuzzer 69004 351059 55940 0 3 0x6000082 thrsleep syz-fuzzer 69004 389550 55940 0 3 0x6000082 wait syz-fuzzer 69004 47938 55940 0 3 0x6000082 thrsleep syz-fuzzer 55940 147748 69668 0 3 0x10008a sigsusp ksh 69668 398852 44496 0 3 0x9a kqread sshd 90018 515337 1 0 3 0x100083 ttyin getty 44496 268941 1 0 3 0x88 kqread sshd 50052 309595 57837 73 3 0x1100090 kqread syslogd 57837 404705 1 0 3 0x100082 netio syslogd 36848 521087 1 0 3 0x100080 kqread resolvd 78548 178627 19863 77 3 0x100092 kqread dhcpleased 45693 102821 19863 77 3 0x100092 kqread dhcpleased 19863 196087 1 0 3 0x80 kqread dhcpleased 19540 431230 0 0 3 0x14200 bored smr 33633 470475 0 0 2 0x14200 zerothread 2712 122985 0 0 3 0x14200 aiodoned aiodoned 67948 337959 0 0 3 0x14200 syncer update 71145 392946 0 0 3 0x14200 cleaner cleaner 80194 3677 0 0 2 0x14200 reaper 20581 230406 0 0 3 0x14200 pgdaemon pagedaemon 94435 365860 0 0 3 0x14200 bored viomb 64601 309964 0 0 3 0x40014200 acpi0 acpi0 43305 272729 0 0 3 0x40014200 idle1 85295 493289 0 0 3 0x14200 bored softnet3 18465 453520 0 0 3 0x14200 bored softnet2 70937 178194 0 0 3 0x14200 bored softnet1 46368 116064 0 0 3 0x14200 bored softnet0 41008 191487 0 0 3 0x14200 bored systqmp 18090 34798 0 0 3 0x14200 bored systq 66520 345093 0 0 2 0x40014200 softclock 91698 164941 0 0 3 0x40014200 idle0 1 376181 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 10194 6410K 6420K 78643K 11296 0 pcb 13 8K 8K 78643K 13 0 rtable 240 6K 7K 78643K 799 0 pf 29 8K 8K 78643K 45 0 ifaddr 44 15K 15K 78643K 80 0 ifgroup 50 2K 2K 78643K 82 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 76 0 ioctlops 0 0K 2K 78643K 86 0 iov 0 0K 16K 78643K 811 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 2497 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 197 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1403 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 21 77K 117K 78643K 7128 0 sigio 0 0K 0K 78643K 125 0 proc 56 78K 103K 78643K 1100 0 subproc 104 6K 6K 78643K 208 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 316 0 in_multi 99 7K 7K 78643K 239 0 ether_multi 1 0K 0K 78643K 3 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 103 466K 466K 78643K 103 0 exec 0 0K 1K 78643K 1442 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 420 96K 111K 78643K 72412 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 187 0 NDP 11 0K 2K 78643K 51 0 temp 74 5920K 6048K 78643K 20455 0 kqueue 12 18K 28K 78643K 575 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 259 0 256 2 1 1 2 0 8 0 rtentry 112 214 0 101 4 0 4 4 0 8 0 unpcb 144 5008 0 4995 46 39 7 8 0 8 6 syncache 304 57 0 57 9 8 1 1 0 8 1 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 456 0 456 9 8 1 1 0 8 1 tcpcb 808 2096 0 2067 31 28 3 9 0 8 0 arp 120 37 0 18 1 0 1 1 0 8 0 ipq 40 37 0 33 3 2 1 1 0 8 0 ipqe 40 176 0 172 3 2 1 1 0 8 0 inpcb 368 4316 0 4281 60 51 9 14 0 8 5 nd6 136 60 0 34 1 0 1 1 0 8 0 kcovpl 48 16 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 862 0 402 30 1 29 30 0 8 0 art_table 32 863 0 402 4 0 4 4 0 8 0 art_node 16 213 0 110 1 0 1 1 0 8 0 semapl 112 1401 0 1391 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 10548 0 9097 91 0 91 91 0 8 0 ffsino 272 10548 0 9097 98 0 98 98 0 8 0 nchpl 144 19773 0 18127 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 63180 0 63180 4 3 1 2 0 8 1 percpumem 16 51 0 8 1 0 1 1 0 8 0 kstatmem 264 38 0 16 2 0 2 2 0 8 0 scxspl 216 57246 0 57246 20 16 4 8 1 8 4 plimitpl 152 759 0 736 9 8 1 2 0 8 0 sigapl 424 7411 0 7358 7 0 7 7 0 8 0 futexpl 64 71778 0 71777 3 2 1 1 0 8 0 knotepl 120 441 0 0 10 0 10 10 0 8 0 kqueuepl 216 1528 0 1520 19 14 5 5 0 8 4 pipepl 320 1539 0 1511 41 33 8 8 0 8 5 fdescpl 496 7393 0 7361 7 1 6 6 0 8 0 filepl 152 39204 0 38965 72 55 17 20 0 8 7 lockfpl 104 698 0 696 1 0 1 1 0 8 0 lockfspl 48 279 0 277 1 0 1 1 0 8 0 sessionpl 144 31 0 15 1 0 1 1 0 8 0 pgrppl 48 151 0 135 1 0 1 1 0 8 0 ucredpl 104 6633 0 6615 1 0 1 1 0 8 0 zombiepl 144 7362 0 7358 2 1 1 1 0 8 0 processpl 1072 7411 0 7358 4 0 4 4 0 8 0 procpl 680 20224 0 20153 17 9 8 8 0 8 0 sosppl 168 137 0 137 13 12 1 1 0 8 1 sockpl 488 9806 0 9758 219 205 14 31 0 8 7 mcl64k 65536 18 0 0 3 0 3 3 0 8 0 mcl16k 16384 24 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 14 0 0 1 0 1 1 0 8 0 mcl8k 8192 26 0 0 3 0 3 3 0 8 0 mcl4k 4096 26 0 0 4 0 4 4 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 333 0 0 39 7 32 39 0 8 0 mtagpl 96 5 0 0 1 0 1 1 0 8 0 mbufpl 256 1214 0 0 61 0 61 61 0 8 0 bufpl 288 14516 0 8190 453 0 453 453 0 8 0 anonpl 24 878602 0 867177 209 119 90 115 0 186 4 amapchunkpl 152 229263 0 228380 78 33 45 46 0 158 4 amappl16 200 21548 0 21259 153 133 20 38 0 8 4 amappl15 192 11 0 11 2 2 0 1 0 8 0 amappl14 184 178 0 165 2 1 1 2 0 8 0 amappl13 176 14 0 13 2 1 1 1 0 8 0 amappl12 168 8168 0 8133 2 0 2 2 0 8 0 amappl11 160 54 0 43 1 0 1 1 0 8 0 amappl10 152 37 0 25 1 0 1 1 0 8 0 amappl9 144 287 0 286 1 0 1 1 0 8 0 amappl8 136 499 0 369 5 0 5 5 0 8 0 amappl7 128 119 0 102 2 1 1 2 0 8 0 amappl6 120 363 0 339 2 1 1 2 0 8 0 amappl5 112 365 0 356 1 0 1 1 0 8 0 amappl4 104 820 0 783 3 1 2 3 0 8 0 amappl3 96 45156 0 45072 5 2 3 4 0 8 0 amappl2 88 8508 0 8440 3 1 2 3 0 8 0 amappl1 80 34174 0 33648 22 9 13 22 0 8 0 amappl 88 71505 0 71257 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 7393 0 7361 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 7393 0 7361 1 0 1 1 0 8 0 vmmpekpl 168 62670 0 62607 4 0 4 4 0 8 0 vmmpepl 168 446840 0 444534 198 86 112 127 0 357 0 vmsppl 464 7392 0 7361 7 2 5 6 0 8 0 rwobjpl 56 123563 0 116141 123 14 109 110 0 8 0 pdppl 4096 14794 0 14722 290 208 82 92 0 8 10 pvpl 32 2224204 0 2206762 408 238 170 356 0 265 5 pmappl 248 7392 0 7361 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1194 0 310 26 0 26 26 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(a4f91929) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f5b4af8) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f5b4af8) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021238d50,fffffd806f5b4af8,fffffd806f5b4b80,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021238d50,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021238d50) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021238d50,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021238d50,ffff80002e45f990,ffff80002e45f9e0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e45fa60) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45fa60) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a70a6cf560, 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+0x30 kd_curproc sys/dev/kcov.c:590 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x30 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(ffff80002955f980) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002955f980) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x757fb2643d50, 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+0x30 kd_curproc sys/dev/kcov.c:590 [inline] __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x30 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(ffff80002955f980) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002955f980) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x757fb2643d50, count: -7