panic: unhandled af 178 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *368636 83464 0 0x14000 0x200 0 softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d6876) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b2) at unhandled_af+0x16 pf_build_tcp(ffffffff8282f398,b2,fffffd805550bef0,fffffd805550bee0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff82814f80) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic unhandled af 178 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d6876) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b2) at unhandled_af+0x16 pf_build_tcp(ffffffff8282f398,b2,fffffd805550bef0,fffffd805550bee0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff82814f80) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -8 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff80001d677f80 rbx 0xffff80001d678030 rdx 0x2 rcx 0 rax 0x1 r8 0xffffffff81c7258f kprintf+0x15f r9 0x1 r10 0x2 r11 0x636b6d84ac7fbd9c r12 0x3000000008 r13 0xffff80001d677f90 r14 0x100 r15 0x1 rip 0xffffffff81726828 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff80001d677f70 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softnet) pid=368636 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff80001d651270,0xffff80001d6519d0 process=0xffff8000ffffeac8 user=0xffff80001d673000, vmspace=0xffffffff827d36c8 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 70511 209734 59312 0 2 0 syz-executor.1 70511 433246 59312 0 2 0x4000000 syz-executor.1 94535 114655 1 0 3 0x100083 ttyin getty 67849 89377 0 0 3 0x14280 nfsidl nfsio 92779 128690 0 0 3 0x14280 nfsidl nfsio 23441 162207 0 0 3 0x14280 nfsidl nfsio 32880 277206 0 0 3 0x14280 nfsidl nfsio 21514 323498 0 0 3 0x14280 nfsidl nfsio 84819 86760 0 0 3 0x14280 nfsidl nfsio 18495 473943 0 0 3 0x14280 nfsidl nfsio 82594 41457 0 0 3 0x14280 nfsidl nfsio 9138 111628 0 0 3 0x14280 nfsidl nfsio 75461 138902 0 0 3 0x14280 nfsidl nfsio 79606 221124 0 0 3 0x14280 nfsidl nfsio 48167 402372 0 0 3 0x14280 nfsidl nfsio 39629 479926 0 0 3 0x14280 nfsidl nfsio 30315 390745 0 0 3 0x14280 nfsidl nfsio 41952 45219 0 0 3 0x14280 nfsidl nfsio 40829 131467 0 0 3 0x14280 nfsidl nfsio 75783 240412 0 0 3 0x14280 nfsidl nfsio 79794 357094 0 0 3 0x14280 nfsidl nfsio 42368 326735 0 0 3 0x14280 nfsidl nfsio 9314 16153 0 0 3 0x14280 nfsidl nfsio 81117 396028 0 0 3 0x14200 bored sosplice 71845 505193 42876 0 3 0x82 piperd syz-executor.0 59312 220509 42876 0 3 0x82 nanosleep syz-executor.1 42876 303882 73482 0 3 0x82 thrsleep syz-fuzzer 42876 354433 73482 0 3 0x4000082 nanosleep syz-fuzzer 42876 220211 73482 0 3 0x4000082 thrsleep syz-fuzzer 42876 324168 73482 0 3 0x4000082 thrsleep syz-fuzzer 42876 493516 73482 0 2 0x4000002 syz-fuzzer 42876 156136 73482 0 3 0x4000082 thrsleep syz-fuzzer 42876 41733 73482 0 3 0x4000082 thrsleep syz-fuzzer 73482 135220 37565 0 3 0x10008a pause ksh 37565 2578 28085 0 3 0x92 select sshd 28085 447844 1 0 3 0x80 select sshd 75882 47188 76685 73 3 0x100090 kqread syslogd 76685 7474 1 0 3 0x100082 netio syslogd 36364 478094 1 77 3 0x100090 poll dhclient 36621 460539 1 0 3 0x80 poll dhclient 87414 265653 0 0 3 0x14200 bored smr 8725 329347 0 0 2 0x14200 zerothread 43937 26181 0 0 3 0x14200 aiodoned aiodoned 38513 207127 0 0 3 0x14200 syncer update 95675 429897 0 0 3 0x14200 cleaner cleaner 40290 197761 0 0 3 0x14200 reaper reaper 17344 485296 0 0 3 0x14200 pgdaemon pagedaemon 16833 409378 0 0 3 0x14200 bored crynlk 3353 189006 0 0 3 0x14200 bored crypto 64639 246037 0 0 3 0x40014200 acpi0 acpi0 *83464 368636 0 0 7 0x14200 softnet 57803 191314 0 0 3 0x14200 bored systqmp 11419 157943 0 0 3 0x14200 bored systq 47107 316169 0 0 3 0x40014200 bored softclock 87803 308641 0 0 3 0x40014200 idle0 1 168142 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9473 6333K 7497K 78643K 13608 0 pcb 13 8K 8K 78643K 35 0 rtable 134 6K 8K 78643K 576 0 ifaddr 62 14K 14K 78643K 327 0 sysctl 2 0K 0K 78643K 2 0 counters 21 16K 16K 78643K 22 0 ioctlops 0 0K 4K 78643K 906 0 iov 0 0K 16K 78643K 46 0 mount 1 1K 1K 78643K 1 0 vnodes 1227 77K 77K 78643K 1919 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 8 0 VM map 2 0K 0K 78643K 2 0 sem 12 1K 1K 78643K 96 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1809 195K 288K 78643K 12938 0 file desc 5 13K 25K 78643K 1648 0 sigio 0 0K 0K 78643K 10 0 proc 49 38K 54K 78643K 373 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 12 0 in_multi 33 2K 2K 78643K 379 0 ether_multi 1 0K 0K 78643K 3 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 199 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 125 23K 25K 78643K 4376 0 UVM aobj 24 2K 2K 78643K 24 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 12 0 NDP 8 0K 0K 78643K 13 0 temp 106 3857K 3921K 78643K 6721 0 kqueue 3 4K 8K 78643K 9 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 7 0 0 1 0 1 1 0 8 0 rtpcb 80 31 0 29 1 0 1 1 0 8 0 rtentry 112 154 0 102 2 0 2 2 0 8 0 unpcb 120 226 0 217 1 0 1 1 0 8 0 syncache 264 4 0 4 1 1 0 1 0 8 0 tcpqe 32 98 0 98 1 1 0 1 0 8 0 tcpcb 544 342 0 338 1 0 1 1 0 8 0 ipq 40 2 0 2 1 1 0 1 0 8 0 ipqe 40 4 0 4 1 1 0 1 0 8 0 inpcb 296 2198 0 2191 4 3 1 2 0 8 0 nd6 48 103 0 92 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 pfstscr 40 40 0 40 2 2 0 1 0 8 0 pfosfp 40 2 0 1 1 0 1 1 0 8 0 pfosfpen 112 2 0 1 1 0 1 1 0 8 0 pfrktable 1344 68 0 62 3 2 1 1 0 8 0 pftag 88 19 0 14 1 0 1 1 0 8 0 pfqueue 264 4 0 2 1 0 1 1 0 8 0 pfstitem 24 132 0 130 1 0 1 1 0 8 0 pfstkey 112 581 0 579 1 0 1 1 0 8 0 pfstate 328 406 0 405 1 0 1 1 0 8 0 pfrule 1360 22 0 14 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 378 0 124 23 7 16 23 0 8 0 art_table 32 379 0 124 3 0 3 3 0 8 0 art_node 16 153 0 105 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 16 5 5 0 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 84 0 74 1 0 1 1 0 8 0 shmpl 112 22 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 3257 0 1859 88 0 88 88 0 8 0 ffsino 240 3257 0 1859 83 0 83 83 0 8 0 nchpl 144 5432 0 3831 60 0 60 60 0 8 0 uvmvnodes 72 3972 0 0 73 0 73 73 0 8 0 vnodes 208 3972 0 0 210 0 210 210 0 8 0 namei 1024 13871 0 13871 1 0 1 1 0 8 1 vmpool 528 2 0 2 1 1 0 1 0 8 0 pfiaddrpl 120 20 0 16 3 2 1 1 0 8 0 scsiplug 64 1 0 1 1 1 0 1 0 8 0 scxspl 192 15806 0 15806 1 0 1 1 0 8 1 plimitpl 152 25 0 18 1 0 1 1 0 8 0 sigapl 424 1856 0 1807 6 0 6 6 0 8 0 futexpl 56 24327 0 24327 1 0 1 1 0 8 1 knotepl 112 69 0 50 1 0 1 1 0 8 0 kqueuepl 144 550 0 548 1 0 1 1 0 8 0 pipelkpl 16 153 0 143 1 0 1 1 0 8 0 pipepl 120 306 0 287 1 0 1 1 0 8 0 fdescpl 432 1821 0 1807 2 0 2 2 0 8 0 filepl 120 8415 0 8320 6 2 4 4 0 8 0 lockfpl 104 82 0 81 1 0 1 1 0 8 0 lockfspl 48 31 0 30 1 0 1 1 0 8 0 sessionpl 112 18 0 8 1 0 1 1 0 8 0 pgrppl 48 18 0 8 1 0 1 1 0 8 0 ucredpl 96 323 0 316 1 0 1 1 0 8 0 zombiepl 144 1807 0 1807 1 0 1 1 0 8 1 processpl 920 1856 0 1807 7 0 7 7 0 8 0 procpl 624 3551 0 3495 5 0 5 5 0 8 0 sosppl 128 6 0 6 3 3 0 1 0 8 0 sockpl 400 2460 0 2442 3 0 3 3 0 8 0 mcl64k 65536 9 0 9 4 4 0 1 0 8 0 mcl16k 16384 2 0 2 2 2 0 1 0 8 0 mcl12k 12288 20 0 20 5 4 1 1 0 8 1 mcl9k 9216 3 0 3 3 3 0 1 0 8 0 mcl8k 8192 11 0 11 4 4 0 1 0 8 0 mcl4k 4096 137 0 137 7 6 1 1 0 8 1 mcl2k2 2112 30 0 30 5 5 0 1 0 8 0 mcl2k 2048 76452 0 76398 22 14 8 16 0 8 0 mtagpl 96 14 0 13 3 2 1 1 0 8 0 mbufpl 256 127773 0 127703 21 12 9 14 0 8 0 bufpl 280 5372 0 125 375 0 375 375 0 8 0 anonpl 16 141030 0 124280 85 17 68 80 0 107 0 amapchunkpl 152 6126 0 6000 9 3 6 9 0 158 0 amappl16 192 6653 0 5701 62 14 48 56 0 8 0 amappl15 184 1486 0 1483 1 0 1 1 0 8 0 amappl14 176 25 0 19 1 0 1 1 0 8 0 amappl13 168 28 0 24 1 0 1 1 0 8 0 amappl12 160 14 0 11 2 1 1 1 0 8 0 amappl11 152 1663 0 1651 1 0 1 1 0 8 0 amappl10 144 14 0 10 1 0 1 1 0 8 0 amappl9 136 367 0 365 1 0 1 1 0 8 0 amappl8 128 318 0 278 2 0 2 2 0 8 0 amappl7 120 107 0 96 1 0 1 1 0 8 0 amappl6 112 158 0 151 1 0 1 1 0 8 0 amappl5 104 1774 0 1761 1 0 1 1 0 8 0 amappl4 96 429 0 401 1 0 1 1 0 8 0 amappl3 88 122 0 117 1 0 1 1 0 8 0 amappl2 80 15204 0 15135 2 0 2 2 0 8 0 amappl1 72 36770 0 36360 23 13 10 17 0 8 0 amappl 80 3751 0 3712 1 0 1 1 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 23 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1823 0 1809 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1823 0 1809 1 0 1 1 0 8 0 vmmpekpl 168 14352 0 14319 2 0 2 2 0 8 0 vmmpepl 168 210037 0 208000 124 35 89 111 0 357 0 vmsppl 272 1822 0 1809 2 1 1 2 0 8 0 pdppl 4096 3652 0 3618 6 1 5 6 0 8 0 pvpl 32 407292 0 387449 194 33 161 188 0 265 0 pmappl 200 1822 0 1809 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 279 0 53 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d6876) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b2) at unhandled_af+0x16 pf_build_tcp(ffffffff8282f398,b2,fffffd805550bef0,fffffd805550bee0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff82814f80) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -8 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff823d6876) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b2) at unhandled_af+0x16 pf_build_tcp(ffffffff8282f398,b2,fffffd805550bef0,fffffd805550bee0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd805550cb88) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff82814f80) at pf_purge+0x3a sys/net/pf.c:1278 taskq_thread(ffff80000002b080) at taskq_thread+0x92 sys/kern/kern_task.c:438 end trace frame: 0x0, count: -8