panic: spl assertion failure in yield Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 229230 51639 0 0 0 0 syz-executor.1 * 4468 51639 0 0 0x4000000 1K syz-executor.1 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82471e80) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243be8a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 malloc(10,35,9) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip_setmoptions(9,fffffd806f682890,fffffd8078a81500,0) at ip_setmoptions+0x5a sys/netinet/ip_output.c:1362 sys_setsockopt(ffff8000252f49e8,ffff800021f89b48,ffff800021f89b90) at sys_setsockopt+0x215 sys/kern/uipc_syscalls.c:965 syscall(ffff800021f89c10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f89c10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x82b799aae40, count: 6 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic spl assertion failure in yield ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82471e80) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243be8a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 malloc(10,35,9) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip_setmoptions(9,fffffd806f682890,fffffd8078a81500,0) at ip_setmoptions+0x5a sys/netinet/ip_output.c:1362 sys_setsockopt(ffff8000252f49e8,ffff800021f89b48,ffff800021f89b90) at sys_setsockopt+0x215 sys/kern/uipc_syscalls.c:965 syscall(ffff800021f89c10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f89c10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x82b799aae40, count: -9 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021f89810 rbx 0xffff800021f898c0 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff82319f3f kprintf+0x16f r9 0x1 r10 0x2 r11 0x922f1ddc6fd5d127 r12 0x3000000008 r13 0xffff800021f89820 r14 0x100 r15 0x1 rip 0xffffffff812fccd8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021f89800 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=4468 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=74, nice=20 forw=0xffffffffffffffff, list=0xffff8000252f4c58,0xffffffff828ea9e0 process=0xffff800020e22028 user=0xffff800021f84000, vmspace=0xfffffd807efff5c0 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51639 229230 62031 0 7 0 syz-executor.1 *51639 4468 62031 0 7 0x4000000 syz-executor.1 62031 32795 84817 0 3 0x82 nanosleep syz-executor.1 62455 125518 0 0 3 0x14200 acct acct 9539 134070 0 0 3 0x14200 bored sosplice 92955 423886 0 0 3 0x14280 nfsidl nfsio 84316 461161 0 0 3 0x14280 nfsidl nfsio 74711 198553 0 0 3 0x14280 nfsidl nfsio 63679 250081 0 0 3 0x14280 nfsidl nfsio 2827 458747 0 0 3 0x14280 nfsidl nfsio 8607 353674 0 0 3 0x14280 nfsidl nfsio 54459 471255 0 0 3 0x14280 nfsidl nfsio 35474 92630 0 0 3 0x14280 nfsidl nfsio 34371 204158 0 0 3 0x14280 nfsidl nfsio 39411 82143 0 0 3 0x14280 nfsidl nfsio 98167 414423 0 0 3 0x14280 nfsidl nfsio 75793 157064 0 0 3 0x14280 nfsidl nfsio 75974 520844 0 0 3 0x14280 nfsidl nfsio 2362 196975 0 0 3 0x14280 nfsidl nfsio 36175 411185 0 0 3 0x14280 nfsidl nfsio 84882 518244 0 0 3 0x14280 nfsidl nfsio 27709 441434 0 0 3 0x14280 nfsidl nfsio 32861 334278 0 0 3 0x14280 nfsidl nfsio 65356 396129 0 0 3 0x14280 nfsidl nfsio 88346 135469 0 0 3 0x14280 nfsidl nfsio 28076 438203 84817 0 3 0x82 nanosleep syz-executor.0 84817 58969 41746 0 3 0x82 thrsleep syz-fuzzer 84817 107027 41746 0 3 0x4000082 nanosleep syz-fuzzer 84817 372046 41746 0 3 0x4000082 thrsleep syz-fuzzer 84817 390260 41746 0 3 0x4000082 nanosleep syz-fuzzer 84817 243430 41746 0 3 0x4000082 thrsleep syz-fuzzer 84817 373122 41746 0 3 0x4000082 thrsleep syz-fuzzer 84817 239566 41746 0 3 0x4000082 thrsleep syz-fuzzer 84817 427511 41746 0 3 0x4000082 thrsleep syz-fuzzer 84817 159989 41746 0 3 0x4000082 thrsleep syz-fuzzer 84817 38541 41746 0 3 0x4000082 kqread syz-fuzzer 41746 372126 76339 0 3 0x10008a pause ksh 76339 384459 57605 0 3 0x92 select sshd 74470 362440 1 0 3 0x100083 ttyin getty 57605 184838 1 0 3 0x80 select sshd 67505 433425 77716 74 3 0x100092 bpf pflogd 77716 334614 1 0 3 0x80 netio pflogd 67212 36043 14645 73 3 0x100090 kqread syslogd 14645 515358 1 0 3 0x100082 netio syslogd 36392 138610 1 77 3 0x100090 poll dhclient 69743 41666 1 0 3 0x80 poll dhclient 29528 1224 0 0 3 0x14200 bored smr 39733 473610 0 0 3 0x14200 pgzero zerothread 6469 231570 0 0 3 0x14200 aiodoned aiodoned 33421 55665 0 0 3 0x14200 syncer update 80647 257745 0 0 3 0x14200 cleaner cleaner 3154 5427 0 0 3 0x14200 reaper reaper 67720 335067 0 0 3 0x14200 pgdaemon pagedaemon 26249 25764 0 0 3 0x14200 bored crynlk 54084 119725 0 0 3 0x14200 bored crypto 71907 363822 0 0 3 0x40014200 acpi0 acpi0 58927 185527 0 0 3 0x40014200 idle1 77402 198315 0 0 3 0x14200 bored softnet 50973 218081 0 0 3 0x14200 bored systqmp 87108 179244 0 0 3 0x14200 bored systq 84889 293968 0 0 3 0x40014200 bored softclock 12098 176178 0 0 3 0x40014200 idle0 1 384539 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 51639 (syz-executor.1) thread 0xffff8000252f49e8 (4468) exclusive rwlock netlock r = 0 (0xffffffff82714538) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 solock+0x5a sys/kern/uipc_socket2.c:282 #2 sys_setsockopt+0x1fa sys/kern/uipc_syscalls.c:964 #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 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff8290bf70) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] #1 syscall+0x400 sys/arch/amd64/amd64/trap.c:570 #2 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9523 6481K 7136K 78643K 11009 0 pcb 13 8K 8K 78643K 48 0 rtable 110 4K 4K 78643K 284 0 ifaddr 75 15K 15K 78643K 111 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 53 0 ioctlops 0 0K 4K 78643K 1497 0 iov 0 0K 32K 78643K 39 0 mount 1 1K 1K 78643K 1 0 vnodes 1230 77K 78K 78643K 1379 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 72 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 287 0 proc 61 63K 83K 78643K 514 0 subproc 32 2K 2K 78643K 52 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 17 0 in_multi 59 3K 3K 78643K 83 0 ether_multi 1 0K 0K 78643K 6 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 43 201K 201K 78643K 43 0 exec 0 0K 1K 78643K 248 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 116 38K 39K 78643K 1869 0 UVM aobj 9 2K 2K 78643K 9 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 33 0 NDP 12 0K 0K 78643K 23 0 temp 107 3848K 3922K 78643K 14227 0 kqueue 3 4K 16K 78643K 22 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 25 0 23 1 0 1 1 0 8 0 rtentry 112 59 0 14 2 0 2 2 0 8 0 unpcb 120 149 0 139 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 950 0 950 1 1 0 1 0 8 0 tcpcb 544 85 0 81 1 0 1 1 0 8 0 inpcb 280 263 0 255 2 1 1 2 0 8 0 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 11 0 4 1 0 1 1 0 8 0 swfcl 56 2 0 0 1 0 1 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 pffrent 40 2 0 2 1 1 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 pftag 88 2 0 2 1 1 0 1 0 8 0 pfstitem 24 29 0 9 1 0 1 1 0 8 0 pfstkey 112 29 0 9 1 0 1 1 0 8 0 pfstate 328 29 0 9 2 0 2 2 0 8 0 pfrule 1360 24 0 19 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 241 0 50 13 1 12 13 0 8 0 art_table 32 242 0 50 2 0 2 2 0 8 0 art_node 16 58 0 17 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 1 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 68 0 58 1 0 1 1 0 8 0 shmpl 112 7 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1767 0 358 89 0 89 89 0 8 0 ffsino 272 1767 0 358 96 1 95 95 0 8 0 nchpl 144 2486 0 889 60 0 60 60 0 8 0 uvmvnodes 72 1927 0 0 36 0 36 36 0 8 0 vnodes 208 1927 0 0 102 0 102 102 0 8 0 namei 1024 6810 0 6810 3 2 1 1 0 8 1 percpumem 16 37 0 5 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 2 0 0 1 0 1 1 0 8 0 scxspl 192 6881 0 6881 9 8 1 7 0 8 1 plimitpl 152 24 0 16 1 0 1 1 0 8 0 sigapl 424 521 0 468 8 1 7 7 0 8 0 futexpl 56 3839 0 3839 2 1 1 1 0 8 1 knotepl 112 93 0 74 1 0 1 1 0 8 0 kqueuepl 144 46 0 44 1 0 1 1 0 8 0 pipelkpl 48 114 0 104 1 0 1 1 0 8 0 pipepl 120 228 0 209 1 0 1 1 0 8 0 fdescpl 496 484 0 468 3 0 3 3 0 8 0 filepl 152 2862 0 2760 6 2 4 5 0 8 0 lockfpl 104 97 0 96 1 0 1 1 0 8 0 lockfspl 48 29 0 28 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 228 0 219 1 0 1 1 0 8 0 zombiepl 144 469 0 468 3 2 1 1 0 8 0 processpl 984 521 0 467 8 1 7 7 0 8 0 procpl 624 1074 0 1010 6 0 6 6 0 8 0 sockpl 400 440 0 420 6 4 2 4 0 8 0 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 7 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 230 0 0 28 0 28 28 0 8 0 mtagpl 80 19 0 0 1 0 1 1 0 8 0 mbufpl 256 252 0 0 16 0 16 16 0 8 0 bufpl 280 3911 0 132 270 0 270 270 0 8 0 anonpl 16 62778 0 46802 80 15 65 79 0 124 0 amapchunkpl 152 3039 0 2897 20 12 8 20 0 158 0 amappl16 192 2198 0 1335 54 10 44 54 0 8 0 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 66 0 61 1 0 1 1 0 8 0 amappl13 168 36 0 33 1 0 1 1 0 8 0 amappl12 160 179 0 175 1 0 1 1 0 8 0 amappl11 152 145 0 128 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 384 0 383 1 0 1 1 0 8 0 amappl8 128 361 0 331 2 0 2 2 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 108 0 99 1 0 1 1 0 8 0 amappl5 104 498 0 481 1 0 1 1 0 8 0 amappl4 96 506 0 477 1 0 1 1 0 8 0 amappl3 88 112 0 107 1 0 1 1 0 8 0 amappl2 80 2908 0 2835 2 0 2 2 0 8 0 amappl1 72 20658 0 20211 23 13 10 18 0 8 0 amappl 80 1325 0 1282 3 1 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 8 0 0 1 0 1 1 0 8 0 uaddrrnd 24 486 0 468 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 486 0 468 1 0 1 1 0 8 0 vmmpekpl 168 7798 0 7760 2 0 2 2 0 8 0 vmmpepl 168 66420 0 64397 135 41 94 119 0 357 2 vmsppl 368 485 0 468 2 0 2 2 0 8 0 pdppl 4096 979 0 938 7 1 6 6 0 8 0 pvpl 32 196572 0 177338 193 34 159 188 0 265 3 pmappl 232 485 0 468 3 1 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 279 0 12 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82718ff0) 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 __mp_lock(ffffffff8290bd68) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290bd68) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7ffffce530, count: 9 ddb{0}> trace x86_ipi_db(ffffffff82718ff0) 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 __mp_lock(ffffffff8290bd68) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff8290bd68) at __mp_lock+0x127 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x4e sys/arch/amd64/amd64/softintr.c:89 Xsoftclock() at Xsoftclock+0x1f end of kernel end trace frame: 0x7f7ffffce530, count: -6 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x18: addq $0x8,%rsp db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82471e80) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243be8a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 malloc(10,35,9) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip_setmoptions(9,fffffd806f682890,fffffd8078a81500,0) at ip_setmoptions+0x5a sys/netinet/ip_output.c:1362 sys_setsockopt(ffff8000252f49e8,ffff800021f89b48,ffff800021f89b90) at sys_setsockopt+0x215 sys/kern/uipc_syscalls.c:965 syscall(ffff800021f89c10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f89c10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x82b799aae40, count: 6 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82471e80) at panic+0x15c sys/kern/subr_prf.c:207 splassert_fail(0,1,ffffffff8243be8a) at splassert_fail+0x102 sys/kern/subr_prf.c:237 yield() at yield+0x77 sys/kern/sched_bsd.c:304 malloc(10,35,9) at malloc+0xa4 sys/kern/kern_malloc.c:183 ip_setmoptions(9,fffffd806f682890,fffffd8078a81500,0) at ip_setmoptions+0x5a sys/netinet/ip_output.c:1362 sys_setsockopt(ffff8000252f49e8,ffff800021f89b48,ffff800021f89b90) at sys_setsockopt+0x215 sys/kern/uipc_syscalls.c:965 syscall(ffff800021f89c10) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021f89c10) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x82b799aae40, count: -9