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 3335 22892 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(db665a99) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f1f8438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f1f8438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000212d12a0,fffffd806f1f8438,fffffd806f1f84c0,9,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212d12a0,9) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212d12a0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212d12a0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212d12a0,ffff800023303cf0,ffff800023303d40) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800023303dc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800023303dc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x761ae34795b0, 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(db665a99) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f1f8438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f1f8438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000212d12a0,fffffd806f1f8438,fffffd806f1f84c0,9,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212d12a0,9) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212d12a0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212d12a0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212d12a0,ffff800023303cf0,ffff800023303d40) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800023303dc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800023303dc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x761ae34795b0, count: -13 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800023303930 rbx 0xffffffff82bfdb9f cpu_info_full_primary+0x2b9f rdx 0 rcx 0xffff8000212d12a0 rax 0xffffffff82bfcff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xccb263b4e78554a2 r11 0x9ba4681f22c0e317 r12 0xffffffff82bfd9a0 cpu_info_full_primary+0x29a0 r13 0 r14 0 r15 0x1 rip 0xffffffff8138849c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800023303920 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.1) pid=172977 stat=onproc flags process=1018 proc=2000 pri=0, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021269560,0xffff8000212d0810 process=0xffff8000ffff5d68 user=0xffff8000232fe000, vmspace=0xfffffd8062d4acd8 estcpu=36, cpticks=2, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 90058 468267 63575 32767 2 0x10 syz-executor.2 90058 522441 63575 32767 3 0x4000090 fsleep syz-executor.2 84898 85309 54860 32767 2 0x10 syz-executor.0 84898 192896 54860 32767 2 0x4000010 syz-executor.0 57915 329465 24177 32767 2 0x10 syz-executor.7 57915 143142 24177 32767 3 0x4000090 fsleep syz-executor.7 37069 409503 7607 32767 2 0x10 syz-executor.5 8979 36964 18887 32767 2 0x10 syz-executor.4 8979 25283 18887 32767 3 0x4000090 fsleep syz-executor.4 3535 255238 78180 32767 2 0x10 syz-executor.6 3535 64760 78180 32767 3 0x4000090 fsleep syz-executor.6 3535 337348 78180 32767 3 0x4000090 fsleep syz-executor.6 54860 351176 15549 32767 2 0x490 syz-executor.0 15549 411228 96008 0 3 0x82 wait syz-executor.0 18887 510479 5034 32767 3 0x90 nanoslp syz-executor.4 5034 308944 96008 0 3 0x82 wait syz-executor.4 25638 400901 63569 32767 2 0x10 syz-executor.3 63569 400670 96008 0 3 0x82 wait syz-executor.3 7607 1481 82979 32767 2 0x10 syz-executor.5 82979 16005 96008 0 3 0x82 wait syz-executor.5 24177 292577 90068 32767 2 0x490 syz-executor.7 90068 218693 96008 0 3 0x82 wait syz-executor.7 72926 423475 13557 32767 2 0x490 syz-executor.1 13557 379250 96008 0 3 0x82 wait syz-executor.1 1286 155006 0 0 3 0x14200 bored sosplice 78180 237512 99750 32767 2 0x490 syz-executor.6 99750 229401 96008 0 3 0x82 wait syz-executor.6 63575 88810 1898 32767 3 0x90 nanoslp syz-executor.2 1898 305131 96008 0 3 0x82 wait syz-executor.2 96008 246819 17077 0 3 0x2000082 kqread syz-fuzzer 96008 417130 17077 0 3 0x6000082 nanoslp syz-fuzzer 96008 52569 17077 0 3 0x6000082 wait syz-fuzzer 96008 320084 17077 0 3 0x6000082 wait syz-fuzzer 96008 502505 17077 0 3 0x6000082 thrsleep syz-fuzzer 96008 218930 17077 0 3 0x6000082 wait syz-fuzzer 96008 53444 17077 0 3 0x6000082 thrsleep syz-fuzzer 96008 290939 17077 0 3 0x6000082 wait syz-fuzzer 96008 400991 17077 0 3 0x6000082 thrsleep syz-fuzzer 96008 40893 17077 0 3 0x6000082 wait syz-fuzzer 96008 22816 17077 0 3 0x6000082 thrsleep syz-fuzzer 96008 282025 17077 0 3 0x6000082 wait syz-fuzzer 96008 438579 17077 0 3 0x6000082 thrsleep syz-fuzzer 96008 408564 17077 0 3 0x6000082 wait syz-fuzzer 96008 423373 17077 0 3 0x6000082 wait syz-fuzzer 96008 13433 17077 0 3 0x6000082 thrsleep syz-fuzzer 17077 74126 59348 0 3 0x10008a sigsusp ksh 59348 480787 48786 0 3 0x9a kqread sshd 55098 463078 1 0 3 0x100083 ttyin getty 48786 279553 1 0 3 0x88 kqread sshd 4551 86782 59117 73 3 0x1100090 kqread syslogd 59117 509735 1 0 3 0x100082 netio syslogd 5799 319232 1 0 3 0x100080 kqread resolvd 2091 67317 27708 77 3 0x100092 kqread dhcpleased 32808 7231 27708 77 3 0x100092 kqread dhcpleased 27708 253926 1 0 3 0x80 kqread dhcpleased 26125 237490 0 0 3 0x14200 bored smr 50099 348867 0 0 2 0x14200 zerothread 15399 254234 0 0 3 0x14200 aiodoned aiodoned 17911 355927 0 0 3 0x14200 syncer update 92773 472280 0 0 3 0x14200 cleaner cleaner 22892 3335 0 0 7 0x14200 reaper 97953 187938 0 0 3 0x14200 pgdaemon pagedaemon 65352 492748 0 0 3 0x14200 bored viomb 5527 250434 0 0 3 0x40014200 acpi0 acpi0 92899 17861 0 0 3 0x40014200 idle1 99462 4711 0 0 3 0x14200 bored softnet3 9143 275660 0 0 3 0x14200 bored softnet2 26397 360609 0 0 3 0x14200 bored softnet1 39991 164240 0 0 3 0x14200 bored softnet0 7350 396268 0 0 3 0x14200 bored systqmp 40932 354455 0 0 3 0x14200 bored systq 32741 169267 0 0 2 0x40014200 softclock 15621 411272 0 0 3 0x40014200 idle0 1 159154 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks CPU 1: exclusive sched_lock &sched_lock r = 0 (0xffffffff82d4ae50) #0 witness_lock+0x447 #1 preempt+0x37 sys/kern/sched_bsd.c:340 #2 ast+0x109 mi_ast sys/sys/syscall_mi.h:192 [inline] #2 ast+0x109 sys/arch/amd64/amd64/trap.c:541 #3 intr_user_exit+0x3c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10190 6409K 6420K 78643K 11313 0 pcb 13 12K 14K 78643K 17 0 rtable 250 7K 7K 78643K 1472 0 pf 29 8K 8K 78643K 59 0 ifaddr 44 15K 15K 78643K 108 0 ifgroup 50 2K 2K 78643K 110 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 35K 78643K 90 0 ioctlops 0 0K 2K 78643K 431 0 iov 0 0K 26K 78643K 1274 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 3166 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 162 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1230 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 25 93K 121K 78643K 12721 0 sigio 0 0K 0K 78643K 223 0 proc 56 78K 115K 78643K 1702 0 subproc 104 6K 6K 78643K 299 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1767 0 in_multi 99 7K 7K 78643K 411 0 ether_multi 1 0K 0K 78643K 25 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 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 2510 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 478 99K 109K 78643K 126046 0 UVM aobj 131 5K 5K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 364 0 NDP 11 0K 2K 78643K 72 0 temp 74 5920K 6048K 78643K 33418 0 kqueue 12 18K 32K 78643K 1877 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 703 0 700 8 7 1 4 0 8 0 rtentry 112 304 0 186 4 0 4 4 0 8 0 unpcb 144 6973 0 6960 78 77 1 8 0 8 0 syncache 304 116 0 116 24 23 1 1 0 8 1 tcpqe 32 400 0 400 18 17 1 1 0 8 1 tcpcb 808 4332 0 4316 135 126 9 16 0 8 7 arp 120 49 0 31 1 0 1 1 0 8 0 ipq 40 21 0 20 7 6 1 1 0 8 0 ipqe 40 73 0 72 7 6 1 1 0 8 0 inpcb 368 16906 0 16886 208 200 8 16 0 8 6 nd6 136 96 0 64 5 3 2 2 0 8 0 kcovpl 48 23 0 15 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1252 0 776 35 4 31 31 0 8 1 art_table 32 1253 0 776 4 0 4 4 0 8 0 art_node 16 303 0 195 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 1 1 0 1 1 0 8 0 semapl 112 1224 0 1214 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 18178 0 16722 92 0 92 92 0 8 0 ffsino 272 18178 0 16722 98 0 98 98 0 8 0 nchpl 144 35465 0 33820 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 109623 0 109623 10 9 1 2 0 8 1 percpumem 16 58 0 15 1 0 1 1 0 8 0 kstatmem 264 52 0 30 2 0 2 2 0 8 0 scxspl 216 130841 0 130841 59 56 3 8 1 8 3 plimitpl 152 2028 0 2005 20 18 2 2 0 8 1 sigapl 424 12977 0 12923 7 0 7 7 0 8 0 futexpl 64 100974 0 100969 10 9 1 1 0 8 0 knotepl 120 847 0 0 13 2 11 11 0 8 0 kqueuepl 216 6933 0 6923 95 90 5 10 0 8 4 pipepl 320 2821 0 2793 71 65 6 14 0 8 3 fdescpl 496 12959 0 12923 7 2 5 6 0 8 0 filepl 152 83220 0 82981 186 171 15 24 0 8 5 lockfpl 104 2065 0 2063 1 0 1 1 0 8 0 lockfspl 48 608 0 606 1 0 1 1 0 8 0 sessionpl 144 38 0 22 1 0 1 1 0 8 0 pgrppl 48 2827 0 2811 1 0 1 1 0 8 0 ucredpl 104 9972 0 9954 1 0 1 1 0 8 0 zombiepl 144 12924 0 12923 1 0 1 1 0 8 0 processpl 1072 12977 0 12923 5 1 4 5 0 8 0 procpl 680 35131 0 35055 34 26 8 8 0 8 1 sosppl 168 211 0 211 26 25 1 1 0 8 1 sockpl 488 25061 0 25025 441 427 14 38 0 8 8 mcl64k 65536 28 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 42 0 0 4 1 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 389 0 0 30 12 18 30 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1516 0 0 58 0 58 58 0 8 0 bufpl 288 26640 0 20312 453 0 453 453 0 8 0 anonpl 24 1397990 0 1386653 264 170 94 106 0 186 0 amapchunkpl 152 403215 0 402315 145 103 42 51 0 158 5 amappl16 200 28999 0 28671 164 143 21 31 0 8 3 amappl15 192 17 0 17 2 2 0 1 0 8 0 amappl14 184 205 0 189 2 1 1 2 0 8 0 amappl13 176 19 0 19 3 3 0 1 0 8 0 amappl12 168 13803 0 13763 2 0 2 2 0 8 0 amappl11 160 51 0 40 1 0 1 1 0 8 0 amappl10 152 77 0 66 1 0 1 1 0 8 0 amappl9 144 287 0 287 19 18 1 1 0 8 1 amappl8 136 764 0 578 7 0 7 7 0 8 0 amappl7 128 141 0 127 2 0 2 2 0 8 0 amappl6 120 494 0 470 1 0 1 1 0 8 0 amappl5 112 461 0 453 1 0 1 1 0 8 0 amappl4 104 818 0 772 2 0 2 2 0 8 0 amappl3 96 78424 0 78323 8 5 3 4 0 8 0 amappl2 88 13751 0 13669 3 1 2 3 0 8 0 amappl1 80 53780 0 53251 22 9 13 22 0 8 0 amappl 88 124899 0 124631 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 12959 0 12923 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 12959 0 12923 1 0 1 1 0 8 0 vmmpekpl 168 99378 0 99310 4 0 4 4 0 8 0 vmmpepl 168 753833 0 751252 231 104 127 127 0 357 10 vmsppl 464 12958 0 12923 7 2 5 6 0 8 0 rwobjpl 56 193208 0 185684 116 6 110 110 0 8 0 pdppl 4096 25926 0 25846 510 428 82 94 0 8 2 pvpl 32 3893298 0 3874355 605 430 175 331 0 265 13 pmappl 248 12958 0 12923 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1683 0 808 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(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(db665a99) at splraise+0xb4 sys/arch/amd64/amd64/intr.c:699 mtx_enter_try(fffffd806f1f8438) at mtx_enter_try+0x73 sys/kern/kern_lock.c:291 mtx_enter(fffffd806f1f8438) at mtx_enter+0x4f sys/kern/kern_lock.c:266 knote_remove(ffff8000212d12a0,fffffd806f1f8438,fffffd806f1f84c0,9,0) at knote_remove+0x20d sys/kern/kern_event.c:1881 knote_fdclose(ffff8000212d12a0,9) at knote_fdclose+0xae sys/kern/kern_event.c:1934 fdfree(ffff8000212d12a0) at fdfree+0xdf sys/kern/kern_descrip.c:1196 exit1(ffff8000212d12a0,0,0,1) at exit1+0x3e4 sys/kern/kern_exit.c:206 sys_exit(ffff8000212d12a0,ffff800023303cf0,ffff800023303d40) at sys_exit+0x1a sys/kern/kern_exit.c:89 syscall(ffff800023303dc0) at syscall+0x5e2 mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800023303dc0) at syscall+0x5e2 sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x761ae34795b0, 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(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(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(ffff8000211b32a0) at reaper+0x160 sys/kern/kern_exit.c:454 end trace frame: 0x0, count: -5