panic: spl assertion failure in yield Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *406257 95039 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82248b59) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8222174a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 pool_get(ffffffff82589270,1) at pool_get+0x166 sys/kern/subr_pool.c:588 m_get(1,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sockargs(ffff80001fa87750,20000000,10,3) at sockargs+0x8d sys/kern/uipc_syscalls.c:1115 sys_connect(ffff80001d799028,ffff80001fa877d8,ffff80001fa87820) at sys_connect+0x9b sys/kern/uipc_syscalls.c:360 syscall(ffff80001fa878a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc496eb9bbc0, count: 5 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic spl assertion failure in yield ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82248b59) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8222174a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 pool_get(ffffffff82589270,1) at pool_get+0x166 sys/kern/subr_pool.c:588 m_get(1,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sockargs(ffff80001fa87750,20000000,10,3) at sockargs+0x8d sys/kern/uipc_syscalls.c:1115 sys_connect(ffff80001d799028,ffff80001fa877d8,ffff80001fa87820) at sys_connect+0x9b sys/kern/uipc_syscalls.c:360 syscall(ffff80001fa878a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc496eb9bbc0, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001fa874b0 rbx 0xffff80001fa87560 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff8101c2ef kprintf+0x15f r9 0x1 r10 0x2 r11 0x1fd1cca087899116 r12 0x3000000008 r13 0xffff80001fa874c0 r14 0x100 r15 0x1 rip 0xffffffff81294578 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001fa874a0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.0) pid=406257 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff80001d79a3a8,0xffffffff825ec610 process=0xffff80001d81e038 user=0xffff80001fa82000, vmspace=0xfffffd8058494780 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 95039 473875 84463 0 2 0 syz-executor.0 *95039 406257 84463 0 7 0x4000000 syz-executor.0 47732 152584 0 0 3 0x14280 nfsidl nfsio 20588 32081 0 0 3 0x14280 nfsidl nfsio 5816 300174 0 0 3 0x14280 nfsidl nfsio 83908 457958 0 0 3 0x14280 nfsidl nfsio 54095 165447 0 0 3 0x14280 nfsidl nfsio 15851 231569 0 0 3 0x14280 nfsidl nfsio 94261 496324 0 0 3 0x14280 nfsidl nfsio 84267 74280 0 0 3 0x14280 nfsidl nfsio 91383 324897 0 0 3 0x14280 nfsidl nfsio 55806 512752 0 0 3 0x14280 nfsidl nfsio 50584 367414 0 0 3 0x14280 nfsidl nfsio 72800 98964 0 0 3 0x14280 nfsidl nfsio 5812 100473 0 0 3 0x14280 nfsidl nfsio 31187 230728 0 0 3 0x14280 nfsidl nfsio 9127 99862 0 0 3 0x14280 nfsidl nfsio 60292 103460 0 0 3 0x14280 nfsidl nfsio 39551 373919 0 0 3 0x14280 nfsidl nfsio 69863 523636 0 0 3 0x14280 nfsidl nfsio 90403 253347 0 0 3 0x14280 nfsidl nfsio 10005 99428 0 0 3 0x14280 nfsidl nfsio 84463 461487 1218 0 3 0x82 nanosleep syz-executor.0 7274 303857 1218 0 2 0x2 syz-executor.1 41 185058 0 0 3 0x14200 acct acct 7505 427220 0 0 3 0x14200 bored sosplice 17301 132267 1 0 3 0x100083 ttyopn getty 1218 241523 99936 0 3 0x82 thrsleep syz-fuzzer 1218 32781 99936 0 3 0x4000082 thrsleep syz-fuzzer 1218 74740 99936 0 3 0x4000082 thrsleep syz-fuzzer 1218 445010 99936 0 3 0x4000082 thrsleep syz-fuzzer 1218 425526 99936 0 3 0x4000082 thrsleep syz-fuzzer 1218 506648 99936 0 3 0x4000082 kqread syz-fuzzer 1218 24900 99936 0 3 0x4000082 thrsleep syz-fuzzer 1218 220123 99936 0 3 0x4000082 thrsleep syz-fuzzer 99936 73479 70997 0 3 0x10008a pause ksh 70997 378753 66667 0 3 0x92 select sshd 66667 194313 1 0 3 0x80 select sshd 27710 411765 13984 73 3 0x100090 kqread syslogd 13984 308314 1 0 3 0x100082 netio syslogd 16481 509486 1 77 3 0x100090 poll dhclient 84129 119700 1 0 3 0x80 poll dhclient 88354 292211 0 0 3 0x14200 bored smr 60788 142878 0 0 2 0x14200 zerothread 61857 174422 0 0 3 0x14200 aiodoned aiodoned 93903 70190 0 0 3 0x14200 syncer update 43797 42039 0 0 3 0x14200 cleaner cleaner 54173 53821 0 0 3 0x14200 reaper reaper 21858 447089 0 0 3 0x14200 pgdaemon pagedaemon 26132 55139 0 0 3 0x14200 bored crynlk 63724 9568 0 0 3 0x14200 bored crypto 95120 509481 0 0 3 0x40014200 acpi0 acpi0 40957 38485 0 0 3 0x14200 bored softnet 61293 480537 0 0 3 0x14200 bored systqmp 69973 335258 0 0 3 0x14200 bored systq 33529 482634 0 0 3 0x40014200 bored softclock 43097 115604 0 0 3 0x40014200 idle0 1 439604 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9521 6350K 6932K 78643K 11729 0 pcb 13 8K 8K 78643K 165 0 rtable 120 13K 14K 78643K 562 0 ifaddr 101 20K 21K 78643K 254 0 counters 21 16K 17K 78643K 44 0 ioctlops 0 0K 4K 78643K 167 0 iov 0 0K 16K 78643K 116 0 mount 1 1K 1K 78643K 1 0 vnodes 1236 78K 78K 78643K 2092 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 11 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 116 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 977 0 sigio 0 0K 0K 78643K 12 0 proc 58 39K 63K 78643K 621 0 subproc 32 2K 3K 78643K 204 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 54 0 in_multi 127 5K 5K 78643K 215 0 ether_multi 1 0K 0K 78643K 20 0 mrt 0 0K 0K 78643K 4 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 313 0 pfkey data 0 0K 1K 78643K 4 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 151 121K 130K 78643K 3110 0 UVM aobj 26 4K 4K 78643K 38 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 126 0 NDP 14 0K 0K 78643K 47 0 temp 122 3043K 3108K 78643K 15486 0 kqueue 3 4K 20K 78643K 44 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 16 0 8 1 0 1 1 0 8 0 rtpcb 80 284 0 282 1 0 1 1 0 8 0 rtentry 112 93 0 48 2 0 2 2 0 8 0 unpcb 120 787 0 776 1 0 1 1 0 8 0 syncache 264 12 0 12 4 4 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 307 0 307 1 1 0 1 0 8 0 tcpcb 544 403 0 397 1 0 1 1 0 8 0 inpcb 280 1223 0 1214 6 5 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 14 0 10 1 0 1 1 0 8 0 pkpcb 40 8 0 8 3 3 0 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 pfstscr 40 5 0 2 1 0 1 1 0 8 0 pfrktable 1344 13 0 11 1 0 1 1 0 8 0 pftag 88 10 0 8 1 0 1 1 0 8 0 pfqueue 264 2 0 0 1 0 1 1 0 8 0 pfstitem 24 3 0 0 1 0 1 1 0 8 0 pfstkey 112 5 0 2 1 0 1 1 0 8 0 pfstate 328 3 0 1 1 0 1 1 0 8 0 pfrule 1360 28 0 16 3 2 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 354 0 158 13 0 13 13 0 8 0 art_table 32 355 0 158 2 0 2 2 0 8 0 art_node 16 90 0 48 1 0 1 1 0 8 0 sysvmsgpl 40 22 0 10 1 0 1 1 0 8 0 semapl 112 110 0 100 1 0 1 1 0 8 0 shmpl 112 36 0 12 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2982 0 1580 89 1 88 89 0 8 0 ffsino 240 2982 0 1580 83 0 83 83 0 8 0 nchpl 144 4443 0 2850 60 0 60 60 0 8 0 uvmvnodes 72 3444 0 0 63 0 63 63 0 8 0 vnodes 208 3444 0 0 182 0 182 182 0 8 0 namei 1024 15000 0 15000 2 1 1 1 0 8 1 vcpupl 1984 11 0 0 2 0 2 2 0 8 0 vmpool 528 13 0 2 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 1 0 1 0 8 0 scsiplug 64 2 0 2 1 1 0 1 0 8 0 scxspl 192 12162 0 12162 2 1 1 1 0 8 1 plimitpl 152 105 0 98 1 0 1 1 0 8 0 sigapl 424 1156 0 1106 6 0 6 6 0 8 0 futexpl 56 18605 0 18605 4 3 1 1 0 8 1 knotepl 112 237 0 218 1 0 1 1 0 8 0 kqueuepl 144 112 0 110 1 0 1 1 0 8 0 pipelkpl 16 223 0 213 1 0 1 1 0 8 0 pipepl 120 446 0 427 1 0 1 1 0 8 0 fdescpl 432 1120 0 1106 2 0 2 2 0 8 0 filepl 120 9134 0 9036 5 1 4 4 0 8 1 lockfpl 104 1863 0 1862 1 0 1 1 0 8 0 lockfspl 48 479 0 478 1 0 1 1 0 8 0 sessionpl 112 28 0 18 1 0 1 1 0 8 0 pgrppl 48 36 0 26 1 0 1 1 0 8 0 ucredpl 96 3060 0 3053 1 0 1 1 0 8 0 zombiepl 144 1106 0 1106 2 1 1 1 0 8 1 processpl 920 1156 0 1106 8 1 7 7 0 8 0 procpl 624 2204 0 2146 6 1 5 5 0 8 0 sosppl 128 12 0 12 3 3 0 1 0 8 0 sockpl 400 2310 0 2288 6 3 3 5 0 8 0 mcl64k 65536 70 0 70 4 4 0 1 0 8 0 mcl16k 16384 6 0 6 3 3 0 1 0 8 0 mcl12k 12288 17 0 17 3 3 0 1 0 8 0 mcl9k 9216 9 0 9 6 5 1 1 0 8 1 mcl8k 8192 23 0 23 4 4 0 1 0 8 0 mcl4k 4096 82 0 82 4 4 0 1 0 8 0 mcl2k2 2112 9 0 9 4 4 0 1 0 8 0 mcl2k 2048 75436 0 75382 22 14 8 18 0 8 0 mtagpl 80 92 0 51 2 1 1 1 0 8 0 mbufpl 256 125542 0 125346 20 6 14 14 0 8 0 bufpl 280 5450 0 128 381 0 381 381 0 8 0 anonpl 16 112245 0 96279 96 30 66 81 0 107 0 amapchunkpl 152 5636 0 5502 28 21 7 19 0 158 0 amappl16 192 4567 0 3661 67 21 46 58 0 8 0 amappl15 184 169 0 168 1 0 1 1 0 8 0 amappl14 176 238 0 231 1 0 1 1 0 8 0 amappl13 168 67 0 63 1 0 1 1 0 8 0 amappl12 160 473 0 470 2 1 1 1 0 8 0 amappl11 152 275 0 264 1 0 1 1 0 8 0 amappl10 144 222 0 216 1 0 1 1 0 8 0 amappl9 136 355 0 354 1 0 1 1 0 8 0 amappl8 128 446 0 393 2 0 2 2 0 8 0 amappl7 120 338 0 325 1 0 1 1 0 8 0 amappl6 112 238 0 234 1 0 1 1 0 8 0 amappl5 104 1050 0 1036 1 0 1 1 0 8 0 amappl4 96 645 0 618 1 0 1 1 0 8 0 amappl3 88 136 0 130 1 0 1 1 0 8 0 amappl2 80 7352 0 7283 2 0 2 2 0 8 0 amappl1 72 28297 0 27888 24 15 9 17 0 8 0 amappl 80 2487 0 2441 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 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 64 37 0 12 1 0 1 1 0 8 0 uaddrrnd 24 1133 0 1108 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1133 0 1108 1 0 1 1 0 8 0 vmmpekpl 168 10561 0 10529 2 0 2 2 0 8 0 vmmpepl 168 140917 0 138873 153 59 94 125 0 357 0 vmsppl 272 1132 0 1108 3 1 2 2 0 8 0 pdppl 4096 2272 0 2227 8 2 6 7 0 8 0 pvpl 32 323969 0 305414 224 72 152 188 0 265 0 pmappl 200 1132 0 1108 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 277 0 48 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82248b59) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8222174a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 pool_get(ffffffff82589270,1) at pool_get+0x166 sys/kern/subr_pool.c:588 m_get(1,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sockargs(ffff80001fa87750,20000000,10,3) at sockargs+0x8d sys/kern/uipc_syscalls.c:1115 sys_connect(ffff80001d799028,ffff80001fa877d8,ffff80001fa87820) at sys_connect+0x9b sys/kern/uipc_syscalls.c:360 syscall(ffff80001fa878a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc496eb9bbc0, count: -10 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82248b59) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8222174a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 pool_get(ffffffff82589270,1) at pool_get+0x166 sys/kern/subr_pool.c:588 m_get(1,3) at m_get+0x4c sys/kern/uipc_mbuf.c:250 sockargs(ffff80001fa87750,20000000,10,3) at sockargs+0x8d sys/kern/uipc_syscalls.c:1115 sys_connect(ffff80001d799028,ffff80001fa877d8,ffff80001fa87820) at sys_connect+0x9b sys/kern/uipc_syscalls.c:360 syscall(ffff80001fa878a0) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc496eb9bbc0, count: -10