panic: unhandled af 39 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 384038 84118 0 0x2 0x480 0 syz-executor.1 * 13984 47860 0 0x14000 0x200 1K softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6aa0) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(27) at unhandled_af+0x16 pf_build_tcp(ffffffff82640840,27,fffffd806d900cc0,fffffd806d900cb0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80644892a0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80644892a0) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(9) at pf_purge_expired_states+0x1ed pf_purge(ffffffff8260e7a8) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: 7 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 unhandled af 39 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff821d6aa0) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(27) at unhandled_af+0x16 pf_build_tcp(ffffffff82640840,27,fffffd806d900cc0,fffffd806d900cb0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80644892a0) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80644892a0) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(9) at pf_purge_expired_states+0x1ed pf_purge(ffffffff8260e7a8) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x9c sys/kern/kern_task.c:369 end trace frame: 0x0, count: -8 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a4f640 rbx 0xffff800020a4f6f0 rdx 0xffff800020a284f0 rcx 0 rax 0 r8 0xffffffff81a0824f kprintf+0x16f r9 0x1 r10 0x25 r11 0xbd3cb52e36ddb205 r12 0x3000000008 r13 0xffff800020a4f650 r14 0x100 r15 0x1 rip 0xffffffff8189d738 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a4f630 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (softnet) pid=13984 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a28768,0xffff800020a28288 process=0xffff800020a2a000 user=0xffff800020a4a000, vmspace=0xffffffff82662320 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 90377 45092 15426 0 2 0 syz-executor.0 90377 137086 15426 0 3 0x4000080 fsleep syz-executor.0 15426 301121 6709 0 3 0x82 nanosleep syz-executor.0 88998 420997 0 0 3 0x14200 bored sosplice 84118 384038 6709 0 7 0x482 syz-executor.1 6709 104648 81982 0 3 0x82 kqread syz-fuzzer 6709 97325 81982 0 3 0x4000082 nanosleep syz-fuzzer 6709 121957 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 18213 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 267866 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 230841 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 22988 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 259755 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 216754 81982 0 3 0x4000082 thrsleep syz-fuzzer 6709 483699 81982 0 3 0x4000082 thrsleep syz-fuzzer 81982 123813 88505 0 3 0x10008a pause ksh 88505 269979 7364 0 3 0x92 select sshd 8730 398327 1 0 3 0x100083 ttyin getty 7364 240857 1 0 3 0x80 select sshd 31240 198672 4418 74 3 0x100092 bpf pflogd 4418 23500 1 0 3 0x80 netio pflogd 24139 413161 76659 73 3 0x100090 kqread syslogd 76659 386844 1 0 3 0x100082 netio syslogd 48178 8597 1 77 3 0x100090 poll dhclient 69313 403122 1 0 3 0x80 poll dhclient 60120 495775 0 0 3 0x14200 pgzero zerothread 45521 406847 0 0 3 0x14200 aiodoned aiodoned 78298 92740 0 0 3 0x14200 syncer update 44080 140317 0 0 3 0x14200 cleaner cleaner 21202 188411 0 0 3 0x14200 reaper reaper 9834 219387 0 0 3 0x14200 pgdaemon pagedaemon 42339 517906 0 0 3 0x14200 bored crynlk 29036 381113 0 0 3 0x14200 bored crypto 19932 43483 0 0 3 0x40014200 acpi0 acpi0 89016 481399 0 0 3 0x40014200 idle1 *47860 13984 0 0 7 0x14200 softnet 19674 308201 0 0 3 0x14200 bored systqmp 27447 320060 0 0 3 0x14200 bored systq 34241 343179 0 0 3 0x40014200 bored softclock 47576 439835 0 0 3 0x40014200 idle0 67889 461889 0 0 3 0x14200 bored smr 1 360436 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 47860 (softnet) thread 0xffff800020a284f0 (13984) exclusive rwlock netlock r = 0 (0xffffffff82455b78) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pf_purge+0x27 sys/net/pf.c:1273 #2 taskq_thread+0x9c sys/kern/kern_task.c:369 #3 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82631498) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 pf_purge+0x1b sys/net/pf.c:1264 #2 taskq_thread+0x9c sys/kern/kern_task.c:369 #3 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff80000002b0e0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 taskq_thread+0x8f sys/kern/kern_task.c:368 #2 proc_trampoline+0x1c ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9480 6423K 10856K 78643K 111409 0 pcb 13 8K 8K 78643K 451 0 rtable 112 5K 5K 78643K 320 0 ifaddr 561 139K 174K 78643K 1123 0 counters 39 33K 33K 78643K 39 0 ioctlops 0 0K 4K 78643K 5471 0 iov 0 0K 16K 78643K 756 0 mount 1 1K 1K 78643K 1 0 vnodes 1254 79K 79K 78643K 29679 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 154 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 2K 78643K 518 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 196K 290K 78643K 12766 0 file desc 5 13K 25K 78643K 39634 0 sigio 0 0K 0K 78643K 365 0 proc 185 71K 95K 78643K 664 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1045 0 in_multi 33 2K 2K 78643K 48 0 ether_multi 1 0K 0K 78643K 1 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 606 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 174 57K 58K 78643K 96311 0 UVM aobj 130 4K 4K 78643K 149 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 131 0 NDP 6 0K 0K 78643K 13 0 temp 117 3036K 3104K 78643K 140298 0 kqueue 0 0K 0K 78643K 1 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 10 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 103 0 101 1 0 1 1 0 8 0 rtentry 112 57 0 13 2 0 2 2 0 8 0 unpcb 120 50275 0 50265 47 46 1 3 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 18 0 18 11 11 0 1 0 8 0 tcpqe 32 50 0 50 1 1 0 1 0 8 0 tcpcb 544 1416 0 1412 2 1 1 2 0 8 0 inpcb 280 51382 0 51375 48 46 2 3 0 8 1 nd6 48 6 0 2 1 0 1 1 0 8 0 pkpcb 40 29 0 29 2 2 0 1 0 8 0 pfstscr 40 2200 0 2135 6 4 2 4 0 8 1 pffrag 232 11 0 11 3 3 0 1 0 482 0 pffrnode 88 11 0 11 3 3 0 1 0 8 0 pffrent 40 22 0 22 3 3 0 1 0 8 0 pfosfp 40 848 0 423 5 0 5 5 0 8 0 pfosfpen 112 1430 0 714 21 0 21 21 0 8 0 pfrktable 1344 28 0 25 1 0 1 1 0 8 0 pftag 88 6 0 5 2 1 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 2229 0 2090 3 1 2 3 0 8 0 pfstkey 112 3479 0 3473 3 2 1 3 0 8 0 pfstate 328 2024 0 1948 32 13 19 25 0 8 8 pfrule 1360 465 0 438 4 1 3 3 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 256 0 43 14 0 14 14 0 8 0 art_table 32 257 0 43 2 0 2 2 0 8 0 art_node 16 56 0 16 1 0 1 1 0 8 0 semupl 112 175 0 175 5 5 0 1 0 8 0 semapl 112 490 0 480 1 0 1 1 0 8 0 shmpl 112 147 0 19 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 45153 0 43740 46 0 46 46 0 8 0 ffsino 272 45153 0 43740 96 1 95 95 0 8 0 nchpl 144 97097 0 95390 69 5 64 64 0 8 0 uvmvnodes 72 5926 0 0 108 0 108 108 0 8 0 vnodes 208 5926 0 0 312 0 312 312 0 8 0 namei 1024 263327 0 263327 1 0 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 7 0 3 1 0 1 1 0 8 0 pfiaddrpl 120 292 0 274 1 0 1 1 0 8 0 scxspl 192 254326 0 254326 8 7 1 7 0 8 1 plimitpl 152 269 0 261 1 0 1 1 0 8 0 sigapl 432 39830 0 39815 3 1 2 3 0 8 0 futexpl 56 346582 0 346581 1 0 1 1 0 8 0 knotepl 112 1519 0 1500 1 0 1 1 0 8 0 kqueuepl 104 4677 0 4675 1 0 1 1 0 8 0 pipepl 112 2774 0 2755 1 0 1 1 0 8 0 fdescpl 488 39831 0 39815 3 0 3 3 0 8 0 filepl 152 225516 0 225416 89 83 6 8 0 8 2 lockfpl 104 3773 0 3772 1 0 1 1 0 8 0 lockfspl 48 1471 0 1470 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 276 0 265 1 0 1 1 0 8 0 ucredpl 96 19448 0 19439 1 0 1 1 0 8 0 zombiepl 144 39815 0 39814 1 0 1 1 0 8 0 processpl 904 39847 0 39814 4 0 4 4 0 8 0 procpl 632 95051 0 95008 45 40 5 5 0 8 1 srpgc 64 2 0 2 1 1 0 1 0 8 0 sosppl 128 271 0 271 4 4 0 1 0 8 0 sockpl 384 101978 0 101959 149 144 5 9 0 8 3 mcl64k 65536 39 0 0 5 2 3 3 0 8 0 mcl16k 16384 47 0 0 3 0 3 3 0 8 0 mcl12k 12288 81 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 47 0 0 4 1 3 3 0 8 0 mcl2k2 2112 25 0 0 2 0 2 2 0 8 0 mcl2k 2048 227 0 0 19 9 10 19 0 8 0 mtagpl 80 18 0 0 1 0 1 1 0 8 0 mbufpl 256 971 0 0 17 8 9 15 0 8 0 bufpl 280 46652 0 39582 506 0 506 506 0 8 0 anonpl 16 2315649 0 2307793 60 26 34 47 0 125 0 amapchunkpl 152 159713 0 159618 17 12 5 12 0 158 0 amappl16 192 158702 0 158280 44 22 22 32 0 8 0 amappl15 184 13116 0 13112 1 0 1 1 0 8 0 amappl14 176 26570 0 26565 1 0 1 1 0 8 0 amappl13 168 3 0 2 1 0 1 1 0 8 0 amappl12 160 8 0 7 1 0 1 1 0 8 0 amappl11 152 58 0 43 1 0 1 1 0 8 0 amappl10 144 13 0 8 1 0 1 1 0 8 0 amappl9 136 620 0 617 1 0 1 1 0 8 0 amappl8 128 513 0 433 3 0 3 3 0 8 0 amappl7 120 116 0 104 1 0 1 1 0 8 0 amappl6 112 67 0 57 1 0 1 1 0 8 0 amappl5 104 704 0 690 1 0 1 1 0 8 0 amappl4 96 20754 0 20718 2 1 1 2 0 8 0 amappl3 88 48006 0 47994 1 0 1 1 0 8 0 amappl2 80 324559 0 324484 3 1 2 3 0 8 0 amappl1 72 689295 0 688851 25 15 10 20 0 8 0 amappl 80 95546 0 95505 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 148 0 19 3 0 3 3 0 8 0 uaddrrnd 24 39838 0 39818 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 39838 0 39818 1 0 1 1 0 8 0 vmmpekpl 168 166643 0 166604 2 0 2 2 0 8 0 vmmpepl 168 4499127 0 4497468 166 87 79 87 0 357 1 vmsppl 368 39837 0 39818 2 0 2 2 0 8 0 pdppl 4096 79683 0 79640 6 0 6 6 0 8 0 pvpl 32 6791611 0 6780462 248 154 94 124 0 265 0 pmappl 232 39837 0 39818 3 1 2 2 0 8 0 extentpl 40 46 0 29 1 0 1 1 0 8 0 phpool 112 186 0 25 5 0 5 5 0 8 0