panic: unhandled af 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *452491 55847 0 0 0x4000000 1K syz-executor.1 214296 41734 0 0 0x4000000 0 syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220b413) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021faaeb0,ffff8000009dd780,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff8000009dd538,ffff800021fab178,ffff800021faaeb0,ffff800021faadc0,ffff800021fab018) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fab160,ffff8000009dd538,ffff800021faaeb0,ffff800021faaed6,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff8000009dd538,ffff800021fab160,ffff800021fab018) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff8000009dd538,ffff800021fab160,ffff800021fab018,ffff800021fab040) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fab160,ffff800021fab250,ffff800021fab260,ffff800021fab240,ffff800021fab228,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000a28000,ffff800021fab378) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fab378,ffff800021fab384,4,0,ffff800000a28000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000a28000,fffffd8069421300) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000a28000,fffffd8069421300,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d sys/net/if.c:969 end trace frame: 0xffff800021fab4f0, count: 0 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 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220b413) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021faaeb0,ffff8000009dd780,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff8000009dd538,ffff800021fab178,ffff800021faaeb0,ffff800021faadc0,ffff800021fab018) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fab160,ffff8000009dd538,ffff800021faaeb0,ffff800021faaed6,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff8000009dd538,ffff800021fab160,ffff800021fab018) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff8000009dd538,ffff800021fab160,ffff800021fab018,ffff800021fab040) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fab160,ffff800021fab250,ffff800021fab260,ffff800021fab240,ffff800021fab228,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000a28000,ffff800021fab378) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fab378,ffff800021fab384,4,0,ffff800000a28000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000a28000,fffffd8069421300) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000a28000,fffffd8069421300,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d sys/net/if.c:969 tun_dev_write(5d01,ffff800021fab748,252,2) at tun_dev_write+0x1fc sys/net/if_tun.c:871 spec_write(ffff800021fab590) at spec_write+0xd4 sys/kern/spec_vnops.c:309 VOP_WRITE(fffffd806edd41a8,ffff800021fab748,11,fffffd807f7bfae0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268 vn_write(fffffd80685f6bf8,ffff800021fab748,0) at vn_write+0x14e sys/kern/vfs_vnops.c:414 dofilewritev(ffff800020ed7398,f0,ffff800021fab748,0,ffff800021fab830) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020ed7398,ffff800021fab7e0,ffff800021fab830) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800021fab8b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fab8b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd6b97431a0, count: -22 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021faab50 rbx 0xffff800021faac00 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff8146162f kprintf+0x16f r9 0x1 r10 0x2 r11 0xa389dcedb2f806d8 r12 0x3000000008 r13 0xffff800021faab60 r14 0x100 r15 0x1 rip 0xffffffff810d1578 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021faab40 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.1) pid=452491 stat=onproc flags process=0 proc=4000000 pri=73, usrpri=73, nice=20 forw=0xffffffffffffffff, list=0xffff800020ed7128,0xffffffff82642588 process=0xffff800020e93b08 user=0xffff800021fa6000, vmspace=0xfffffd806e968008 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 55847 296797 73016 0 2 0 syz-executor.1 *55847 452491 73016 0 7 0x4000000 syz-executor.1 41734 305899 48030 0 2 0 syz-executor.0 41734 34844 48030 0 2 0x4000000 syz-executor.0 41734 214296 48030 0 7 0x4000000 syz-executor.0 86893 359447 0 0 3 0x14200 bored sosplice 73016 7244 1913 0 3 0x82 nanosleep syz-executor.1 48030 193376 1913 0 3 0x82 nanosleep syz-executor.0 1913 451659 77777 0 3 0x82 thrsleep syz-fuzzer 1913 149703 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 516108 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 400942 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 178385 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 308917 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 388038 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 322201 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 349945 77777 0 3 0x4000082 thrsleep syz-fuzzer 1913 455758 77777 0 3 0x4000082 kqread syz-fuzzer 77777 125507 55460 0 3 0x10008a pause ksh 55460 181945 52572 0 3 0x92 select sshd 93278 391318 1 0 3 0x100083 ttyin getty 52572 331020 1 0 3 0x80 select sshd 80 46278 15346 74 3 0x100092 bpf pflogd 15346 254627 1 0 3 0x80 netio pflogd 47244 172935 48182 73 3 0x100090 kqread syslogd 48182 261849 1 0 3 0x100082 netio syslogd 75149 354690 1 77 3 0x100090 poll dhclient 22276 182629 1 0 3 0x80 poll dhclient 94946 306843 0 0 3 0x14200 bored smr 40969 123240 0 0 2 0x14200 zerothread 25473 41195 0 0 3 0x14200 aiodoned aiodoned 51583 379930 0 0 3 0x14200 syncer update 35720 410601 0 0 3 0x14200 cleaner cleaner 51373 17741 0 0 3 0x14200 reaper reaper 4095 5655 0 0 3 0x14200 pgdaemon pagedaemon 64553 348842 0 0 3 0x14200 bored crynlk 46105 275140 0 0 3 0x14200 bored crypto 26692 291193 0 0 3 0x40014200 acpi0 acpi0 97462 695 0 0 3 0x40014200 idle1 37401 443698 0 0 3 0x14200 bored softnet 37782 281049 0 0 3 0x14200 bored systqmp 33409 109812 0 0 3 0x14200 bored systq 23277 520934 0 0 3 0x40014200 bored softclock 50966 28140 0 0 3 0x40014200 idle0 1 121755 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 55847 (syz-executor.1) thread 0xffff800020ed7398 (452491) exclusive rwlock netlock r = 0 (0xffffffff8251b368) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 tun_dev_write+0x1f1 sys/net/if_tun.c:870 #2 spec_write+0xd4 sys/kern/spec_vnops.c:309 #3 VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268 #4 vn_write+0x14e sys/kern/vfs_vnops.c:414 #5 dofilewritev+0x1b6 sys/kern/sys_generic.c:365 #6 sys_write+0x83 sys/kern/sys_generic.c:285 #7 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #7 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff826a4c60) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 vn_write+0x42 sys/kern/vfs_vnops.c:399 #2 dofilewritev+0x1b6 sys/kern/sys_generic.c:365 #3 sys_write+0x83 sys/kern/sys_generic.c:285 #4 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9503 6410K 6668K 78643K 10767 0 pcb 13 8K 8K 78643K 33 0 rtable 108 4K 5K 78643K 226 0 ifaddr 72 15K 15K 78643K 80 0 counters 43 33K 34K 78643K 45 0 ioctlops 0 0K 4K 78643K 1492 0 iov 0 0K 14K 78643K 22 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1281 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 5 0 VM map 2 1K 1K 78643K 2 0 sem 11 0K 0K 78643K 20 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 161 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 95K 78643K 451 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 15 0 in_multi 65 3K 3K 78643K 77 0 ether_multi 1 0K 0K 78643K 5 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 37 175K 175K 78643K 37 0 exec 0 0K 1K 78643K 217 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 129 55K 71K 78643K 1470 0 UVM aobj 10 4K 4K 78643K 12 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 17 0 NDP 10 0K 0K 78643K 15 0 temp 102 3038K 3102K 78643K 5490 0 kqueue 3 4K 8K 78643K 12 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 21 0 19 1 0 1 1 0 8 0 rtentry 112 45 0 1 2 0 2 2 0 8 0 unpcb 120 91 0 81 1 0 1 1 0 8 0 syncache 264 5 0 5 2 2 0 1 0 8 0 tcpqe 32 47 0 47 1 1 0 1 0 8 0 tcpcb 544 260 0 256 1 0 1 1 0 8 0 inpcb 280 363 0 356 2 0 2 2 0 8 1 nd6 48 6 0 0 1 0 1 1 0 8 0 ppxss 1128 1 0 1 1 1 0 1 0 8 0 pfstscr 40 2 0 0 1 0 1 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 6 0 6 1 0 1 1 0 8 1 pfstitem 24 22 0 3 1 0 1 1 0 8 0 pfstkey 112 22 0 3 1 0 1 1 0 8 0 pfstate 328 21 0 3 2 0 2 2 0 8 0 pfrule 1360 27 0 18 2 1 1 2 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 44 0 4 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 18 0 9 1 0 1 1 0 8 0 shmpl 112 10 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1603 0 196 89 0 89 89 0 8 0 ffsino 272 1603 0 196 94 0 94 94 0 8 0 nchpl 144 2009 0 398 60 0 60 60 0 8 0 uvmvnodes 72 1687 0 0 31 0 31 31 0 8 0 vnodes 208 1687 0 0 89 0 89 89 0 8 0 namei 1024 5288 0 5288 1 0 1 1 0 8 1 percpumem 16 33 0 1 1 0 1 1 0 8 0 vcpupl 1984 4 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 0 1 0 1 1 0 8 0 pfiaddrpl 120 2 0 2 1 0 1 1 0 8 1 scxspl 192 5466 0 5466 8 6 2 7 0 8 2 plimitpl 152 19 0 11 1 0 1 1 0 8 0 sigapl 424 377 0 344 4 0 4 4 0 8 0 futexpl 56 2255 0 2255 1 0 1 1 0 8 1 knotepl 112 71 0 52 1 0 1 1 0 8 0 kqueuepl 144 19 0 17 1 0 1 1 0 8 0 pipelkpl 48 92 0 80 1 0 1 1 0 8 0 pipepl 120 184 0 161 1 0 1 1 0 8 0 fdescpl 496 361 0 344 3 0 3 3 0 8 0 filepl 152 2013 0 1909 5 0 5 5 0 8 0 lockfpl 104 41 0 40 1 0 1 1 0 8 0 lockfspl 48 13 0 12 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 148 0 139 1 0 1 1 0 8 0 zombiepl 144 344 0 344 1 0 1 1 0 8 1 processpl 984 377 0 344 5 0 5 5 0 8 0 procpl 624 699 0 654 4 0 4 4 0 8 0 sosppl 128 2 0 2 1 1 0 1 0 8 0 sockpl 400 475 0 456 4 1 3 4 0 8 1 mcl64k 65536 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 167 0 0 20 0 20 20 0 8 0 mtagpl 80 14 0 0 1 0 1 1 0 8 0 mbufpl 256 201 0 0 12 0 12 12 0 8 0 bufpl 280 3563 0 133 245 0 245 245 0 8 0 anonpl 16 46417 0 31339 63 1 62 62 0 124 0 amapchunkpl 152 2072 0 1934 21 1 20 20 0 158 13 amappl16 192 1475 0 656 42 0 42 42 0 8 1 amappl15 184 61 0 59 2 1 1 1 0 8 0 amappl14 176 40 0 31 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 3 0 2 2 1 1 1 0 8 0 amappl11 152 118 0 101 1 0 1 1 0 8 0 amappl10 144 23 0 18 1 0 1 1 0 8 0 amappl9 136 455 0 452 1 0 1 1 0 8 0 amappl8 128 418 0 384 2 0 2 2 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 83 0 77 1 0 1 1 0 8 0 amappl5 104 208 0 191 1 0 1 1 0 8 0 amappl4 96 549 0 517 1 0 1 1 0 8 0 amappl3 88 103 0 97 1 0 1 1 0 8 0 amappl2 80 1943 0 1866 2 0 2 2 0 8 0 amappl1 72 17878 0 17413 23 13 10 18 0 8 0 amappl 80 947 0 900 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 11 0 2 1 0 1 1 0 8 0 uaddrrnd 24 365 0 344 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 365 0 344 1 0 1 1 0 8 0 vmmpekpl 168 6736 0 6699 2 0 2 2 0 8 0 vmmpepl 168 50508 0 48404 115 15 100 108 0 357 8 vmsppl 368 364 0 344 2 0 2 2 0 8 0 pdppl 4096 738 0 692 6 0 6 6 0 8 0 pvpl 32 162276 0 143874 155 0 155 155 0 265 6 pmappl 232 364 0 344 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 257 0 4 8 0 8 8 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82503ff0) 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(ffffffff826a4a58) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff826a4a58) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pipe_buffer_realloc(fffffd806fa48690,4000) at pipe_buffer_realloc+0x78 sys/kern/sys_pipe.c:254 dopipe(ffff800020ed6018,20000040,0) at dopipe+0x163 pipe_create sys/kern/sys_pipe.c:283 [inline] dopipe(ffff800020ed6018,20000040,0) at dopipe+0x163 sys/kern/sys_pipe.c:175 syscall(ffff800021fb1e20) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fb1e20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4cb18842bf0, count: 7 ddb{0}> trace x86_ipi_db(ffffffff82503ff0) 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(ffffffff826a4a58) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff826a4a58) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pipe_buffer_realloc(fffffd806fa48690,4000) at pipe_buffer_realloc+0x78 sys/kern/sys_pipe.c:254 dopipe(ffff800020ed6018,20000040,0) at dopipe+0x163 pipe_create sys/kern/sys_pipe.c:283 [inline] dopipe(ffff800020ed6018,20000040,0) at dopipe+0x163 sys/kern/sys_pipe.c:175 syscall(ffff800021fb1e20) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fb1e20) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x4cb18842bf0, count: -8 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(ffffffff8220b413) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021faaeb0,ffff8000009dd780,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff8000009dd538,ffff800021fab178,ffff800021faaeb0,ffff800021faadc0,ffff800021fab018) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fab160,ffff8000009dd538,ffff800021faaeb0,ffff800021faaed6,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff8000009dd538,ffff800021fab160,ffff800021fab018) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff8000009dd538,ffff800021fab160,ffff800021fab018,ffff800021fab040) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fab160,ffff800021fab250,ffff800021fab260,ffff800021fab240,ffff800021fab228,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000a28000,ffff800021fab378) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fab378,ffff800021fab384,4,0,ffff800000a28000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000a28000,fffffd8069421300) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000a28000,fffffd8069421300,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d sys/net/if.c:969 end trace frame: 0xffff800021fab4f0, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8220b413) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021faaeb0,ffff8000009dd780,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff8000009dd538,ffff800021fab178,ffff800021faaeb0,ffff800021faadc0,ffff800021fab018) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fab160,ffff8000009dd538,ffff800021faaeb0,ffff800021faaed6,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff8000009dd538,ffff800021fab160,ffff800021fab018) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff8000009dd538,ffff800021fab160,ffff800021fab018,ffff800021fab040) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fab160,ffff800021fab250,ffff800021fab260,ffff800021fab240,ffff800021fab228,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000a28000,ffff800021fab378) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fab378,ffff800021fab384,4,0,ffff800000a28000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000a28000,fffffd8069421300) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000a28000,fffffd8069421300,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000a28000,fffffd8069421300) at if_vinput+0x10d sys/net/if.c:969 tun_dev_write(5d01,ffff800021fab748,252,2) at tun_dev_write+0x1fc sys/net/if_tun.c:871 spec_write(ffff800021fab590) at spec_write+0xd4 sys/kern/spec_vnops.c:309 VOP_WRITE(fffffd806edd41a8,ffff800021fab748,11,fffffd807f7bfae0) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268 vn_write(fffffd80685f6bf8,ffff800021fab748,0) at vn_write+0x14e sys/kern/vfs_vnops.c:414 dofilewritev(ffff800020ed7398,f0,ffff800021fab748,0,ffff800021fab830) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff800020ed7398,ffff800021fab7e0,ffff800021fab830) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800021fab8b0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fab8b0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xd6b97431a0, count: -22