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 218872 40579 0 0x14000 0x200 1 reaper db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279cfd2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f915,ffffffff8283c480,2bb,ffffffff827a1cb3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(cc286787) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd8074d781b0) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd8074d781b0) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211f5d50,fffffd8074d781b0,fffffd8074d78238,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211f5d50,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211f5d50) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211f5d50,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000211f5d50,ffff80002612f930,ffff80002612f980) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612fa00) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612fa00) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x776ee7b77b50, 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(ffffffff8279cfd2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f915,ffffffff8283c480,2bb,ffffffff827a1cb3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(cc286787) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd8074d781b0) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd8074d781b0) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211f5d50,fffffd8074d781b0,fffffd8074d78238,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211f5d50,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211f5d50) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211f5d50,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000211f5d50,ffff80002612f930,ffff80002612f980) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612fa00) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612fa00) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x776ee7b77b50, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002612f570 rbx 0xffffffff82bfdb9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff8000211f5d50 rax 0xffffffff82bfcff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xce2ee7643221b023 r11 0x7179bd0adffa5db r12 0xffffffff82bfd9a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8138849c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002612f560 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.4) pid=410167 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=72, nice=20 forw=0xffffffffffffffff, list=0xffff800021225560,0xffff8000261282c0 process=0xffff80002121c010 user=0xffff80002612a000, vmspace=0xfffffd806d8b41e8 estcpu=22, cpticks=8, pctcpu=0.0 user=0, sys=2, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24159 371133 90991 32767 2 0x10 syz-executor.0 84599 277543 17511 32767 2 0x10 syz-executor.3 2720 395548 50117 32767 2 0x10 syz-executor.5 2720 420808 50117 32767 2 0x4000010 syz-executor.5 23151 292193 13418 32767 2 0x10 syz-executor.7 23151 483736 13418 32767 2 0x4000010 syz-executor.7 50117 352088 6647 32767 2 0x10 syz-executor.5 6647 323503 53177 0 3 0x82 wait syz-executor.5 98111 327405 46593 32767 2 0x10 syz-executor.6 46593 319886 53177 0 3 0x82 wait syz-executor.6 13418 328270 81595 32767 2 0x490 syz-executor.7 81595 373739 53177 0 3 0x82 wait syz-executor.7 99879 1379 83513 32767 2 0x10 syz-executor.2 83513 271102 53177 0 3 0x82 wait syz-executor.2 22262 509726 26693 32767 3 0x90 nanoslp syz-executor.4 26693 278048 53177 0 3 0x82 wait syz-executor.4 17511 48662 43611 32767 3 0x90 nanoslp syz-executor.3 43611 474953 53177 0 3 0x82 wait syz-executor.3 46031 345615 28831 32767 3 0x90 piperd syz-executor.1 28831 225760 53177 0 3 0x82 wait syz-executor.1 90991 396442 60001 32767 2 0x10 syz-executor.0 60001 178014 53177 0 3 0x82 wait syz-executor.0 92596 41475 0 0 3 0x14200 bored sosplice 53177 400140 13348 0 3 0x2000082 wait syz-fuzzer 53177 452483 13348 0 3 0x6000082 nanoslp syz-fuzzer 53177 506486 13348 0 3 0x6000082 thrsleep syz-fuzzer 53177 287473 13348 0 3 0x6000082 wait syz-fuzzer 53177 288128 13348 0 3 0x6000082 thrsleep syz-fuzzer 53177 24438 13348 0 3 0x6000082 thrsleep syz-fuzzer 53177 142692 13348 0 3 0x6000082 kqread syz-fuzzer 53177 359128 13348 0 3 0x6000082 wait syz-fuzzer 53177 396002 13348 0 3 0x6000082 thrsleep syz-fuzzer 53177 405163 13348 0 3 0x6000082 wait syz-fuzzer 53177 7275 13348 0 3 0x6000082 thrsleep syz-fuzzer 53177 76875 13348 0 3 0x6000082 wait syz-fuzzer 53177 14601 13348 0 3 0x6000082 wait syz-fuzzer 53177 332758 13348 0 3 0x6000082 wait syz-fuzzer 53177 409012 13348 0 2 0x6000002 syz-fuzzer 53177 219966 13348 0 3 0x6000082 wait syz-fuzzer 13348 235578 66744 0 3 0x10008a sigsusp ksh 66744 64155 15182 0 3 0x9a kqread sshd 82340 49920 1 0 3 0x100083 ttyin getty 15182 470593 1 0 3 0x88 kqread sshd 52017 127224 99081 73 3 0x1100090 kqread syslogd 99081 502154 1 0 3 0x100082 netio syslogd 90047 437362 1 0 3 0x100080 kqread resolvd 39806 331569 35873 77 3 0x100092 kqread dhcpleased 40027 513974 35873 77 3 0x100092 kqread dhcpleased 35873 293192 1 0 3 0x80 kqread dhcpleased 25905 332805 0 0 3 0x14200 bored smr 5241 62456 0 0 2 0x14200 zerothread 36089 37842 0 0 3 0x14200 aiodoned aiodoned 2689 11768 0 0 3 0x14200 syncer update 58554 446409 0 0 3 0x14200 cleaner cleaner 40579 218872 0 0 7 0x14200 reaper 72087 383329 0 0 3 0x14200 pgdaemon pagedaemon 6169 282383 0 0 3 0x14200 bored viomb 60192 154900 0 0 3 0x40014200 acpi0 acpi0 36720 296990 0 0 3 0x40014200 idle1 15612 264815 0 0 3 0x14200 bored softnet3 27228 403423 0 0 3 0x14200 bored softnet2 73868 492842 0 0 3 0x14200 bored softnet1 65160 334842 0 0 3 0x14200 bored softnet0 71817 368583 0 0 3 0x14200 bored systqmp 44059 502188 0 0 3 0x14200 bored systq 76113 347611 0 0 2 0x40014200 softclock 54672 80000 0 0 3 0x40014200 idle0 1 96754 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 10217 6413K 6420K 78643K 11462 0 pcb 13 12K 14K 78643K 17 0 rtable 246 7K 7K 78643K 3214 0 pf 29 8K 8K 78643K 139 0 ifaddr 44 16K 16K 78643K 272 0 ifgroup 50 2K 2K 78643K 270 0 sysctl 3 1K 3K 78643K 10 0 counters 60 35K 35K 78643K 170 0 ioctlops 0 0K 2K 78643K 405 0 iov 0 0K 18K 78643K 2973 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 7287 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 470 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 942 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 117K 78643K 34630 0 sigio 0 0K 0K 78643K 595 0 proc 56 78K 103K 78643K 3855 0 subproc 104 6K 6K 78643K 819 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3084 0 in_multi 99 7K 7K 78643K 996 0 ether_multi 1 0K 0K 78643K 38 0 mrt 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 241 1076K 1076K 78643K 241 0 exec 0 0K 1K 78643K 5221 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 481 92K 107K 78643K 347977 0 UVM aobj 131 4K 4K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 763 0 NDP 11 0K 2K 78643K 192 0 temp 74 5920K 6048K 78643K 85175 0 kqueue 12 18K 34K 78643K 3093 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 1981 0 1978 30 29 1 3 0 8 0 rtentry 112 791 0 675 4 0 4 4 0 8 0 unpcb 144 21364 0 21351 237 236 1 10 0 8 0 syncache 304 566 0 566 58 58 0 1 0 8 0 tcpqe 32 636 0 636 50 50 0 1 0 8 0 tcpcb 808 13804 0 13791 326 323 3 19 0 8 0 arp 120 136 0 117 1 0 1 1 0 8 0 ipq 40 99 0 99 15 15 0 1 0 8 0 ipqe 40 446 0 446 15 15 0 1 0 8 0 inpcb 368 44259 0 44238 445 442 3 21 0 8 0 nd6 136 256 0 227 3 1 2 2 0 8 0 kcovpl 48 63 0 55 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3182 0 2702 44 13 31 33 0 8 0 art_table 32 3183 0 2702 7 2 5 5 0 8 0 art_node 16 790 0 684 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 1 0 1 0 8 0 semapl 112 940 0 930 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 49023 0 47564 92 0 92 92 0 8 0 ffsino 272 49023 0 47564 98 0 98 98 0 8 0 nchpl 144 96276 0 94631 63 0 63 63 0 8 0 uvmvnodes 80 7577 0 0 155 0 155 155 0 8 0 vnodes 216 7577 0 0 421 0 421 421 0 8 0 namei 1024 308935 0 308935 22 21 1 3 0 8 1 percpumem 16 98 0 55 1 0 1 1 0 8 0 kstatmem 264 132 0 110 2 0 2 2 0 8 0 scxspl 216 321596 0 321596 104 103 1 8 1 8 1 plimitpl 152 4478 0 4455 46 44 2 2 0 8 1 sigapl 424 34813 0 34761 13 6 7 7 0 8 0 futexpl 64 273970 0 273970 18 17 1 1 0 8 1 knotepl 120 2165 0 0 22 6 16 18 0 8 0 kqueuepl 216 8788 0 8780 162 161 1 5 0 8 0 pipepl 320 8782 0 8754 240 234 6 13 0 8 3 fdescpl 496 34795 0 34761 7 2 5 6 0 8 0 filepl 152 228184 0 227947 396 382 14 26 0 8 3 lockfpl 104 5320 0 5318 3 2 1 2 0 8 0 lockfspl 48 1327 0 1325 1 0 1 1 0 8 0 sessionpl 144 78 0 62 1 0 1 1 0 8 0 pgrppl 48 3037 0 3021 1 0 1 1 0 8 0 ucredpl 104 30180 0 30162 1 0 1 1 0 8 0 zombiepl 144 34762 0 34761 3 2 1 1 0 8 0 processpl 1072 34813 0 34761 4 0 4 4 0 8 0 procpl 680 95515 0 95445 71 64 7 9 0 8 0 sosppl 168 568 0 568 34 34 0 1 0 8 0 sockpl 488 68964 0 68930 1174 1168 6 43 0 8 0 mcl64k 65536 41 0 0 3 0 3 3 0 8 0 mcl16k 16384 73 0 0 8 5 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 67 0 0 7 4 3 3 0 8 0 mcl4k 4096 146 0 0 11 8 3 10 0 8 0 mcl2k2 2112 15 0 0 1 0 1 1 0 8 0 mcl2k 2048 770 0 0 38 20 18 32 0 8 0 mtagpl 96 7 0 0 1 0 1 1 0 8 0 mbufpl 256 4573 0 0 221 0 221 221 0 8 0 bufpl 288 59915 0 52335 543 1 542 542 0 8 0 anonpl 24 3371175 0 3360310 278 182 96 118 0 186 0 amapchunkpl 152 1094057 0 1093234 264 227 37 51 0 158 0 amappl16 200 69711 0 69433 449 432 17 40 0 8 0 amappl15 192 19 0 18 1 0 1 1 0 8 0 amappl14 184 337 0 321 2 1 1 2 0 8 0 amappl13 176 55 0 55 18 18 0 1 0 8 0 amappl12 168 36243 0 36206 2 0 2 2 0 8 0 amappl11 160 57 0 47 1 0 1 1 0 8 0 amappl10 152 118 0 101 1 0 1 1 0 8 0 amappl9 144 410 0 410 60 60 0 1 0 8 0 amappl8 136 1693 0 1444 9 0 9 9 0 8 0 amappl7 128 212 0 195 2 1 1 2 0 8 0 amappl6 120 929 0 903 2 1 1 2 0 8 0 amappl5 112 1087 0 1078 1 0 1 1 0 8 0 amappl4 104 1485 0 1437 3 1 2 3 0 8 0 amappl3 96 210128 0 210041 33 30 3 4 0 8 0 amappl2 88 36621 0 36545 3 1 2 3 0 8 0 amappl1 80 131230 0 130705 23 10 13 22 0 8 0 amappl 88 345501 0 345254 8 1 7 8 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 34795 0 34761 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 34795 0 34761 1 0 1 1 0 8 0 vmmpekpl 168 259421 0 259351 4 0 4 4 0 8 0 vmmpepl 168 2010607 0 2008108 515 391 124 154 0 357 0 vmsppl 464 34794 0 34761 7 2 5 6 0 8 0 rwobjpl 56 496307 0 487114 183 50 133 134 0 8 0 pdppl 4096 69598 0 69522 1174 1092 82 92 0 8 6 pvpl 32 9993949 0 9976655 732 547 185 358 0 265 0 pmappl 248 34794 0 34761 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 3110 0 1995 33 0 33 33 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(ffffffff8279cfd2) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f915,ffffffff8283c480,2bb,ffffffff827a1cb3) at __assert+0x29 sys/kern/subr_prf.c:157 splraise(cc286787) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd8074d781b0) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd8074d781b0) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000211f5d50,fffffd8074d781b0,fffffd8074d78238,4,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000211f5d50,4) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000211f5d50) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000211f5d50,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000211f5d50,ffff80002612f930,ffff80002612f980) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff80002612fa00) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002612fa00) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x776ee7b77b50, 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(ffffffff82d48c68) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d48c68) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211b37f0) 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(ffffffff82d48c68) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d48c68) at __mp_lock+0x122 sys/kern/kern_lock.c:147 reaper(ffff8000211b37f0) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5