panic: unhandled af 22 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 398428 24793 0 0 0 1 syz-executor.0 * 32304 93893 0 0x14000 0x200 0K softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(16) at unhandled_af+0x16 pf_build_tcp(ffffffff82652468,16,fffffd806ece81d0,fffffd806ece81c0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff826a96d8) 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic unhandled af 22 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(16) at unhandled_af+0x16 pf_build_tcp(ffffffff82652468,16,fffffd806ece81d0,fffffd806ece81c0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff826a96d8) 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{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020e39b60 rbx 0xffff800020e39c10 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff814a3bdf kprintf+0x16f r9 0x1 r10 0x2 r11 0x1672a7e14901de07 r12 0x3000000008 r13 0xffff800020e39b70 r14 0x100 r15 0x1 rip 0xffffffff81bf1358 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020e39b50 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softnet) pid=32304 stat=onproc flags process=14000 proc=200 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020e19110,0xffff800020e18c40 process=0xffff800020e1b338 user=0xffff800020e34000, vmspace=0xffffffff826b1ea8 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 24793 398428 94568 0 7 0 syz-executor.0 24793 288486 94568 0 3 0x4000080 fsleep syz-executor.0 29754 192129 87383 0 2 0 syz-executor.1 29754 353139 87383 0 3 0x4000080 fsleep syz-executor.1 94568 356230 63356 0 2 0x2 syz-executor.0 87383 386639 63356 0 2 0x482 syz-executor.1 63356 225814 85548 0 3 0x82 thrsleep syz-fuzzer 63356 428778 85548 0 3 0x4000082 nanosleep syz-fuzzer 63356 58407 85548 0 3 0x4000082 thrsleep syz-fuzzer 63356 139371 85548 0 3 0x4000082 thrsleep syz-fuzzer 63356 147163 85548 0 3 0x4000082 thrsleep syz-fuzzer 63356 444509 85548 0 2 0x4000002 syz-fuzzer 63356 103484 85548 0 3 0x4000082 thrsleep syz-fuzzer 63356 147798 85548 0 3 0x4000082 thrsleep syz-fuzzer 63356 94386 85548 0 3 0x4000082 thrsleep syz-fuzzer 63356 211444 85548 0 3 0x4000082 kqread syz-fuzzer 85548 210512 66166 0 3 0x10008a pause ksh 66166 78623 59892 0 3 0x92 select sshd 97363 448578 1 0 3 0x100083 ttyin getty 59892 503241 1 0 3 0x80 select sshd 85362 104031 85561 74 3 0x100092 bpf pflogd 85561 387996 1 0 3 0x80 netio pflogd 5598 156045 5373 73 3 0x100090 kqread syslogd 5373 10417 1 0 3 0x100082 netio syslogd 82303 438300 1 77 3 0x100090 poll dhclient 13344 439336 1 0 3 0x80 poll dhclient 39580 109000 0 0 3 0x14200 bored smr 96174 113004 0 0 2 0x14200 zerothread 90965 321489 0 0 3 0x14200 aiodoned aiodoned 55892 381814 0 0 3 0x14200 syncer update 28349 487452 0 0 3 0x14200 cleaner cleaner 81676 437829 0 0 3 0x14200 reaper reaper 46253 330282 0 0 3 0x14200 pgdaemon pagedaemon 81118 6542 0 0 3 0x14200 bored crynlk 83601 24956 0 0 3 0x14200 bored crypto 55401 378773 0 0 3 0x40014200 acpi0 acpi0 31548 85516 0 0 3 0x40014200 idle1 *93893 32304 0 0 7 0x14200 softnet 37695 137641 0 0 3 0x14200 bored systqmp 23682 242159 0 0 3 0x14200 bored systq 18240 137352 0 0 3 0x40014200 bored softclock 60241 454177 0 0 3 0x40014200 idle0 1 292529 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 93893 (softnet) thread 0xffff800020e18ea0 (32304) exclusive rwlock netlock r = 0 (0xffffffff82507458) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #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 (0xffffffff82691818) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #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+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 taskq_thread+0x8f sys/kern/kern_task.c:368 #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9488 6412K 6786K 78643K 11484 0 pcb 13 8K 8K 78643K 51 0 rtable 114 12K 13K 78643K 340 0 ifaddr 64 14K 15K 78643K 267 0 counters 43 33K 34K 78643K 63 0 ioctlops 0 0K 4K 78643K 2253 0 iov 0 0K 12K 78643K 13 0 mount 1 1K 1K 78643K 1 0 vnodes 1220 77K 77K 78643K 1371 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 3 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 21 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 901 0 proc 61 63K 95K 78643K 480 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 30 0 in_multi 62 3K 3K 78643K 90 0 ether_multi 1 0K 0K 78643K 7 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 31 148K 148K 78643K 31 0 exec 0 0K 1K 78643K 242 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 123 39K 55K 78643K 3223 0 UVM aobj 8 2K 2K 78643K 8 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 24 0 NDP 8 0K 0K 78643K 24 0 temp 94 3036K 3100K 78643K 5742 0 kqueue 3 4K 6K 78643K 11 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 8 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 41 0 39 1 0 1 1 0 8 0 rtentry 112 56 0 12 2 0 2 2 0 8 0 unpcb 120 451 0 441 1 0 1 1 0 8 0 syncache 264 7 0 7 2 2 0 1 0 8 0 tcpqe 32 107 0 107 1 1 0 1 0 8 0 tcpcb 544 77 0 73 1 0 1 1 0 8 0 inpcb 280 449 0 442 2 1 1 2 0 8 0 nd6 48 9 0 3 1 0 1 1 0 8 0 ppxss 1128 2 0 2 1 1 0 1 0 8 0 pfstscr 40 425 0 423 5 4 1 1 0 8 0 pffrag 232 2 0 2 1 1 0 1 0 482 0 pffrnode 88 2 0 2 1 1 0 1 0 8 0 pffrent 40 4 0 4 1 1 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 pfstitem 24 255 0 250 1 0 1 1 0 8 0 pfstkey 112 953 0 949 1 0 1 1 0 8 0 pfstate 328 612 0 608 3 2 1 3 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 232 0 44 12 0 12 12 0 8 0 art_table 32 233 0 44 2 0 2 2 0 8 0 art_node 16 55 0 15 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 2 1 0 1 1 0 8 0 semapl 112 19 0 9 1 0 1 1 0 8 0 shmpl 112 6 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 2340 0 934 89 1 88 89 0 8 0 ffsino 272 2340 0 934 95 1 94 95 0 8 0 nchpl 144 3665 0 2070 60 0 60 60 0 8 0 uvmvnodes 72 2515 0 0 46 0 46 46 0 8 0 vnodes 208 2515 0 0 133 0 133 133 0 8 0 namei 1024 10714 0 10714 1 0 1 1 0 8 1 percpumem 16 42 0 10 1 0 1 1 0 8 0 vcpupl 1984 2 0 0 1 0 1 1 0 8 0 vmpool 560 4 0 2 1 0 1 1 0 8 0 scxspl 192 12185 0 12185 7 6 1 6 0 8 1 plimitpl 152 24 0 16 1 0 1 1 0 8 0 sigapl 424 1113 0 1081 4 0 4 4 0 8 0 futexpl 56 9247 0 9245 1 0 1 1 0 8 0 knotepl 112 81 0 62 1 0 1 1 0 8 0 kqueuepl 144 20 0 18 1 0 1 1 0 8 0 pipelkpl 48 93 0 83 1 0 1 1 0 8 0 pipepl 120 186 0 167 1 0 1 1 0 8 0 fdescpl 496 1098 0 1081 3 0 3 3 0 8 0 filepl 152 5593 0 5491 9 4 5 5 0 8 1 lockfpl 104 30 0 29 1 0 1 1 0 8 0 lockfspl 48 12 0 11 1 0 1 1 0 8 0 sessionpl 112 19 0 8 1 0 1 1 0 8 0 pgrppl 48 21 0 10 1 0 1 1 0 8 0 ucredpl 96 839 0 829 1 0 1 1 0 8 0 zombiepl 144 1081 0 1081 1 0 1 1 0 8 1 processpl 984 1113 0 1081 5 0 5 5 0 8 1 procpl 624 2410 0 2367 4 0 4 4 0 8 0 sockpl 400 941 0 922 5 2 3 4 0 8 1 mcl64k 65536 4 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 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 1 0 0 1 0 1 1 0 8 0 mcl4k 4096 8 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 192 0 0 23 7 16 23 0 8 0 mtagpl 80 29 0 0 1 0 1 1 0 8 0 mbufpl 256 296 0 0 13 0 13 13 0 8 0 bufpl 280 4441 0 134 308 0 308 308 0 8 0 anonpl 16 95781 0 82607 70 10 60 69 0 124 0 amapchunkpl 152 5433 0 5284 21 14 7 20 0 158 0 amappl16 192 4999 0 4201 47 7 40 47 0 8 0 amappl15 184 3 0 0 1 0 1 1 0 8 0 amappl14 176 24 0 20 1 0 1 1 0 8 0 amappl13 168 44 0 40 1 0 1 1 0 8 0 amappl12 160 11 0 10 1 0 1 1 0 8 0 amappl11 152 60 0 45 1 0 1 1 0 8 0 amappl10 144 468 0 461 1 0 1 1 0 8 0 amappl9 136 385 0 384 1 0 1 1 0 8 0 amappl8 128 369 0 336 2 0 2 2 0 8 0 amappl7 120 540 0 524 1 0 1 1 0 8 0 amappl6 112 31 0 24 1 0 1 1 0 8 0 amappl5 104 990 0 973 1 0 1 1 0 8 0 amappl4 96 506 0 474 1 0 1 1 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 7737 0 7659 2 0 2 2 0 8 0 amappl1 72 30952 0 30491 23 13 10 18 0 8 0 amappl 80 2673 0 2626 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 1102 0 1083 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1102 0 1083 1 0 1 1 0 8 0 vmmpekpl 168 10364 0 10329 2 0 2 2 0 8 0 vmmpepl 168 133730 0 131663 127 35 92 116 0 357 2 vmsppl 368 1101 0 1083 2 0 2 2 0 8 0 pdppl 4096 2212 0 2168 6 0 6 6 0 8 0 pvpl 32 505922 0 489510 194 45 149 168 0 265 0 pmappl 232 1101 0 1083 2 0 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 263 0 14 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff82208938) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(16) at unhandled_af+0x16 pf_build_tcp(ffffffff82652468,16,fffffd806ece81d0,fffffd806ece81c0,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd806ece9148) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(1) at pf_purge_expired_states+0x1ed pf_purge(ffffffff826a96d8) 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{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020e00ff0) 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(ffffffff82691610) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82691610) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff8000231898f0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff8000231898f0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffed080, count: 8 ddb{1}> trace x86_ipi_db(ffff800020e00ff0) 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(ffffffff82691610) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82691610) at __mp_lock+0x127 sys/kern/kern_lock.c:147 pageflttrap(ffff8000231898f0,1) at pageflttrap+0x7f sys/arch/amd64/amd64/trap.c:180 usertrap(ffff8000231898f0) at usertrap+0x21a sys/arch/amd64/amd64/trap.c:384 recall_trap() at recall_trap+0x8 end of kernel end trace frame: 0x7f7ffffed080, count: -7