panic: unhandled af 0 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *197384 18609 0 0 0x4000000 1K syz-executor.3 516191 85079 0 0x2 0x4000000 0 syz-fuzzer db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82461a7f) at panic+0x177 sys/kern/subr_prf.c:202 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff80002457b220,ffff800000ea5218,0) at pf_addrcpy+0x9e sys/net/pf.c:413 pf_map_addr(0,ffff800000ea4fd0,ffff80002457b458,ffff80002457b220,ffff80002457b138,ffff80002457b300,319658e31e748bf9,ffff80002457b440) at pf_map_addr+0x3c3 pf_get_sport(ffff80002457b440,ffff800000ea4fd0,ffff80002457b220,ffff80002457b24e,0,0,bbc76b7296af55be) at pf_get_sport+0xc5 sys/net/pf_lb.c:161 pf_get_transaddr_af(ffff800000ea4fd0,ffff80002457b440,ffff80002457b300) at pf_get_transaddr_af+0x153 sys/net/pf_lb.c:756 pf_test_rule(ffff80002457b440,ffff80002457b538,ffff80002457b540,ffff80002457b530,ffff80002457b510,ffff80002457b54e,1c5d52d0384407a9) at pf_test_rule+0x480 sys/net/pf.c:3891 pf_test(2,1,ffff800000ccb800,ffff80002457b668) at pf_test+0x1d9e sys/net/pf.c:7032 ip_input_if(ffff80002457b668,ffff80002457b674,4,0,ffff800000ccb800) at ip_input_if+0x126 sys/netinet/ip_input.c:369 ipv4_input(ffff800000ccb800,fffffd806033b200) at ipv4_input+0x48 sys/netinet/ip_input.c:243 ether_input(ffff800000ccb800,fffffd806033b200) at ether_input+0x573 tun_dev_write(5d03,ffff80002457b9d8,0,2) at tun_dev_write+0x203 sys/net/if_tun.c:874 spec_write(ffff80002457b830) at spec_write+0xd4 sys/kern/spec_vnops.c:309 end trace frame: 0xffff80002457b8a0, 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 *cpu1: unhandled af 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82461a7f) at panic+0x177 sys/kern/subr_prf.c:202 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff80002457b220,ffff800000ea5218,0) at pf_addrcpy+0x9e sys/net/pf.c:413 pf_map_addr(0,ffff800000ea4fd0,ffff80002457b458,ffff80002457b220,ffff80002457b138,ffff80002457b300,319658e31e748bf9,ffff80002457b440) at pf_map_addr+0x3c3 pf_get_sport(ffff80002457b440,ffff800000ea4fd0,ffff80002457b220,ffff80002457b24e,0,0,bbc76b7296af55be) at pf_get_sport+0xc5 sys/net/pf_lb.c:161 pf_get_transaddr_af(ffff800000ea4fd0,ffff80002457b440,ffff80002457b300) at pf_get_transaddr_af+0x153 sys/net/pf_lb.c:756 pf_test_rule(ffff80002457b440,ffff80002457b538,ffff80002457b540,ffff80002457b530,ffff80002457b510,ffff80002457b54e,1c5d52d0384407a9) at pf_test_rule+0x480 sys/net/pf.c:3891 pf_test(2,1,ffff800000ccb800,ffff80002457b668) at pf_test+0x1d9e sys/net/pf.c:7032 ip_input_if(ffff80002457b668,ffff80002457b674,4,0,ffff800000ccb800) at ip_input_if+0x126 sys/netinet/ip_input.c:369 ipv4_input(ffff800000ccb800,fffffd806033b200) at ipv4_input+0x48 sys/netinet/ip_input.c:243 ether_input(ffff800000ccb800,fffffd806033b200) at ether_input+0x573 tun_dev_write(5d03,ffff80002457b9d8,0,2) at tun_dev_write+0x203 sys/net/if_tun.c:874 spec_write(ffff80002457b830) at spec_write+0xd4 sys/kern/spec_vnops.c:309 VOP_WRITE(fffffd806418be60,ffff80002457b9d8,11,fffffd807f7d7840) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 vn_write(fffffd8065d351e8,ffff80002457b9d8,0) at vn_write+0x157 sys/kern/vfs_vnops.c:414 dofilewritev(ffff80002123a7e8,c8,ffff80002457b9d8,0,ffff80002457bad0) at dofilewritev+0x19c sys/kern/sys_generic.c:380 sys_write(ffff80002123a7e8,ffff80002457ba70,ffff80002457bad0) at sys_write+0x83 sys/kern/sys_generic.c:300 syscall(ffff80002457bb40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002457bb40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa186972aea0, count: -20 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002457aec0 rbx 0xffff800020d39bff rdx 0 rcx 0 rax 0xffff80002123a7e8 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa53fe172a05f7670 r11 0xd9cb1b619831143a r12 0xffff800020d39a00 r13 0 r14 0 r15 0x1 rip 0xffffffff820b8e78 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80002457aeb0 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{1}> show proc PROC (syz-executor.3) pid=197384 stat=onproc flags process=0 proc=4000000 pri=81, usrpri=86, nice=20 forw=0xffffffffffffffff, list=0xffff80002123ba48,0xffffffff8287a1f0 process=0xffff8000212090b0 user=0xffff800024576000, vmspace=0xfffffd805d61c760 estcpu=36, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 43492 439962 14093 0 2 0 syz-executor.2 18609 429393 19923 0 2 0 syz-executor.3 18609 115268 19923 0 3 0x4000080 fsleep syz-executor.3 *18609 197384 19923 0 7 0x4000000 syz-executor.3 71436 379536 85079 0 3 0x82 nanoslp syz-executor.1 89452 201681 0 0 3 0x14280 nfsidl nfsio 30818 461939 0 0 3 0x14280 nfsidl nfsio 56023 357854 0 0 3 0x14280 nfsidl nfsio 40349 232041 0 0 3 0x14280 nfsidl nfsio 91086 447324 0 0 3 0x14280 nfsidl nfsio 23740 108319 0 0 3 0x14280 nfsidl nfsio 79784 64571 0 0 3 0x14280 nfsidl nfsio 22093 269600 0 0 3 0x14280 nfsidl nfsio 32182 461250 0 0 3 0x14280 nfsidl nfsio 33863 229190 0 0 3 0x14280 nfsidl nfsio 31079 365652 0 0 3 0x14280 nfsidl nfsio 13970 108744 0 0 3 0x14280 nfsidl nfsio 66281 295690 0 0 3 0x14280 nfsidl nfsio 84217 281264 0 0 3 0x14280 nfsidl nfsio 58068 481885 0 0 3 0x14280 nfsidl nfsio 15297 322536 0 0 3 0x14280 nfsidl nfsio 92552 342459 0 0 3 0x14280 nfsidl nfsio 22639 350645 0 0 3 0x14280 nfsidl nfsio 69377 69444 0 0 3 0x14280 nfsidl nfsio 95701 324983 0 0 3 0x14280 nfsidl nfsio 2960 214634 85079 0 2 0x2 syz-executor.0 19923 148304 85079 0 3 0x82 nanoslp syz-executor.3 14093 32681 85079 0 3 0x82 nanoslp syz-executor.2 5166 468239 1 0 3 0x100083 ttyopn getty 34816 84344 0 0 3 0x14200 bored sosplice 85079 379430 18199 0 3 0x82 thrsleep syz-fuzzer 85079 377494 18199 0 3 0x4000082 nanoslp syz-fuzzer 85079 518677 18199 0 3 0x4000082 thrsleep syz-fuzzer 85079 516191 18199 0 7 0x4000002 syz-fuzzer 85079 181025 18199 0 3 0x4000082 nanoslp syz-fuzzer 85079 59356 18199 0 3 0x4000082 thrsleep syz-fuzzer 85079 45034 18199 0 3 0x4000082 thrsleep syz-fuzzer 85079 468256 18199 0 3 0x4000082 thrsleep syz-fuzzer 18199 30630 31957 0 3 0x10008a sigsusp ksh 31957 523571 16287 0 3 0x9a poll sshd 16287 270854 1 0 3 0x88 poll sshd 54167 133817 76720 74 3 0x100092 bpf pflogd 76720 437363 1 0 3 0x80 netio pflogd 37165 275875 60591 73 3 0x100090 kqread syslogd 60591 198453 1 0 3 0x100082 netio syslogd 19645 304151 1 0 3 0x100080 kqread resolvd 33724 382160 61599 77 3 0x100092 kqread dhcpleased 4382 188065 61599 77 3 0x100092 kqread dhcpleased 61599 175914 1 0 3 0x80 kqread dhcpleased 87940 27230 0 0 3 0x14200 bored smr 35764 365218 0 0 2 0x14200 zerothread 96345 279069 0 0 3 0x14200 aiodoned aiodoned 14111 501962 0 0 3 0x14200 syncer update 71261 268223 0 0 3 0x14200 cleaner cleaner 24613 512690 0 0 3 0x14200 reaper reaper 12194 246050 0 0 3 0x14200 pgdaemon pagedaemon 90253 357527 0 0 3 0x14200 bored viomb 86992 199150 0 0 3 0x40014200 acpi0 acpi0 11157 56148 0 0 3 0x40014200 idle1 23145 27536 0 0 3 0x14200 bored softnet 38609 2570 0 0 3 0x14200 bored systqmp 52289 32685 0 0 3 0x14200 bored systq 71148 433608 0 0 3 0x40014200 bored softclock 21734 227029 0 0 3 0x40014200 idle0 1 514595 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 18609 (syz-executor.3) thread 0xffff80002123a7e8 (197384) exclusive rwlock pf_lock r = 0 (0xffffffff828263a0) #0 witness_lock+0x44d #1 pf_test+0x1d74 #2 ip_input_if+0x126 sys/netinet/ip_input.c:369 #3 ipv4_input+0x48 sys/netinet/ip_input.c:243 #4 ether_input+0x573 #5 tun_dev_write+0x203 sys/net/if_tun.c:874 #6 spec_write+0xd4 sys/kern/spec_vnops.c:309 #7 VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 #8 vn_write+0x157 sys/kern/vfs_vnops.c:414 #9 dofilewritev+0x19c sys/kern/sys_generic.c:380 #10 sys_write+0x83 sys/kern/sys_generic.c:300 #11 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #11 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #12 Xsyscall+0x128 exclusive rwlock netlock r = 0 (0xffffffff827bce40) #0 witness_lock+0x44d #1 tun_dev_write+0x1f8 sys/net/if_tun.c:873 #2 spec_write+0xd4 sys/kern/spec_vnops.c:309 #3 VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 #4 vn_write+0x157 sys/kern/vfs_vnops.c:414 #5 dofilewritev+0x19c sys/kern/sys_generic.c:380 #6 sys_write+0x83 sys/kern/sys_generic.c:300 #7 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #7 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #8 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829f0478) #0 witness_lock+0x44d #1 vn_write+0x42 sys/kern/vfs_vnops.c:399 #2 dofilewritev+0x19c sys/kern/sys_generic.c:380 #3 sys_write+0x83 sys/kern/sys_generic.c:300 #4 syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] #4 syscall+0x489 sys/arch/amd64/amd64/trap.c:585 #5 Xsyscall+0x128 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10210 6511K 7099K 78643K 54008 0 pcb 13 22K 24K 78643K 2984 0 rtable 196 28K 30K 78643K 8849 0 ifaddr 95 28K 32K 78643K 2936 0 sysctl 2 0K 2K 78643K 7 0 counters 48 34K 35K 78643K 562 0 ioctlops 0 0K 8K 78643K 11374 0 iov 0 0K 32K 78643K 2180 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 5 0 vnodes 1396 88K 88K 78643K 15526 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 203 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 4957 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12598 0 file desc 8 25K 49K 78643K 23279 0 sigio 0 0K 0K 78643K 351 0 proc 72 87K 111K 78643K 2781 0 subproc 52 3K 3K 78643K 792 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1625 0 in_multi 41 2K 3K 78643K 1993 0 ether_multi 1 0K 0K 78643K 303 0 mrt 1 0K 0K 78643K 95 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 247 1102K 1102K 78643K 247 0 exec 0 0K 2K 78643K 4518 0 pfkey data 0 0K 1K 78643K 6 0 tdb 3 0K 0K 78643K 3 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 623 1749K 1754K 78643K 298957 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1425 0 NDP 10 0K 1K 78643K 497 0 temp 123 4236K 8307K 78643K 259478 0 kqueue 13 15K 30K 78643K 951 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 plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 1850 0 1847 26 25 1 5 0 8 0 rtentry 112 1272 0 1221 2 0 2 2 0 8 0 unpcb 136 11628 0 11613 128 125 3 9 0 8 2 syncache 296 107 0 107 25 25 0 1 0 8 0 tcpqe 32 84 0 84 13 13 0 1 0 8 0 tcpcb 736 24516 0 24509 482 479 3 27 0 8 2 arp 120 147 0 137 1 0 1 1 0 8 0 inpcb 304 38295 0 38288 355 347 8 17 0 8 7 rttmr 72 30 0 30 10 10 0 1 0 8 0 nd6 48 316 0 307 1 0 1 1 0 8 0 pkpcb 40 48 0 48 14 14 0 1 0 8 0 kcovpl 48 60 0 56 1 0 1 1 0 8 0 ppxss 1248 80 0 80 17 17 0 1 0 8 0 pfstscr 40 206 0 206 11 11 0 1 0 8 0 pffrag 232 105 0 105 14 14 0 1 0 482 0 pffrnode 88 105 0 105 14 14 0 1 0 8 0 pffrent 40 1461 0 1461 14 14 0 1 0 8 0 pfosfp 40 2456 0 2012 5 0 5 5 0 8 0 pfosfpen 112 2456 0 1702 22 0 22 22 0 8 0 pfrktable 1344 2323 0 2292 19 16 3 4 0 8 0 pftag 88 133 0 125 2 1 1 1 0 8 0 pfqueue 264 90 0 14 9 3 6 6 0 8 0 pfstitem 24 103 0 101 1 0 1 1 0 8 0 pfstkey 112 372 0 370 2 1 1 2 0 8 0 pfstate 320 232 0 230 4 3 1 4 0 8 0 pfrule 1360 5939 0 5734 19 1 18 18 0 8 0 art_heap8 4096 5 0 4 3 2 1 3 0 8 0 art_heap4 256 6752 0 6511 48 32 16 19 0 8 0 art_table 32 6757 0 6515 3 0 3 3 0 8 0 art_node 16 1237 0 1193 1 0 1 1 0 8 0 sysvmsgpl 40 23 0 0 1 0 1 1 0 8 0 semapl 112 4955 0 4945 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 31936 0 30472 92 0 92 92 0 8 0 ffsino 272 31936 0 30472 98 0 98 98 0 8 0 nchpl 144 64651 0 63054 61 0 61 61 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 224 5926 0 0 349 0 349 349 0 8 0 namei 1024 235609 0 235609 5 4 1 1 0 8 1 percpumem 16 293 0 257 1 0 1 1 0 8 0 vcpupl 2048 356 0 0 45 0 45 45 0 8 0 vmpool 560 439 0 83 27 1 26 26 0 8 0 pfiaddrpl 120 971 0 899 4 1 3 3 0 8 0 scsiplug 72 17 0 17 5 5 0 1 0 8 0 scxspl 216 199867 0 199867 59 58 1 8 0 8 1 plimitpl 152 2378 0 2367 1 0 1 1 0 8 0 sigapl 424 23434 0 23378 9 2 7 7 0 8 0 futexpl 64 198117 0 198116 6 5 1 1 0 8 0 knotepl 112 319 0 0 4 0 4 4 0 8 0 kqueuepl 216 4533 0 4519 104 103 1 7 0 8 0 pipepl 336 4207 0 4191 128 126 2 10 0 8 0 fdescpl 496 23336 0 23315 5 2 3 4 0 8 0 filepl 152 175812 0 175661 279 269 10 16 0 8 4 lockfpl 104 9726 0 9724 17 15 2 2 0 8 1 lockfspl 48 2641 0 2639 1 0 1 1 0 8 0 sessionpl 144 77 0 64 1 0 1 1 0 8 0 pgrppl 48 150 0 137 1 0 1 1 0 8 0 ucredpl 96 19782 0 19769 1 0 1 1 0 8 0 zombiepl 144 23378 0 23377 2 1 1 1 0 8 0 processpl 1064 23434 0 23377 6 2 4 4 0 8 0 procpl 672 68966 0 68900 33 26 7 8 0 8 1 srpgc 96 63 0 63 14 14 0 1 0 8 0 sosppl 168 550 0 550 33 32 1 1 0 8 1 sockpl 480 51880 0 51855 948 933 15 34 0 8 11 mcl64k 65536 57 0 0 4 1 3 3 0 8 0 mcl16k 16384 27 0 0 4 2 2 3 0 8 0 mcl12k 12288 57 0 0 3 1 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 25 0 0 4 1 3 3 0 8 0 mcl4k 4096 41 0 0 4 1 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 416 0 0 24 2 22 22 0 8 0 mtagpl 96 1124 0 0 10 1 9 9 0 8 0 mbufpl 256 2369 0 0 81 1 80 80 0 8 0 bufpl 288 44470 0 38125 454 0 454 454 0 8 0 anonpl 24 6712295 0 6692367 471 339 132 186 0 186 0 amapchunkpl 152 735409 0 734674 196 164 32 61 0 158 0 amappl16 200 59461 0 58701 218 177 41 53 0 8 0 amappl15 192 3775 0 3773 6 5 1 1 0 8 0 amappl14 184 4131 0 4128 1 0 1 1 0 8 0 amappl13 176 5820 0 5817 1 0 1 1 0 8 0 amappl12 168 3188 0 3185 1 0 1 1 0 8 0 amappl11 160 2640 0 2623 1 0 1 1 0 8 0 amappl10 152 1887 0 1878 1 0 1 1 0 8 0 amappl9 144 1870 0 1868 1 0 1 1 0 8 0 amappl8 136 3718 0 3612 4 0 4 4 0 8 0 amappl7 128 2336 0 2322 1 0 1 1 0 8 0 amappl6 120 1884 0 1862 1 0 1 1 0 8 0 amappl5 112 19305 0 19282 1 0 1 1 0 8 0 amappl4 104 7773 0 7744 1 0 1 1 0 8 0 amappl3 96 6717 0 6693 1 0 1 1 0 8 0 amappl2 88 8409 0 8352 13 11 2 2 0 8 0 amappl1 80 427457 0 426978 13 2 11 13 0 8 0 amappl 88 297058 0 296740 10 2 8 8 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 23775 0 23398 3 0 3 3 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 23775 0 23398 3 0 3 3 0 8 0 vmmpekpl 168 159432 0 159357 6 2 4 4 0 8 0 vmmpepl 168 2128422 0 2125463 708 560 148 160 0 357 13 vmsppl 368 23774 0 23398 35 0 35 35 0 8 0 rwobjpl 56 518096 0 510248 139 27 112 114 0 8 0 pdppl 4096 47558 0 47152 479 69 410 410 0 8 4 pvpl 32 11209054 0 11186970 877 674 203 312 0 265 9 pmappl 248 23774 0 23398 24 0 24 24 0 8 0 extentpl 40 57 0 38 1 0 1 1 0 8 0 phpool 112 2015 0 723 38 0 38 38 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffffffff82779ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff829f0270) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829f0270) at __mp_lock+0x129 sys/kern/kern_lock.c:147 selwakeup(fffffd806fa86dd0) at selwakeup+0x16 sys/kern/sys_generic.c:884 pipe_write(fffffd806e570860,ffff80002122f258,0) at pipe_write+0x89e pipeselwakeup sys/kern/sys_pipe.c:391 [inline] pipe_write(fffffd806e570860,ffff80002122f258,0) at pipe_write+0x89e sys/kern/sys_pipe.c:678 dofilewritev(ffff800021192d28,1,ffff80002122f258,0,ffff80002122f350) at dofilewritev+0x19c sys/kern/sys_generic.c:380 sys_write(ffff800021192d28,ffff80002122f2f0,ffff80002122f350) at sys_write+0x83 sys/kern/sys_generic.c:300 syscall(ffff80002122f3c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002122f3c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x22b244b30, count: 5 ddb{0}> trace x86_ipi_db(ffffffff82779ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff829f0270) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff829f0270) at __mp_lock+0x129 sys/kern/kern_lock.c:147 selwakeup(fffffd806fa86dd0) at selwakeup+0x16 sys/kern/sys_generic.c:884 pipe_write(fffffd806e570860,ffff80002122f258,0) at pipe_write+0x89e pipeselwakeup sys/kern/sys_pipe.c:391 [inline] pipe_write(fffffd806e570860,ffff80002122f258,0) at pipe_write+0x89e sys/kern/sys_pipe.c:678 dofilewritev(ffff800021192d28,1,ffff80002122f258,0,ffff80002122f350) at dofilewritev+0x19c sys/kern/sys_generic.c:380 sys_write(ffff800021192d28,ffff80002122f2f0,ffff80002122f350) at sys_write+0x83 sys/kern/sys_generic.c:300 syscall(ffff80002122f3c0) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002122f3c0) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x22b244b30, count: -10 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:440 panic(ffffffff82461a7f) at panic+0x177 sys/kern/subr_prf.c:202 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff80002457b220,ffff800000ea5218,0) at pf_addrcpy+0x9e sys/net/pf.c:413 pf_map_addr(0,ffff800000ea4fd0,ffff80002457b458,ffff80002457b220,ffff80002457b138,ffff80002457b300,319658e31e748bf9,ffff80002457b440) at pf_map_addr+0x3c3 pf_get_sport(ffff80002457b440,ffff800000ea4fd0,ffff80002457b220,ffff80002457b24e,0,0,bbc76b7296af55be) at pf_get_sport+0xc5 sys/net/pf_lb.c:161 pf_get_transaddr_af(ffff800000ea4fd0,ffff80002457b440,ffff80002457b300) at pf_get_transaddr_af+0x153 sys/net/pf_lb.c:756 pf_test_rule(ffff80002457b440,ffff80002457b538,ffff80002457b540,ffff80002457b530,ffff80002457b510,ffff80002457b54e,1c5d52d0384407a9) at pf_test_rule+0x480 sys/net/pf.c:3891 pf_test(2,1,ffff800000ccb800,ffff80002457b668) at pf_test+0x1d9e sys/net/pf.c:7032 ip_input_if(ffff80002457b668,ffff80002457b674,4,0,ffff800000ccb800) at ip_input_if+0x126 sys/netinet/ip_input.c:369 ipv4_input(ffff800000ccb800,fffffd806033b200) at ipv4_input+0x48 sys/netinet/ip_input.c:243 ether_input(ffff800000ccb800,fffffd806033b200) at ether_input+0x573 tun_dev_write(5d03,ffff80002457b9d8,0,2) at tun_dev_write+0x203 sys/net/if_tun.c:874 spec_write(ffff80002457b830) at spec_write+0xd4 sys/kern/spec_vnops.c:309 end trace frame: 0xffff80002457b8a0, count: 0 ddb{1}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:440 panic(ffffffff82461a7f) at panic+0x177 sys/kern/subr_prf.c:202 unhandled_af(0) at unhandled_af+0x16 pf_addrcpy(ffff80002457b220,ffff800000ea5218,0) at pf_addrcpy+0x9e sys/net/pf.c:413 pf_map_addr(0,ffff800000ea4fd0,ffff80002457b458,ffff80002457b220,ffff80002457b138,ffff80002457b300,319658e31e748bf9,ffff80002457b440) at pf_map_addr+0x3c3 pf_get_sport(ffff80002457b440,ffff800000ea4fd0,ffff80002457b220,ffff80002457b24e,0,0,bbc76b7296af55be) at pf_get_sport+0xc5 sys/net/pf_lb.c:161 pf_get_transaddr_af(ffff800000ea4fd0,ffff80002457b440,ffff80002457b300) at pf_get_transaddr_af+0x153 sys/net/pf_lb.c:756 pf_test_rule(ffff80002457b440,ffff80002457b538,ffff80002457b540,ffff80002457b530,ffff80002457b510,ffff80002457b54e,1c5d52d0384407a9) at pf_test_rule+0x480 sys/net/pf.c:3891 pf_test(2,1,ffff800000ccb800,ffff80002457b668) at pf_test+0x1d9e sys/net/pf.c:7032 ip_input_if(ffff80002457b668,ffff80002457b674,4,0,ffff800000ccb800) at ip_input_if+0x126 sys/netinet/ip_input.c:369 ipv4_input(ffff800000ccb800,fffffd806033b200) at ipv4_input+0x48 sys/netinet/ip_input.c:243 ether_input(ffff800000ccb800,fffffd806033b200) at ether_input+0x573 tun_dev_write(5d03,ffff80002457b9d8,0,2) at tun_dev_write+0x203 sys/net/if_tun.c:874 spec_write(ffff80002457b830) at spec_write+0xd4 sys/kern/spec_vnops.c:309 VOP_WRITE(fffffd806418be60,ffff80002457b9d8,11,fffffd807f7d7840) at VOP_WRITE+0xbf sys/kern/vfs_vops.c:245 vn_write(fffffd8065d351e8,ffff80002457b9d8,0) at vn_write+0x157 sys/kern/vfs_vnops.c:414 dofilewritev(ffff80002123a7e8,c8,ffff80002457b9d8,0,ffff80002457bad0) at dofilewritev+0x19c sys/kern/sys_generic.c:380 sys_write(ffff80002123a7e8,ffff80002457ba70,ffff80002457bad0) at sys_write+0x83 sys/kern/sys_generic.c:300 syscall(ffff80002457bb40) at syscall+0x489 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff80002457bb40) at syscall+0x489 sys/arch/amd64/amd64/trap.c:585 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xa186972aea0, count: -20