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 168779 88312 0 0 0x4000000 1 syz-executor.3 db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279cee4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f4c1,ffffffff827a89ae,2bb,ffffffff827a0301) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(c41dc711) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f0aa438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f0aa438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000212c37f8,fffffd806f0aa438,fffffd806f0aa4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212c37f8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212c37f8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212c37f8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212c37f8,ffff80002e431d70,ffff80002e431dc0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e431e40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e431e40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a0a1ee12f0, 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(ffffffff8279cee4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f4c1,ffffffff827a89ae,2bb,ffffffff827a0301) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(c41dc711) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f0aa438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f0aa438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000212c37f8,fffffd806f0aa438,fffffd806f0aa4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212c37f8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212c37f8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212c37f8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212c37f8,ffff80002e431d70,ffff80002e431dc0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e431e40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e431e40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a0a1ee12f0, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002e4319b0 rbx 0xffffffff82b7ab9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff8000212c37f8 rax 0xffffffff82b79ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9f0d694f5f9968ce r11 0xc623aed399d5a1df r12 0xffffffff82b7a9a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff82407bcc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002e4319a0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=354895 stat=onproc flags process=1008 proc=2000 pri=0, usrpri=81, nice=20 forw=0xffffffffffffffff, list=0xffff8000212c3aa0,0xffff8000212c2020 process=0xffff80002128dd68 user=0xffff80002e42c000, vmspace=0xfffffd806ba63af8 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 46641 138155 38725 0 2 0 syz-executor.5 46641 295633 38725 0 2 0x4000000 syz-executor.5 88312 417031 60004 0 2 0 syz-executor.3 88312 168779 60004 0 7 0x4000000 syz-executor.3 14733 105873 52914 0 2 0 syz-executor.1 74055 164187 60279 0 2 0 syz-executor.7 74055 56665 60279 0 3 0x4000080 fsleep syz-executor.7 74055 425473 60279 0 3 0x4000080 fsleep syz-executor.7 39741 277609 11310 0 2 0x81000 syz-executor.6 39741 356886 11310 0 3 0x4003000 suspend syz-executor.6 45292 433901 13363 0 2 0 syz-executor.2 45292 488771 13363 0 3 0x4000080 nanoslp syz-executor.2 45292 317531 13363 0 3 0x4000080 fsleep syz-executor.2 28041 220074 0 0 3 0x14200 bored sosplice 16311 14939 86330 0 2 0x2 syz-executor.4 71295 454081 0 0 3 0x14200 acct acct 13363 351558 86330 0 3 0x82 nanoslp syz-executor.2 60279 266696 86330 0 3 0x82 nanoslp syz-executor.7 38725 302712 86330 0 3 0x82 nanoslp syz-executor.5 11310 436946 86330 0 3 0x82 nanoslp syz-executor.6 60004 373959 86330 0 3 0x82 nanoslp syz-executor.3 52914 250642 86330 0 3 0x82 nanoslp syz-executor.1 36466 271242 86330 0 3 0x82 nanoslp syz-executor.0 86330 59320 33465 0 3 0x2000082 wait syz-fuzzer 86330 110146 33465 0 3 0x6000082 nanoslp syz-fuzzer 86330 117806 33465 0 3 0x6000082 wait syz-fuzzer 86330 33015 33465 0 3 0x6000082 kqread syz-fuzzer 86330 72966 33465 0 3 0x6000082 wait syz-fuzzer 86330 163232 33465 0 3 0x6000082 wait syz-fuzzer 86330 267958 33465 0 3 0x6000082 thrsleep syz-fuzzer 86330 23980 33465 0 3 0x6000082 thrsleep syz-fuzzer 86330 352966 33465 0 3 0x6000082 wait syz-fuzzer 86330 372436 33465 0 3 0x6000082 thrsleep syz-fuzzer 86330 162662 33465 0 3 0x6000082 wait syz-fuzzer 86330 74718 33465 0 3 0x6000082 thrsleep syz-fuzzer 86330 117996 33465 0 3 0x6000082 wait syz-fuzzer 86330 240757 33465 0 3 0x6000082 wait syz-fuzzer 86330 178010 33465 0 3 0x6000082 thrsleep syz-fuzzer 33465 38092 92095 0 3 0x10008a sigsusp ksh 92095 411402 75414 0 3 0x9a kqread sshd 36133 284403 1 0 3 0x100083 ttyin getty 75414 517786 1 0 3 0x88 kqread sshd 99577 69376 98140 74 3 0x1100092 bpf pflogd 98140 392622 1 0 3 0x80 netio pflogd 86329 116560 82899 73 3 0x1100090 kqread syslogd 82899 32245 1 0 3 0x100082 netio syslogd 24413 284376 1 0 3 0x100080 kqread resolvd 4364 276366 480 77 3 0x100092 kqread dhcpleased 3615 424265 480 77 3 0x100092 kqread dhcpleased 480 126431 1 0 3 0x80 kqread dhcpleased 32340 417293 0 0 3 0x14200 bored smr 25324 436759 0 0 2 0x14200 zerothread 73274 307480 0 0 3 0x14200 aiodoned aiodoned 55068 523923 0 0 3 0x14200 syncer update 343 101635 0 0 3 0x14200 cleaner cleaner 40915 413783 0 0 2 0x14200 reaper 15882 155861 0 0 3 0x14200 pgdaemon pagedaemon 94112 226319 0 0 3 0x14200 bored viomb 1701 170538 0 0 3 0x40014200 acpi0 acpi0 8986 310031 0 0 3 0x40014200 idle1 27279 488033 0 0 3 0x14200 bored softnet3 82772 385754 0 0 3 0x14200 bored softnet2 35081 109535 0 0 3 0x14200 bored softnet1 63699 227105 0 0 3 0x14200 bored softnet0 52922 320450 0 0 3 0x14200 bored systqmp 851 308893 0 0 3 0x14200 bored systq 44010 497058 0 0 2 0x40014200 softclock 5942 369868 0 0 3 0x40014200 idle0 1 73886 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 10197 6540K 7072K 78643K 12744 0 pcb 13 12K 14K 78643K 114 0 rtable 243 7K 7K 78643K 445 0 pf 32 9K 10K 78643K 75 0 ifaddr 45 15K 15K 78643K 69 0 ifgroup 55 2K 2K 78643K 109 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 36K 78643K 88 0 ioctlops 0 0K 4K 78643K 1506 0 iov 0 0K 12K 78643K 918 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1368 86K 86K 78643K 1896 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 50 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 17 61K 97K 78643K 960 0 sigio 0 0K 0K 78643K 4 0 proc 69 91K 115K 78643K 655 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 24 0 in_multi 99 7K 7K 78643K 124 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 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 464 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 358 84K 86K 78643K 12025 0 UVM aobj 92 3K 3K 78643K 92 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 16 0 NDP 12 0K 1K 78643K 46 0 temp 46 5913K 5977K 78643K 30998 0 kqueue 12 18K 22K 78643K 86 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 51 0 48 1 0 1 1 0 8 0 rtentry 112 137 0 24 4 0 4 4 0 8 0 unpcb 144 616 0 601 4 3 1 4 0 8 0 syncache 304 4 0 4 1 1 0 1 0 8 0 tcpqe 32 292 0 292 3 3 0 2 0 8 0 tcpcb 808 47 0 43 1 0 1 1 0 8 0 arp 120 22 0 4 1 0 1 1 0 8 0 inpcb 368 510 0 502 17 10 7 10 0 8 6 nd6 136 34 0 7 1 0 1 1 0 8 0 pkpcb 40 3 0 3 1 0 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1256 3 0 3 1 1 0 1 0 8 0 pffrag 232 3 0 1 1 0 1 1 0 482 0 pffrnode 88 3 0 1 1 0 1 1 0 8 0 pffrent 40 13 0 11 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 49 0 35 1 0 1 1 0 8 0 pfstkey 128 49 0 35 1 0 1 1 0 8 0 pfstate 376 49 0 35 3 1 2 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 552 0 90 29 0 29 29 0 8 0 art_table 32 553 0 90 4 0 4 4 0 8 0 art_node 16 136 0 33 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 48 0 38 1 0 1 1 0 8 0 shmpl 112 89 0 0 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2658 0 1202 91 0 91 91 0 8 0 ffsino 272 2658 0 1202 98 0 98 98 0 8 0 nchpl 144 4041 0 2383 64 0 64 64 0 8 0 uvmvnodes 80 3197 0 0 66 0 66 66 0 8 0 vnodes 216 3197 0 0 178 0 178 178 0 8 0 namei 1024 15442 0 15442 2 1 1 2 0 8 1 percpumem 16 57 0 14 1 0 1 1 0 8 0 vmpool 696 8 0 8 2 2 0 1 0 8 0 kstatmem 264 52 0 28 2 0 2 2 0 8 0 scxspl 216 12706 0 12706 13 12 1 8 1 8 1 plimitpl 152 116 0 100 1 0 1 1 0 8 0 sigapl 424 1280 0 1231 8 2 6 7 0 8 0 futexpl 64 7248 0 7245 1 0 1 1 0 8 0 knotepl 120 114 0 0 4 0 4 4 0 8 0 kqueuepl 216 255 0 247 9 8 1 5 0 8 0 pipepl 320 255 0 227 6 3 3 6 0 8 0 fdescpl 496 1261 0 1231 5 1 4 5 0 8 0 filepl 152 8071 0 7824 28 16 12 17 0 8 2 lockfpl 104 741 0 739 4 3 1 2 0 8 0 lockfspl 48 214 0 212 1 0 1 1 0 8 0 sessionpl 144 26 0 9 1 0 1 1 0 8 0 pgrppl 48 29 0 12 1 0 1 1 0 8 0 ucredpl 104 795 0 783 1 0 1 1 0 8 0 zombiepl 144 1233 0 1231 1 0 1 1 0 8 0 processpl 1072 1280 0 1231 4 0 4 4 0 8 0 procpl 680 2781 0 2710 8 1 7 7 0 8 0 sosppl 168 6 0 5 1 0 1 1 0 8 0 sockpl 488 1182 0 1156 35 23 12 16 0 8 8 mcl64k 65536 11 0 0 2 0 2 2 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 12 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 13 0 0 2 0 2 2 0 8 0 mcl4k 4096 15 0 0 2 0 2 2 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 249 0 0 31 0 31 31 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 984 0 0 59 0 59 59 0 8 0 bufpl 288 5562 0 144 387 0 387 387 0 8 0 anonpl 24 795100 0 774650 226 21 205 207 0 186 81 amapchunkpl 152 39769 0 38802 48 8 40 42 0 158 1 amappl16 200 37830 0 36960 262 216 46 84 0 8 0 amappl15 192 11 0 10 1 0 1 1 0 8 0 amappl14 184 172 0 159 2 1 1 2 0 8 0 amappl13 176 17 0 16 2 1 1 1 0 8 0 amappl12 168 1964 0 1932 4 2 2 3 0 8 0 amappl11 160 59 0 44 1 0 1 1 0 8 0 amappl10 152 48 0 36 2 1 1 1 0 8 0 amappl9 144 201 0 200 2 1 1 1 0 8 0 amappl8 136 236 0 176 3 0 3 3 0 8 0 amappl7 128 76 0 62 2 0 2 2 0 8 0 amappl6 120 266 0 245 2 1 1 2 0 8 0 amappl5 112 207 0 195 1 0 1 1 0 8 0 amappl4 104 607 0 564 3 1 2 3 0 8 0 amappl3 96 7806 0 7714 3 0 3 3 0 8 0 amappl2 88 1580 0 1508 3 1 2 3 0 8 0 amappl1 80 13317 0 12760 23 11 12 23 0 8 0 amappl 88 11420 0 11167 8 2 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 91 0 0 2 0 2 2 0 8 0 uaddrrnd 24 1269 0 1239 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1269 0 1239 1 0 1 1 0 8 0 vmmpekpl 168 15316 0 15259 3 0 3 3 0 8 0 vmmpepl 168 128897 0 126050 184 28 156 158 0 357 32 vmsppl 464 1268 0 1239 5 1 4 5 0 8 0 rwobjpl 56 65629 0 60350 92 11 81 83 0 8 1 pdppl 4096 2546 0 2478 176 106 70 86 0 8 2 pvpl 32 1167262 0 1140438 406 81 325 366 0 265 108 pmappl 248 1268 0 1239 3 1 2 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 914 0 121 23 0 23 23 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(ffffffff8279cee4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f4c1,ffffffff827a89ae,2bb,ffffffff827a0301) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(c41dc711) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f0aa438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f0aa438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000212c37f8,fffffd806f0aa438,fffffd806f0aa4c0,3,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212c37f8,3) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212c37f8) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212c37f8,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212c37f8,ffff80002e431d70,ffff80002e431dc0) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002e431e40) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e431e40) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a0a1ee12f0, 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(ffffffff82d8c508) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d8c508) at __mp_lock+0x122 sys/kern/kern_lock.c:147 vn_ioctl(fffffd806e2d91c8,80044b02,ffff80002e45b490,ffff8000212747f8) at vn_ioctl+0x45 sys/kern/vfs_vnops.c:508 sys_ioctl(ffff8000212747f8,ffff80002e45b5a0,ffff80002e45b5f0) at sys_ioctl+0x4a2 syscall(ffff80002e45b670) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45b670) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x99cd3fdef80, count: 7 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(ffffffff82d8c508) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d8c508) at __mp_lock+0x122 sys/kern/kern_lock.c:147 vn_ioctl(fffffd806e2d91c8,80044b02,ffff80002e45b490,ffff8000212747f8) at vn_ioctl+0x45 sys/kern/vfs_vnops.c:508 sys_ioctl(ffff8000212747f8,ffff80002e45b5a0,ffff80002e45b5f0) at sys_ioctl+0x4a2 syscall(ffff80002e45b670) at syscall+0x606 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002e45b670) at syscall+0x606 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x99cd3fdef80, count: -8