panic: kernel diagnostic assertion "nlevel >= IPL_NONE" failed: file "/syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/intr.c", line 699 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 228472 46400 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279df07) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f51d,ffffffff827a9b10,2bb,ffffffff827a1714) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(a67724b5) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f444438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f444438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021ed0ff8,fffffd806f444438,fffffd806f4444c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021ed0ff8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021ed0ff8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021ed0ff8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021ed0ff8,ffff80002add9660,ffff80002add96b0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002add9730) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002add9730) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7be27803c610, 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/multicore/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(ffffffff8279df07) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f51d,ffffffff827a9b10,2bb,ffffffff827a1714) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(a67724b5) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f444438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f444438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021ed0ff8,fffffd806f444438,fffffd806f4444c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021ed0ff8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021ed0ff8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021ed0ff8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021ed0ff8,ffff80002add9660,ffff80002add96b0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002add9730) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002add9730) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7be27803c610, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002add92a0 rbx 0xffffffff82c27b9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff800021ed0ff8 rax 0xffffffff82c26ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0x8080808080808080 r10 0x15e42b0510ad0c85 r11 0x4fa018951c02602 r12 0xffffffff82c279a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8224dbac db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002add9290 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.6) pid=67815 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff800021238d48,0xffff800021239000 process=0xffff80002127d0d8 user=0xffff80002add4000, vmspace=0xfffffd807d13b758 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 29865 335058 34951 0 2 0 syz-executor.1 99377 57706 33764 0 2 0 syz-executor.5 33764 226979 62531 0 2 0x482 syz-executor.5 47108 234025 62531 0 2 0x482 syz-executor.6 17783 358577 62531 0 2 0x2 syz-executor.7 30722 517547 62531 0 2 0x482 syz-executor.2 12838 373805 62531 0 2 0x2 syz-executor.4 22866 139433 62531 0 2 0x2 syz-executor.3 34951 357456 62531 0 2 0x482 syz-executor.1 42698 199667 62531 0 2 0x482 syz-executor.0 62531 4680 15523 0 3 0x2000082 wait syz-fuzzer 62531 504079 15523 0 3 0x6000082 nanoslp syz-fuzzer 62531 408368 15523 0 3 0x6000082 wait syz-fuzzer 62531 316128 15523 0 3 0x6000082 thrsleep syz-fuzzer 62531 271260 15523 0 2 0x6000082 syz-fuzzer 62531 185699 15523 0 3 0x6000082 wait syz-fuzzer 62531 524163 15523 0 3 0x6000082 wait syz-fuzzer 62531 27617 15523 0 3 0x6000082 wait syz-fuzzer 62531 268454 15523 0 3 0x6000082 thrsleep syz-fuzzer 62531 162520 15523 0 3 0x6000082 thrsleep syz-fuzzer 62531 336092 15523 0 3 0x6000082 wait syz-fuzzer 62531 515230 15523 0 3 0x6000082 wait syz-fuzzer 62531 447448 15523 0 3 0x6000082 wait syz-fuzzer 62531 207025 15523 0 2 0x6000002 syz-fuzzer 62531 43187 15523 0 2 0x6000082 syz-fuzzer 62531 179242 15523 0 3 0x6000082 thrsleep syz-fuzzer 15523 315572 68907 0 3 0x10008a sigsusp ksh 68907 469529 6959 0 3 0x9a kqread sshd 33958 239283 1 0 3 0x100083 ttyin getty 6959 127403 1 0 3 0x88 kqread sshd 23919 324600 79733 74 3 0x1100092 bpf pflogd 79733 370337 1 0 3 0x80 netio pflogd 33590 363145 87078 73 3 0x1100090 kqread syslogd 87078 315498 1 0 3 0x100082 netio syslogd 33014 489664 1 0 3 0x100080 kqread resolvd 55126 488243 16244 77 3 0x100092 kqread dhcpleased 84597 489256 16244 77 3 0x100092 kqread dhcpleased 16244 20616 1 0 3 0x80 kqread dhcpleased 18150 333148 0 0 3 0x14200 bored smr 93758 319049 0 0 2 0x14200 zerothread 78263 160556 0 0 3 0x14200 aiodoned aiodoned 16923 268618 0 0 3 0x14200 syncer update 15761 260815 0 0 3 0x14200 cleaner cleaner 46400 228472 0 0 7 0x14200 reaper 39908 308733 0 0 3 0x14200 pgdaemon pagedaemon 78750 247148 0 0 3 0x14200 bored viomb 78107 151802 0 0 3 0x40014200 acpi0 acpi0 63564 101187 0 0 3 0x40014200 idle1 99939 227108 0 0 3 0x14200 bored softnet3 96646 14902 0 0 3 0x14200 bored softnet2 91484 44396 0 0 3 0x14200 bored softnet1 8842 87392 0 0 2 0x14200 softnet0 35146 21453 0 0 3 0x14200 bored systqmp 13752 405703 0 0 3 0x14200 bored systq 25571 2236 0 0 3 0x40014200 bored softclock 22012 142612 0 0 3 0x40014200 idle0 1 251825 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 6474K 7187K 78643K 17107 0 pcb 13 11K 12K 78643K 360 0 rtable 234 6K 6K 78643K 356 0 pf 32 9K 10K 78643K 43 0 ifaddr 45 15K 15K 78643K 47 0 ifgroup 55 2K 2K 78643K 55 0 counters 60 35K 35K 78643K 60 0 ioctlops 0 0K 4K 78643K 1750 0 iov 0 0K 0K 78643K 1057 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1377 86K 86K 78643K 5532 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 29K 78643K 4297 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1871 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 13 45K 81K 78643K 21509 0 sigio 0 0K 0K 78643K 190 0 proc 67 91K 127K 78643K 526 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 25 122K 122K 78643K 25 0 exec 0 0K 1K 78643K 819 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 299 82K 84K 78643K 181703 0 UVM aobj 131 6K 6K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 12 0K 1K 78643K 28 0 temp 40 5907K 6034K 78643K 52055 0 kqueue 12 18K 24K 78643K 497 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 37 0 34 1 0 1 1 0 8 0 rtentry 112 111 0 1 4 0 4 4 0 8 0 unpcb 144 15351 0 15336 31 30 1 10 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 264 0 264 1 1 0 1 0 8 0 tcpcb 808 172 0 168 1 0 1 1 0 8 0 arp 120 18 0 0 1 0 1 1 0 8 0 inpcb 368 3059 0 3051 38 36 2 7 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 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 25 0 23 1 0 1 1 0 8 0 pfstkey 128 25 0 23 1 0 1 1 0 8 0 pfstate 376 25 0 23 3 2 1 3 0 8 0 pfrule 1344 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 0 29 0 29 29 0 8 0 art_table 32 453 0 0 4 0 4 4 0 8 0 art_node 16 110 0 10 1 0 1 1 0 8 0 semapl 112 1869 0 1859 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 22906 0 21459 91 0 91 91 0 8 0 ffsino 272 22906 0 21459 97 0 97 97 0 8 0 nchpl 144 55636 0 53948 64 0 64 64 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 114592 0 114592 3 2 1 2 0 8 1 percpumem 16 43 0 0 1 0 1 1 0 8 0 kstatmem 264 24 0 0 2 0 2 2 0 8 0 scxspl 216 137812 0 137812 12 11 1 8 1 8 1 plimitpl 152 34 0 18 1 0 1 1 0 8 0 sigapl 424 21834 0 21789 7 1 6 6 0 8 0 futexpl 64 173365 0 173365 1 0 1 1 0 8 1 knotepl 120 126 0 0 4 0 4 4 0 8 0 kqueuepl 216 1285 0 1277 1 0 1 1 0 8 0 pipepl 320 142 0 114 3 0 3 3 0 8 0 fdescpl 496 21817 0 21791 5 1 4 5 0 8 0 filepl 152 59995 0 59755 52 42 10 19 0 8 0 lockfpl 104 2707 0 2705 2 1 1 2 0 8 0 lockfspl 48 1351 0 1349 1 0 1 1 0 8 0 sessionpl 144 24 0 7 1 0 1 1 0 8 0 pgrppl 48 468 0 451 1 0 1 1 0 8 0 ucredpl 104 62 0 50 1 0 1 1 0 8 0 zombiepl 144 21792 0 21789 1 0 1 1 0 8 0 processpl 1072 21834 0 21789 4 0 4 4 0 8 0 procpl 680 44519 0 44458 34 27 7 7 0 8 1 sockpl 488 18447 0 18421 126 121 5 34 0 8 1 mcl64k 65536 26 0 0 3 0 3 3 0 8 0 mcl16k 16384 33 0 0 4 1 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 19 0 0 2 0 2 2 0 8 0 mcl8k 8192 37 0 0 4 1 3 3 0 8 0 mcl4k 4096 56 0 0 5 2 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 327 0 0 38 8 30 38 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 742 0 0 20 0 20 20 0 8 0 bufpl 288 25617 0 19291 452 0 452 452 0 8 0 anonpl 24 1603810 0 1595467 73 19 54 59 0 186 0 amapchunkpl 152 570378 0 569697 80 46 34 34 0 158 3 amappl16 200 24577 0 24391 15 4 11 11 0 8 1 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 179 0 162 2 1 1 2 0 8 0 amappl13 176 12 0 12 2 2 0 1 0 8 0 amappl12 168 22480 0 22455 3 1 2 2 0 8 0 amappl11 160 93 0 79 1 0 1 1 0 8 0 amappl10 152 43 0 32 1 0 1 1 0 8 0 amappl9 144 251 0 250 1 0 1 1 0 8 0 amappl8 136 328 0 264 4 1 3 3 0 8 0 amappl7 128 71 0 57 2 1 1 2 0 8 0 amappl6 120 281 0 262 2 1 1 2 0 8 0 amappl5 112 475 0 460 1 0 1 1 0 8 0 amappl4 104 1284 0 1244 3 1 2 3 0 8 0 amappl3 96 115686 0 115621 4 1 3 3 0 8 0 amappl2 88 24922 0 24855 3 1 2 3 0 8 0 amappl1 80 82113 0 81564 23 10 13 23 0 8 0 amappl 88 180744 0 180565 9 3 6 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 21817 0 21791 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 21817 0 21791 1 0 1 1 0 8 0 vmmpekpl 168 96296 0 96230 4 0 4 4 0 8 0 vmmpepl 168 1171301 0 1169363 175 78 97 118 0 357 2 vmsppl 464 21816 0 21791 5 1 4 5 0 8 0 rwobjpl 56 240738 0 233440 112 8 104 104 0 8 0 pdppl 4096 43641 0 43582 743 674 69 77 0 8 10 pvpl 32 5358820 0 5344971 389 264 125 368 0 265 0 pmappl 248 21816 0 21791 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1569 0 753 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(ffffffff8279df07) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f51d,ffffffff827a9b10,2bb,ffffffff827a1714) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(a67724b5) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f444438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f444438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff800021ed0ff8,fffffd806f444438,fffffd806f4444c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff800021ed0ff8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff800021ed0ff8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff800021ed0ff8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff800021ed0ff8,ffff80002add9660,ffff80002add96b0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002add9730) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002add9730) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7be27803c610, 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(ffffffff82c85f30) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c85f30) at __mp_lock+0x133 sys/kern/kern_lock.c:147 reaper(ffff8000211b3548) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: 9 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(ffffffff82c85f30) at __mp_lock+0x133 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c85f30) at __mp_lock+0x133 sys/kern/kern_lock.c:147 reaper(ffff8000211b3548) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -6