panic: spl assertion failure in yield Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *120435 54551 0 0 0x4000000 0 syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8224b20b) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff822250d5) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 malloc(10,35,1) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip6_setmoptions(d,fffffd80648490e8,fffffd806af3e200,0) at ip6_setmoptions+0x69 sys/netinet6/ip6_output.c:1886 ip6_ctloutput(1,fffffd805daabc88,29,d,fffffd806af3e200) at ip6_ctloutput+0x7f5 sys/netinet6/ip6_output.c:1260 sys_setsockopt(ffff80001d751c50,ffff80001e82e3a8,ffff80001e82e3f0) at sys_setsockopt+0x214 sys/kern/uipc_syscalls.c:960 syscall(ffff80001e82e470) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a1d384c510, 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(ffffffff8224b20b) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff822250d5) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 malloc(10,35,1) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip6_setmoptions(d,fffffd80648490e8,fffffd806af3e200,0) at ip6_setmoptions+0x69 sys/netinet6/ip6_output.c:1886 ip6_ctloutput(1,fffffd805daabc88,29,d,fffffd806af3e200) at ip6_ctloutput+0x7f5 sys/netinet6/ip6_output.c:1260 sys_setsockopt(ffff80001d751c50,ffff80001e82e3a8,ffff80001e82e3f0) at sys_setsockopt+0x214 sys/kern/uipc_syscalls.c:960 syscall(ffff80001e82e470) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a1d384c510, count: -10 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001e82dfc0 rbx 0xffff80001e82e070 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81726bbf kprintf+0x15f r9 0x1 r10 0x2 r11 0x7056ecdb983122e7 r12 0x3000000008 r13 0xffff80001e82dfd0 r14 0x100 r15 0x1 rip 0xffffffff82065928 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001e82dfb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (syz-executor.1) pid=120435 stat=onproc flags process=0 proc=4000000 pri=67, usrpri=67, nice=20 forw=0xffffffffffffffff, list=0xffff80001d751ec0,0xffffffff82578ce0 process=0xffff8000ffff9940 user=0xffff80001e829000, vmspace=0xfffffd80573ebaa8 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 54551 336857 54780 0 2 0 syz-executor.1 *54551 120435 54780 0 7 0x4000000 syz-executor.1 3076 303491 0 0 3 0x14200 bored sosplice 54780 170215 7129 0 3 0x82 nanosleep syz-executor.1 26071 308 7129 0 2 0x2 syz-executor.0 7129 422211 3434 0 3 0x82 thrsleep syz-fuzzer 7129 143360 3434 0 3 0x4000082 nanosleep syz-fuzzer 7129 104236 3434 0 3 0x4000082 kqread syz-fuzzer 7129 11604 3434 0 3 0x4000082 thrsleep syz-fuzzer 7129 81305 3434 0 3 0x4000082 thrsleep syz-fuzzer 7129 22444 3434 0 3 0x4000082 thrsleep syz-fuzzer 7129 51657 3434 0 3 0x4000082 thrsleep syz-fuzzer 7129 310913 3434 0 3 0x4000082 thrsleep syz-fuzzer 3434 223690 63744 0 3 0x10008a pause ksh 63744 490000 87293 0 3 0x92 select sshd 16032 394263 1 0 3 0x100083 ttyin getty 87293 447821 1 0 3 0x80 select sshd 56810 277667 68136 73 3 0x100090 kqread syslogd 68136 43956 1 0 3 0x100082 netio syslogd 41296 210281 1 77 3 0x100090 poll dhclient 65026 392868 1 0 3 0x80 poll dhclient 78328 202221 0 0 3 0x14200 bored smr 48504 210300 0 0 2 0x14200 zerothread 91713 518282 0 0 3 0x14200 aiodoned aiodoned 36753 507048 0 0 3 0x14200 syncer update 83372 443328 0 0 3 0x14200 cleaner cleaner 14001 49729 0 0 3 0x14200 reaper reaper 7654 359735 0 0 3 0x14200 pgdaemon pagedaemon 48932 469421 0 0 3 0x14200 bored crynlk 67752 95709 0 0 3 0x14200 bored crypto 80464 171223 0 0 3 0x40014200 acpi0 acpi0 24479 428641 0 0 3 0x14200 bored softnet 93085 58624 0 0 3 0x14200 bored systqmp 40338 478500 0 0 3 0x14200 bored systq 2425 22783 0 0 3 0x40014200 bored softclock 20637 221521 0 0 3 0x40014200 idle0 1 423150 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 9495 6473K 7374K 78643K 11408 0 pcb 13 8K 8K 78643K 51 0 rtable 112 4K 6K 78643K 252 0 ifaddr 60 12K 13K 78643K 89 0 counters 21 16K 16K 78643K 24 0 ioctlops 0 0K 4K 78643K 35 0 iov 0 0K 16K 78643K 20 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1452 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 7 0 VM map 2 0K 0K 78643K 2 0 sem 12 0K 0K 78643K 62 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 482 0 sigio 0 0K 0K 78643K 25 0 proc 49 38K 63K 78643K 380 0 subproc 32 2K 2K 78643K 36 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 88 0 in_multi 40 2K 2K 78643K 45 0 ether_multi 1 0K 0K 78643K 3 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 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 193 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 133 55K 56K 78643K 1928 0 UVM aobj 16 4K 4K 78643K 19 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 32 0 NDP 9 0K 0K 78643K 16 0 temp 84 3031K 3095K 78643K 6064 0 kqueue 3 4K 12K 78643K 10 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 6 0 0 1 0 1 1 0 8 0 rtpcb 80 29 0 27 1 0 1 1 0 8 0 rtentry 112 47 0 3 2 0 2 2 0 8 0 unpcb 120 61 0 53 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 267 0 267 1 1 0 1 0 8 0 tcpcb 544 220 0 215 1 0 1 1 0 8 0 ipq 40 66 0 66 1 1 0 1 0 8 0 ipqe 40 132 0 132 1 1 0 1 0 8 0 inpcb 280 344 0 336 2 1 1 2 0 8 0 rttmr 72 2 0 2 1 1 0 1 0 8 0 nd6 48 6 0 0 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 1 0 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 12 0 10 1 0 1 1 0 8 0 pftag 88 6 0 6 2 2 0 1 0 8 0 pfrule 1360 8 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 188 0 0 12 0 12 12 0 8 0 art_table 32 189 0 0 2 0 2 2 0 8 0 art_node 16 46 0 6 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 56 0 46 1 0 1 1 0 8 0 shmpl 112 17 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2078 0 682 88 0 88 88 0 8 0 ffsino 240 2078 0 682 83 0 83 83 0 8 0 nchpl 144 2826 0 1225 60 0 60 60 0 8 0 uvmvnodes 72 2299 0 0 42 0 42 42 0 8 0 vnodes 208 2299 0 0 121 0 121 121 0 8 0 namei 1024 7271 0 7271 2 1 1 1 0 8 1 vcpupl 1984 3 0 0 1 0 1 1 0 8 0 vmpool 528 4 0 1 1 0 1 1 0 8 0 pfiaddrpl 120 3 0 2 1 0 1 1 0 8 0 scxspl 192 7660 0 7660 1 0 1 1 0 8 1 plimitpl 152 25 0 18 1 0 1 1 0 8 0 sigapl 424 669 0 640 4 0 4 4 0 8 0 futexpl 56 5724 0 5724 3 2 1 1 0 8 1 knotepl 112 69 0 50 1 0 1 1 0 8 0 kqueuepl 144 26 0 24 1 0 1 1 0 8 0 pipelkpl 16 112 0 102 1 0 1 1 0 8 0 pipepl 120 224 0 205 2 1 1 2 0 8 0 fdescpl 432 654 0 640 2 0 2 2 0 8 0 filepl 120 2805 0 2709 5 2 3 4 0 8 0 lockfpl 104 37 0 36 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 112 17 0 7 1 0 1 1 0 8 0 pgrppl 48 17 0 7 1 0 1 1 0 8 0 ucredpl 96 295 0 288 1 0 1 1 0 8 0 zombiepl 144 640 0 640 3 2 1 1 0 8 1 processpl 920 669 0 640 4 0 4 4 0 8 0 procpl 624 1178 0 1141 5 1 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 444 0 426 4 2 2 3 0 8 0 mcl64k 65536 18 0 18 2 2 0 1 0 8 0 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 6 0 6 2 2 0 1 0 8 0 mcl9k 9216 6 0 6 1 1 0 1 0 8 0 mcl8k 8192 14 0 14 2 2 0 1 0 8 0 mcl4k 4096 58 0 58 3 3 0 1 0 8 0 mcl2k2 2112 3 0 3 2 2 0 1 0 8 0 mcl2k 2048 71071 0 71015 19 11 8 17 0 8 0 mtagpl 80 126 0 9 4 1 3 3 0 8 0 mbufpl 256 124059 0 123740 186 165 21 184 0 8 0 bufpl 280 3876 0 126 268 0 268 268 0 8 0 anonpl 16 67116 0 52135 76 14 62 73 0 107 0 amapchunkpl 152 2425 0 2296 8 2 6 8 0 158 0 amappl16 192 2606 0 1774 51 9 42 50 0 8 0 amappl15 184 244 0 242 1 0 1 1 0 8 0 amappl14 176 233 0 226 1 0 1 1 0 8 0 amappl13 168 27 0 23 1 0 1 1 0 8 0 amappl12 160 216 0 210 1 0 1 1 0 8 0 amappl11 152 288 0 278 1 0 1 1 0 8 0 amappl10 144 13 0 6 1 0 1 1 0 8 0 amappl9 136 364 0 363 1 0 1 1 0 8 0 amappl8 128 324 0 281 2 0 2 2 0 8 0 amappl7 120 106 0 95 1 0 1 1 0 8 0 amappl6 112 24 0 19 1 0 1 1 0 8 0 amappl5 104 615 0 602 1 0 1 1 0 8 0 amappl4 96 428 0 395 1 0 1 1 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 4886 0 4819 2 0 2 2 0 8 0 amappl1 72 19990 0 19585 23 14 9 17 0 8 0 amappl 80 1396 0 1353 1 0 1 1 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 18 0 3 1 0 1 1 0 8 0 uaddrrnd 24 658 0 641 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 658 0 641 1 0 1 1 0 8 0 vmmpekpl 168 7788 0 7760 2 0 2 2 0 8 0 vmmpepl 168 81729 0 79800 122 37 85 110 0 357 0 vmsppl 272 657 0 641 2 0 2 2 0 8 0 pdppl 4096 1322 0 1285 6 1 5 6 0 8 0 pvpl 32 211251 0 193303 177 28 149 169 0 265 0 pmappl 200 657 0 641 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 424 0 192 12 3 9 12 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(ffffffff8224b20b) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff822250d5) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 malloc(10,35,1) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip6_setmoptions(d,fffffd80648490e8,fffffd806af3e200,0) at ip6_setmoptions+0x69 sys/netinet6/ip6_output.c:1886 ip6_ctloutput(1,fffffd805daabc88,29,d,fffffd806af3e200) at ip6_ctloutput+0x7f5 sys/netinet6/ip6_output.c:1260 sys_setsockopt(ffff80001d751c50,ffff80001e82e3a8,ffff80001e82e3f0) at sys_setsockopt+0x214 sys/kern/uipc_syscalls.c:960 syscall(ffff80001e82e470) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a1d384c510, 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(ffffffff8224b20b) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff822250d5) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x6f sys/kern/sched_bsd.c:304 malloc(10,35,1) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip6_setmoptions(d,fffffd80648490e8,fffffd806af3e200,0) at ip6_setmoptions+0x69 sys/netinet6/ip6_output.c:1886 ip6_ctloutput(1,fffffd805daabc88,29,d,fffffd806af3e200) at ip6_ctloutput+0x7f5 sys/netinet6/ip6_output.c:1260 sys_setsockopt(ffff80001d751c50,ffff80001e82e3a8,ffff80001e82e3f0) at sys_setsockopt+0x214 sys/kern/uipc_syscalls.c:960 syscall(ffff80001e82e470) at syscall+0x507 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7a1d384c510, count: -10