panic: spl assertion failure in yield Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 408116 26134 0 0 0 1 syz-executor.0 *202290 26134 0 0 0x4000000 0K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8246e67e) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243d045) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 pool_get(ffffffff828ab438,d) at pool_get+0x19c sys/kern/subr_pool.c:588 pfioctl(4900,cd60441a,ffff800000af0000,3,ffff800021eedb00) at pfioctl+0x41da sys/net/pf_ioctl.c:1418 VOP_IOCTL(fffffd806f6d4430,cd60441a,ffff800000af0000,3,fffffd807f7bf9c0,ffff800021eedb00) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80645630a0,cd60441a,ffff800000af0000,ffff800021eedb00) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021eedb00,ffff800021fab1e8,ffff800021fab230) at sys_ioctl+0x4a5 syscall(ffff800021fab2b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fab2b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x50bcce90be0, count: 4 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 spl assertion failure in yield ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8246e67e) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243d045) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 pool_get(ffffffff828ab438,d) at pool_get+0x19c sys/kern/subr_pool.c:588 pfioctl(4900,cd60441a,ffff800000af0000,3,ffff800021eedb00) at pfioctl+0x41da sys/net/pf_ioctl.c:1418 VOP_IOCTL(fffffd806f6d4430,cd60441a,ffff800000af0000,3,fffffd807f7bf9c0,ffff800021eedb00) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80645630a0,cd60441a,ffff800000af0000,ffff800021eedb00) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021eedb00,ffff800021fab1e8,ffff800021fab230) at sys_ioctl+0x4a5 syscall(ffff800021fab2b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fab2b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x50bcce90be0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021faabb0 rbx 0xffff800021faac60 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81bf0c2f kprintf+0x16f r9 0x1 r10 0x2 r11 0xe0645ecc66e90a98 r12 0x3000000008 r13 0xffff800021faabc0 r14 0x100 r15 0x1 rip 0xffffffff81b07f38 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021faaba0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (syz-executor.0) pid=202290 stat=onproc flags process=0 proc=4000000 pri=86, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff800021eeced0,0xffffffff828d0fc8 process=0xffff800020ee0038 user=0xffff800021fa6000, vmspace=0xfffffd807f000170 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 26134 408116 42308 0 7 0 syz-executor.0 *26134 202290 42308 0 7 0x4000000 syz-executor.0 72014 156394 13756 0 3 0x80 nanosleep syz-executor.1 72014 177001 13756 0 3 0x4000080 kqread syz-executor.1 72014 463597 13756 0 3 0x4000080 fsleep syz-executor.1 94742 129332 0 0 3 0x14200 bored sosplice 81834 416481 0 0 3 0x14280 nfsidl nfsio 40732 136666 0 0 3 0x14280 nfsidl nfsio 74760 452106 0 0 3 0x14280 nfsidl nfsio 82338 453494 0 0 3 0x14280 nfsidl nfsio 81079 493650 0 0 3 0x14280 nfsidl nfsio 91175 493707 0 0 3 0x14280 nfsidl nfsio 34346 334709 0 0 3 0x14280 nfsidl nfsio 33984 265811 0 0 3 0x14280 nfsidl nfsio 45329 433487 0 0 3 0x14280 nfsidl nfsio 91894 206581 0 0 3 0x14280 nfsidl nfsio 28857 395295 0 0 3 0x14280 nfsidl nfsio 39648 200753 0 0 3 0x14280 nfsidl nfsio 81345 402973 0 0 3 0x14280 nfsidl nfsio 2894 140833 0 0 3 0x14280 nfsidl nfsio 89291 338925 0 0 3 0x14280 nfsidl nfsio 93568 288795 0 0 3 0x14280 nfsidl nfsio 76014 327472 0 0 3 0x14280 nfsidl nfsio 75080 505250 0 0 3 0x14280 nfsidl nfsio 84916 189928 0 0 3 0x14280 nfsidl nfsio 22503 68448 0 0 3 0x14280 nfsidl nfsio 13756 14282 28504 0 3 0x82 nanosleep syz-executor.1 42308 303665 28504 0 3 0x82 nanosleep syz-executor.0 28504 276097 80943 0 3 0x82 nanosleep syz-fuzzer 28504 469357 80943 0 3 0x4000082 nanosleep syz-fuzzer 28504 103652 80943 0 3 0x4000082 thrsleep syz-fuzzer 28504 318480 80943 0 3 0x4000082 kqread syz-fuzzer 28504 437555 80943 0 3 0x4000082 thrsleep syz-fuzzer 28504 438056 80943 0 3 0x4000082 thrsleep syz-fuzzer 28504 479800 80943 0 3 0x4000082 thrsleep syz-fuzzer 28504 203659 80943 0 3 0x4000082 thrsleep syz-fuzzer 28504 14541 80943 0 3 0x4000082 thrsleep syz-fuzzer 28504 76929 80943 0 3 0x4000082 thrsleep syz-fuzzer 80943 519867 90567 0 3 0x10008a pause ksh 90567 211350 66794 0 3 0x92 select sshd 58315 307470 1 0 3 0x100083 ttyin getty 66794 313466 1 0 3 0x80 select sshd 32658 43995 83653 74 3 0x100092 bpf pflogd 83653 247826 1 0 3 0x80 netio pflogd 29622 46167 42110 73 3 0x100090 kqread syslogd 42110 114342 1 0 3 0x100082 netio syslogd 85624 91530 1 77 3 0x100090 poll dhclient 26590 467373 1 0 3 0x80 poll dhclient 79134 39164 0 0 3 0x14200 bored smr 23590 251620 0 0 3 0x14200 pgzero zerothread 98154 216431 0 0 3 0x14200 aiodoned aiodoned 65361 176316 0 0 3 0x14200 syncer update 26112 462601 0 0 3 0x14200 cleaner cleaner 55210 3035 0 0 3 0x14200 reaper reaper 67476 24461 0 0 3 0x14200 pgdaemon pagedaemon 28348 217085 0 0 3 0x14200 bored crynlk 65651 419995 0 0 3 0x14200 bored crypto 41233 502739 0 0 3 0x40014200 acpi0 acpi0 87055 346084 0 0 3 0x40014200 idle1 49252 83453 0 0 3 0x14200 bored softnet 40478 327539 0 0 3 0x14200 bored systqmp 20989 172315 0 0 3 0x14200 bored systq 1885 481792 0 0 3 0x40014200 bored softclock 86204 412710 0 0 3 0x40014200 idle0 1 517146 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 26134 (syz-executor.0) thread 0xffff800021eedb00 (202290) exclusive rwlock netlock r = 0 (0xffffffff82743e88) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 pfioctl+0x15f sys/net/pf_ioctl.c:1028 #2 VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 #3 vn_ioctl+0xba sys/kern/vfs_vnops.c:531 #4 sys_ioctl+0x4a5 #5 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #5 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #6 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828a4478) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 vn_ioctl+0x40 sys/kern/vfs_vnops.c:514 #2 sys_ioctl+0x4a5 #3 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #3 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #4 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9525 6493K 6881K 78643K 11502 0 pcb 13 8K 8K 78643K 101 0 rtable 116 5K 7K 78643K 377 0 ifaddr 86 17K 17K 78643K 169 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 63 0 ioctlops 1 4K 4K 78643K 1553 0 iov 0 0K 16K 78643K 83 0 mount 1 1K 1K 78643K 1 0 vnodes 1228 77K 77K 78643K 1545 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 12 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 24 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 709 0 proc 62 63K 83K 78643K 492 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 37 0 in_multi 66 3K 3K 78643K 122 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 233 0 pfkey data 0 0K 0K 78643K 2 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 128 23K 39K 78643K 3283 0 UVM aobj 26 2K 2K 78643K 29 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 102 0 NDP 12 0K 0K 78643K 29 0 temp 120 3857K 3921K 78643K 5300 0 kqueue 4 6K 10K 78643K 38 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 arp 64 8 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 55 0 53 1 0 1 1 0 8 0 rtentry 112 62 0 18 2 0 2 2 0 8 0 unpcb 120 360 0 350 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 1084 0 1084 1 1 0 1 0 8 0 tcpcb 544 144 0 140 1 0 1 1 0 8 0 inpcb 280 804 0 794 8 7 1 2 0 8 0 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 9 0 5 1 0 1 1 0 8 0 pkpcb 40 4 0 4 2 2 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfstscr 40 8 0 6 1 0 1 1 0 8 0 pffrag 232 163 0 163 5 5 0 1 0 482 0 pffrnode 88 163 0 163 5 5 0 1 0 8 0 pffrent 40 536 0 536 5 5 0 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 30 0 26 1 0 1 1 0 8 0 pfstitem 24 29 0 23 1 0 1 1 0 8 0 pfstkey 112 32 0 26 1 0 1 1 0 8 0 pfstate 328 30 0 24 2 0 2 2 0 8 0 pfrule 1360 36 0 21 3 1 2 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 268 0 88 13 0 13 13 0 8 0 art_table 32 270 0 88 2 0 2 2 0 8 0 art_node 16 61 0 20 1 0 1 1 0 8 0 sysvmsgpl 40 30 0 17 1 0 1 1 0 8 0 semupl 112 5 0 5 4 4 0 1 0 8 0 semapl 112 16 0 6 1 0 1 1 0 8 0 shmpl 112 27 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2338 0 935 89 0 89 89 0 8 0 ffsino 272 2338 0 935 95 1 94 94 0 8 0 nchpl 144 3436 0 1826 60 0 60 60 0 8 0 uvmvnodes 72 2581 0 0 47 0 47 47 0 8 0 vnodes 208 2581 0 0 136 0 136 136 0 8 0 namei 1024 10985 0 10985 10 9 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 3 0 2 2 1 1 1 0 8 0 pfiaddrpl 120 9 0 5 1 0 1 1 0 8 0 scxspl 192 10354 0 10354 15 14 1 7 0 8 1 plimitpl 152 43 0 35 1 0 1 1 0 8 0 sigapl 424 945 0 892 6 0 6 6 0 8 0 futexpl 56 8563 0 8562 8 7 1 1 0 8 0 knotepl 112 105 0 85 1 0 1 1 0 8 0 kqueuepl 144 56 0 53 1 0 1 1 0 8 0 pipelkpl 48 122 0 111 1 0 1 1 0 8 0 pipepl 120 244 0 223 1 0 1 1 0 8 0 fdescpl 496 909 0 892 3 0 3 3 0 8 0 filepl 152 5862 0 5749 7 2 5 5 0 8 0 lockfpl 104 119 0 118 1 0 1 1 0 8 0 lockfspl 48 36 0 35 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 26 0 15 1 0 1 1 0 8 0 ucredpl 96 1649 0 1640 1 0 1 1 0 8 0 zombiepl 144 892 0 892 4 3 1 1 0 8 1 processpl 984 945 0 892 8 1 7 7 0 8 0 procpl 624 2521 0 2456 7 1 6 6 0 8 0 sosppl 128 12 0 12 3 3 0 1 0 8 0 sockpl 400 1223 0 1204 11 8 3 3 0 8 1 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 26 0 0 3 0 3 3 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 221 0 0 27 3 24 27 0 8 0 mtagpl 80 35 0 0 1 0 1 1 0 8 0 mbufpl 256 402 0 0 19 0 19 19 0 8 0 bufpl 280 4565 0 137 317 0 317 317 0 8 0 anonpl 16 92043 0 76166 82 18 64 72 0 124 0 amapchunkpl 152 6341 0 6190 27 20 7 20 0 158 0 amappl16 192 3982 0 3134 51 8 43 45 0 8 0 amappl15 184 2 0 1 1 0 1 1 0 8 0 amappl14 176 22 0 19 1 0 1 1 0 8 0 amappl13 168 36 0 32 1 0 1 1 0 8 0 amappl12 160 7 0 5 2 1 1 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 697 0 687 1 0 1 1 0 8 0 amappl9 136 387 0 386 1 0 1 1 0 8 0 amappl8 128 360 0 322 2 0 2 2 0 8 0 amappl7 120 472 0 460 1 0 1 1 0 8 0 amappl6 112 29 0 22 1 0 1 1 0 8 0 amappl5 104 813 0 795 1 0 1 1 0 8 0 amappl4 96 492 0 461 1 0 1 1 0 8 0 amappl3 88 212 0 207 1 0 1 1 0 8 0 amappl2 80 6482 0 6405 2 0 2 2 0 8 0 amappl1 72 29981 0 29517 23 13 10 18 0 8 0 amappl 80 2749 0 2702 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 28 0 3 1 0 1 1 0 8 0 uaddrrnd 24 912 0 894 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 912 0 894 1 0 1 1 0 8 0 vmmpekpl 168 11726 0 11687 2 0 2 2 0 8 0 vmmpepl 168 116625 0 114507 124 31 93 110 0 357 0 vmsppl 368 911 0 894 2 0 2 2 0 8 0 pdppl 4096 1831 0 1789 10 4 6 6 0 8 0 pvpl 32 285221 0 265951 218 61 157 176 0 265 1 pmappl 232 911 0 894 5 3 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 303 0 29 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8246e67e) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243d045) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 pool_get(ffffffff828ab438,d) at pool_get+0x19c sys/kern/subr_pool.c:588 pfioctl(4900,cd60441a,ffff800000af0000,3,ffff800021eedb00) at pfioctl+0x41da sys/net/pf_ioctl.c:1418 VOP_IOCTL(fffffd806f6d4430,cd60441a,ffff800000af0000,3,fffffd807f7bf9c0,ffff800021eedb00) at VOP_IOCTL+0x88 sys/kern/vfs_vops.c:290 vn_ioctl(fffffd80645630a0,cd60441a,ffff800000af0000,ffff800021eedb00) at vn_ioctl+0xba sys/kern/vfs_vnops.c:531 sys_ioctl(ffff800021eedb00,ffff800021fab1e8,ffff800021fab230) at sys_ioctl+0x4a5 syscall(ffff800021fab2b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fab2b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x50bcce90be0, count: -11 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d80ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 copyout() at copyout+0x60 syscall(ffff800021f23040) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f23040) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd090, count: 9 ddb{1}> trace x86_ipi_db(ffff800020d80ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 copyout() at copyout+0x60 syscall(ffff800021f23040) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f23040) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffcd090, count: -6