panic: unhandled af 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 403014 39328 0 0 0 0 syz-executor.0 * 693 39328 0 0 0x4000000 1K syz-executor.0 db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f2765) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021fbb0f0,ffff800000b867a8,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff800000b86560,ffff800021fbb3b8,ffff800021fbb0f0,ffff800021fbb000,ffff800021fbb258) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fbb3a0,ffff800000b86560,ffff800021fbb0f0,ffff800021fbb116,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258,ffff800021fbb280) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fbb3a0,ffff800021fbb490,ffff800021fbb4a0,ffff800021fbb480,ffff800021fbb468,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000ac3000,ffff800021fbb5b8) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fbb5b8,ffff800021fbb5c4,4,0,ffff800000ac3000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000ac3000,fffffd8064734a00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000ac3000,fffffd8064734a00,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d sys/net/if.c:969 end trace frame: 0xffff800021fbb730, 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(ffffffff823f2765) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021fbb0f0,ffff800000b867a8,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff800000b86560,ffff800021fbb3b8,ffff800021fbb0f0,ffff800021fbb000,ffff800021fbb258) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fbb3a0,ffff800000b86560,ffff800021fbb0f0,ffff800021fbb116,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258,ffff800021fbb280) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fbb3a0,ffff800021fbb490,ffff800021fbb4a0,ffff800021fbb480,ffff800021fbb468,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000ac3000,ffff800021fbb5b8) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fbb5b8,ffff800021fbb5c4,4,0,ffff800000ac3000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000ac3000,fffffd8064734a00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000ac3000,fffffd8064734a00,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d sys/net/if.c:969 tun_dev_write(5d00,ffff800021fbb988,f9,2) at tun_dev_write+0x1fc sys/net/if_tun.c:871 spec_write(ffff800021fbb7d0) at spec_write+0xd4 sys/kern/spec_vnops.c:309 VOP_WRITE(fffffd806e8cc5b8,ffff800021fbb988,11,fffffd807f7bf600) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268 vn_write(fffffd8067defa30,ffff800021fbb988,0) at vn_write+0x14e sys/kern/vfs_vnops.c:414 dofilewritev(ffff8000230fd138,f0,ffff800021fbb988,0,ffff800021fbba70) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff8000230fd138,ffff800021fbba20,ffff800021fbba70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800021fbbaf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fbbaf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bd23aee450, count: -22 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff800021fbad90 rbx 0xffff800021fbae40 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81e8362f kprintf+0x16f r9 0x1 r10 0x2 r11 0x94295fcc6d2d3774 r12 0x3000000008 r13 0xffff800021fbada0 r14 0x100 r15 0x1 rip 0xffffffff81bf4788 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800021fbad80 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.0) pid=693 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff8000230fd618,0xffffffff829081f8 process=0xffff800020e28bb8 user=0xffff800021fb6000, vmspace=0xfffffd8063fbca28 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 39328 403014 78727 0 7 0 syz-executor.0 *39328 693 78727 0 7 0x4000000 syz-executor.0 51012 416011 1 0 3 0x82 nanosleep getty 38335 175746 0 0 3 0x14200 acct acct 34420 369187 0 0 3 0x14280 nfsidl nfsio 50261 134578 0 0 3 0x14280 nfsidl nfsio 86761 136536 0 0 3 0x14280 nfsidl nfsio 54756 364732 0 0 3 0x14280 nfsidl nfsio 13596 494490 0 0 3 0x14280 nfsidl nfsio 49018 219497 0 0 3 0x14280 nfsidl nfsio 69633 462873 0 0 3 0x14280 nfsidl nfsio 37339 13135 0 0 3 0x14280 nfsidl nfsio 48610 222 0 0 3 0x14280 nfsidl nfsio 67446 337826 0 0 3 0x14280 nfsidl nfsio 50911 391909 0 0 3 0x14280 nfsidl nfsio 84612 414789 0 0 3 0x14280 nfsidl nfsio 69008 378353 0 0 3 0x14280 nfsidl nfsio 40886 391345 0 0 3 0x14280 nfsidl nfsio 52059 32543 0 0 3 0x14280 nfsidl nfsio 90810 410701 0 0 3 0x14280 nfsidl nfsio 71930 408730 0 0 3 0x14280 nfsidl nfsio 74946 27499 0 0 3 0x14280 nfsidl nfsio 33019 234199 0 0 3 0x14280 nfsidl nfsio 35132 92054 0 0 3 0x14280 nfsidl nfsio 44220 401339 0 0 3 0x14200 bored sosplice 82374 383312 44914 0 3 0x82 piperd syz-executor.1 78727 153735 44914 0 3 0x82 nanosleep syz-executor.0 44914 511513 71193 0 3 0x82 kqread syz-fuzzer 44914 440909 71193 0 3 0x4000082 nanosleep syz-fuzzer 44914 105874 71193 0 3 0x4000082 thrsleep syz-fuzzer 44914 489791 71193 0 3 0x4000082 thrsleep syz-fuzzer 44914 321638 71193 0 3 0x4000082 thrsleep syz-fuzzer 44914 326879 71193 0 3 0x4000082 thrsleep syz-fuzzer 44914 353046 71193 0 3 0x4000082 thrsleep syz-fuzzer 44914 501628 71193 0 3 0x4000082 thrsleep syz-fuzzer 44914 88583 71193 0 2 0x4000002 syz-fuzzer 44914 12540 71193 0 3 0x4000082 thrsleep syz-fuzzer 71193 51233 52027 0 3 0x10008a pause ksh 52027 12806 87682 0 3 0x92 select sshd 87682 168043 1 0 3 0x80 select sshd 99209 370291 88092 74 3 0x100092 bpf pflogd 88092 121115 1 0 3 0x80 netio pflogd 51546 457497 24629 73 3 0x100090 kqread syslogd 24629 420028 1 0 3 0x100082 netio syslogd 48762 350262 1 77 3 0x100090 poll dhclient 29203 156697 1 0 3 0x80 poll dhclient 16138 464102 0 0 3 0x14200 bored smr 87371 448780 0 0 2 0x14200 zerothread 59232 443351 0 0 3 0x14200 aiodoned aiodoned 53249 9932 0 0 3 0x14200 syncer update 22978 84914 0 0 3 0x14200 cleaner cleaner 24852 317570 0 0 3 0x14200 reaper reaper 16754 503803 0 0 3 0x14200 pgdaemon pagedaemon 87897 345782 0 0 3 0x14200 bored crynlk 21711 487584 0 0 3 0x14200 bored crypto 23023 213449 0 0 3 0x40014200 acpi0 acpi0 13426 223798 0 0 3 0x40014200 idle1 46883 62989 0 0 3 0x14200 bored softnet 21977 172539 0 0 3 0x14200 bored systqmp 45504 432646 0 0 3 0x14200 bored systq 83341 277489 0 0 3 0x40014200 bored softclock 21100 320064 0 0 3 0x40014200 idle0 1 145659 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 39328 (syz-executor.0) thread 0xffff8000230fd138 (693) exclusive rwlock netlock r = 0 (0xffffffff826e7388) #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 (0xffffffff828f4e08) #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 9562 6439K 7007K 78643K 12760 0 pcb 13 8K 8K 78643K 247 0 rtable 115 7K 10K 78643K 1253 0 ifaddr 128 25K 26K 78643K 510 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 107 0 ioctlops 0 0K 4K 78643K 2095 0 iov 0 0K 24K 78643K 239 0 mount 1 1K 1K 78643K 1 0 vnodes 1216 76K 77K 78643K 2399 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 37 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 393 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 2448 0 sigio 0 0K 0K 78643K 19 0 proc 62 63K 95K 78643K 604 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 125 0 in_multi 130 5K 5K 78643K 378 0 ether_multi 1 0K 0K 78643K 42 0 mrt 0 0K 0K 78643K 6 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 373 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 171 219K 219K 78643K 8870 0 UVM aobj 86 5K 5K 78643K 98 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 219 0 NDP 17 0K 0K 78643K 78 0 temp 161 3875K 3957K 78643K 35871 0 kqueue 10 18K 34K 78643K 1538 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 31 0 19 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 114 0 112 1 0 1 1 0 8 0 rtentry 112 190 0 151 2 0 2 2 0 8 0 unpcb 120 1009 0 998 1 0 1 1 0 8 0 syncache 264 22 0 22 7 7 0 1 0 8 0 tcpqe 32 102 0 102 4 4 0 1 0 8 0 tcpcb 544 594 0 590 3 2 1 2 0 8 0 inpcb 280 7279 0 7270 9 7 2 3 0 8 1 nd6 48 39 0 37 1 0 1 1 0 8 0 pkpcb 40 11 0 11 4 4 0 1 0 8 0 ppxss 1128 2 0 2 2 2 0 1 0 8 0 pfstscr 40 2 0 1 1 0 1 1 0 8 0 pffrag 232 8 0 8 6 6 0 1 0 482 0 pffrnode 88 8 0 8 6 6 0 1 0 8 0 pffrent 40 59 0 59 6 6 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 227 0 220 7 6 1 1 0 8 0 pftag 88 13 0 12 1 0 1 1 0 8 0 pfqueue 264 2 0 2 1 1 0 1 0 8 0 pfstitem 24 75 0 71 1 0 1 1 0 8 0 pfstkey 112 77 0 73 1 0 1 1 0 8 0 pfstate 328 75 0 72 3 2 1 3 0 8 0 pfrule 1360 94 0 67 7 4 3 3 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 999 0 824 23 9 14 17 0 8 0 art_table 32 1001 0 824 3 0 3 3 0 8 0 art_node 16 185 0 154 1 0 1 1 0 8 0 sysvmsgpl 40 78 0 38 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 391 0 381 1 0 1 1 0 8 0 shmpl 112 96 0 13 3 0 3 3 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5123 0 3729 90 1 89 89 0 8 0 ffsino 272 5123 0 3729 94 0 94 94 0 8 0 nchpl 144 8419 0 6818 60 0 60 60 0 8 0 uvmvnodes 72 5791 0 0 106 0 106 106 0 8 0 vnodes 208 5791 0 0 305 0 305 305 0 8 0 namei 1024 22653 0 22653 2 1 1 1 0 8 1 percpumem 16 64 0 32 1 0 1 1 0 8 0 vcpupl 1984 19 0 0 3 0 3 3 0 8 0 vmpool 560 33 0 14 3 1 2 2 0 8 0 pfiaddrpl 120 63 0 58 7 6 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 24136 0 24136 20 19 1 7 0 8 1 plimitpl 152 142 0 134 1 0 1 1 0 8 0 sigapl 424 2689 0 2636 9 3 6 7 0 8 0 futexpl 56 42984 0 42984 6 5 1 1 0 8 1 knotepl 112 2074 0 2054 2 1 1 2 0 8 0 kqueuepl 144 2749 0 2735 1 0 1 1 0 8 0 pipelkpl 48 364 0 354 1 0 1 1 0 8 0 pipepl 120 728 0 709 1 0 1 1 0 8 0 fdescpl 496 2650 0 2634 3 0 3 3 0 8 0 filepl 152 19547 0 19446 10 5 5 6 0 8 1 lockfpl 104 356 0 355 1 0 1 1 0 8 0 lockfspl 48 122 0 121 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 39 0 29 1 0 1 1 0 8 0 ucredpl 96 1148 0 1139 1 0 1 1 0 8 0 zombiepl 144 2636 0 2636 5 4 1 1 0 8 1 processpl 984 2689 0 2636 7 0 7 7 0 8 0 procpl 624 7984 0 7921 6 0 6 6 0 8 0 sosppl 128 894 0 893 6 5 1 1 0 8 0 sockpl 400 8419 0 8398 19 15 4 6 0 8 1 mcl64k 65536 13 0 0 2 0 2 2 0 8 0 mcl16k 16384 8 0 0 1 0 1 1 0 8 0 mcl12k 12288 18 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 0 8 0 mcl8k 8192 7 0 0 1 0 1 1 0 8 0 mcl4k 4096 11 0 0 2 0 2 2 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 185 0 0 20 2 18 20 0 8 0 mtagpl 80 107 0 0 2 0 2 2 0 8 0 mbufpl 256 673 0 0 33 1 32 32 0 8 0 bufpl 280 7370 0 1135 446 0 446 446 0 8 0 anonpl 16 229930 0 213114 132 47 85 85 0 124 13 amapchunkpl 152 15338 0 15182 35 27 8 20 0 158 0 amappl16 192 11681 0 10738 100 44 56 60 0 8 8 amappl15 184 998 0 996 1 0 1 1 0 8 0 amappl14 176 1446 0 1436 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 1429 0 1426 1 0 1 1 0 8 0 amappl11 152 57 0 42 1 0 1 1 0 8 0 amappl10 144 18 0 12 1 0 1 1 0 8 0 amappl9 136 389 0 387 1 0 1 1 0 8 0 amappl8 128 411 0 360 2 0 2 2 0 8 0 amappl7 120 120 0 108 1 0 1 1 0 8 0 amappl6 112 23 0 20 1 0 1 1 0 8 0 amappl5 104 2563 0 2545 1 0 1 1 0 8 0 amappl4 96 523 0 493 1 0 1 1 0 8 0 amappl3 88 193 0 188 1 0 1 1 0 8 0 amappl2 80 22903 0 22828 2 0 2 2 0 8 0 amappl1 72 63631 0 63184 23 13 10 18 0 8 0 amappl 80 8242 0 8182 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 97 0 12 2 0 2 2 0 8 0 uaddrrnd 24 2683 0 2648 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2683 0 2648 1 0 1 1 0 8 0 vmmpekpl 168 22987 0 22947 3 1 2 3 0 8 0 vmmpepl 168 323145 0 320978 157 51 106 108 0 357 7 vmsppl 368 2682 0 2648 4 0 4 4 0 8 0 pdppl 4096 5373 0 5315 8 0 8 8 0 8 0 pvpl 32 652660 0 633113 297 101 196 200 0 265 31 pmappl 232 2682 0 2648 5 2 3 3 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 322 0 37 9 0 9 9 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff826f1ff0) 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 end of kernel end trace frame: 0x7f7ffffe0c60, count: 12 ddb{0}> trace x86_ipi_db(ffffffff826f1ff0) 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 end of kernel end trace frame: 0x7f7ffffe0c60, count: -3 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(ffffffff823f2765) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021fbb0f0,ffff800000b867a8,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff800000b86560,ffff800021fbb3b8,ffff800021fbb0f0,ffff800021fbb000,ffff800021fbb258) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fbb3a0,ffff800000b86560,ffff800021fbb0f0,ffff800021fbb116,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258,ffff800021fbb280) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fbb3a0,ffff800021fbb490,ffff800021fbb4a0,ffff800021fbb480,ffff800021fbb468,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000ac3000,ffff800021fbb5b8) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fbb5b8,ffff800021fbb5c4,4,0,ffff800000ac3000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000ac3000,fffffd8064734a00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000ac3000,fffffd8064734a00,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d sys/net/if.c:969 end trace frame: 0xffff800021fbb730, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823f2765) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff800021fbb0f0,ffff800000b867a8,0) at pf_addrcpy+0x99 sys/net/pf.c:409 pf_map_addr(0,ffff800000b86560,ffff800021fbb3b8,ffff800021fbb0f0,ffff800021fbb000,ffff800021fbb258) at pf_map_addr+0x3f7 sys/net/pf_lb.c:393 pf_get_sport(ffff800021fbb3a0,ffff800000b86560,ffff800021fbb0f0,ffff800021fbb116,0,0) at pf_get_sport+0xc7 sys/net/pf_lb.c:159 pf_get_transaddr_af(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258) at pf_get_transaddr_af+0x154 sys/net/pf_lb.c:733 pf_get_transaddr(ffff800000b86560,ffff800021fbb3a0,ffff800021fbb258,ffff800021fbb280) at pf_get_transaddr+0x89 sys/net/pf_lb.c:657 pf_test_rule(ffff800021fbb3a0,ffff800021fbb490,ffff800021fbb4a0,ffff800021fbb480,ffff800021fbb468,3) at pf_test_rule+0x495 sys/net/pf.c:3822 pf_test(2,1,ffff800000ac3000,ffff800021fbb5b8) at pf_test+0x1909 sys/net/pf.c:7101 ip_input_if(ffff800021fbb5b8,ffff800021fbb5c4,4,0,ffff800000ac3000) at ip_input_if+0x59e sys/netinet/ip_input.c:316 ipv4_input(ffff800000ac3000,fffffd8064734a00) at ipv4_input+0x48 sys/netinet/ip_input.c:215 ether_input(ffff800000ac3000,fffffd8064734a00,0) at ether_input+0x345 sys/net/if_ethersubr.c:461 if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d if_ih_input sys/net/if.c:908 [inline] if_vinput(ffff800000ac3000,fffffd8064734a00) at if_vinput+0x10d sys/net/if.c:969 tun_dev_write(5d00,ffff800021fbb988,f9,2) at tun_dev_write+0x1fc sys/net/if_tun.c:871 spec_write(ffff800021fbb7d0) at spec_write+0xd4 sys/kern/spec_vnops.c:309 VOP_WRITE(fffffd806e8cc5b8,ffff800021fbb988,11,fffffd807f7bf600) at VOP_WRITE+0xc6 sys/kern/vfs_vops.c:268 vn_write(fffffd8067defa30,ffff800021fbb988,0) at vn_write+0x14e sys/kern/vfs_vnops.c:414 dofilewritev(ffff8000230fd138,f0,ffff800021fbb988,0,ffff800021fbba70) at dofilewritev+0x1b6 sys/kern/sys_generic.c:365 sys_write(ffff8000230fd138,ffff800021fbba20,ffff800021fbba70) at sys_write+0x83 sys/kern/sys_generic.c:285 syscall(ffff800021fbbaf0) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021fbbaf0) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7bd23aee450, count: -22