panic: unhandled af 177 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 352143 13707 0 0 0 1 syz-executor.0 *400184 70497 0 0x14000 0x200 0K softnet db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240af48) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b1) at unhandled_af+0x16 pf_build_tcp(ffffffff828f8c08,b1,fffffd806ee3ce80,fffffd806ee3ce70,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80649ca528) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80649ca528) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(2) at pf_purge_expired_states+0x1fd pf_purge(ffffffff8290c4b0) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002c000) at taskq_thread+0xec sys/kern/kern_task.c:437 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 177 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic(ffffffff8240af48) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b1) at unhandled_af+0x16 pf_build_tcp(ffffffff828f8c08,b1,fffffd806ee3ce80,fffffd806ee3ce70,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80649ca528) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80649ca528) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(2) at pf_purge_expired_states+0x1fd pf_purge(ffffffff8290c4b0) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002c000) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -8 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020da9580 rbx 0xffff800020da9630 rdx 0x8b rcx 0x2 rax 0x1 r8 0xffffffff81d5511f kprintf+0x16f r9 0x1 r10 0x2 r11 0xe7d25ecb537b175d r12 0x3000000008 r13 0xffff800020da9590 r14 0x100 r15 0x1 rip 0xffffffff81cc5078 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020da9570 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softnet) pid=400184 stat=onproc flags process=14000 proc=200 pri=32, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020d88c30,0xffff800020d88280 process=0xffff800020d8a000 user=0xffff800020da4000, vmspace=0xffffffff8291b900 estcpu=0, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27261 41257 73854 0 2 0 syz-executor.1 27261 5420 73854 0 2 0x4000000 syz-executor.1 13707 352143 13923 0 7 0 syz-executor.0 13707 111601 13923 0 2 0x4000000 syz-executor.0 77620 444016 0 0 3 0x14200 acct acct 24603 399760 0 0 3 0x14280 nfsidl nfsio 8139 78603 0 0 3 0x14280 nfsidl nfsio 25475 41824 0 0 3 0x14280 nfsidl nfsio 77833 20699 0 0 3 0x14280 nfsidl nfsio 79317 426372 0 0 3 0x14280 nfsidl nfsio 23344 487727 0 0 3 0x14280 nfsidl nfsio 83949 471815 0 0 3 0x14280 nfsidl nfsio 32594 138435 0 0 3 0x14280 nfsidl nfsio 92493 173935 0 0 3 0x14280 nfsidl nfsio 84860 12860 0 0 3 0x14280 nfsidl nfsio 59318 210915 0 0 3 0x14280 nfsidl nfsio 25881 220954 0 0 3 0x14280 nfsidl nfsio 95357 220047 0 0 3 0x14280 nfsidl nfsio 90258 217978 0 0 3 0x14280 nfsidl nfsio 37201 316716 0 0 3 0x14280 nfsidl nfsio 3049 183959 0 0 3 0x14280 nfsidl nfsio 81640 292293 0 0 3 0x14280 nfsidl nfsio 55495 248657 0 0 3 0x14280 nfsidl nfsio 78751 374754 0 0 3 0x14280 nfsidl nfsio 79006 68352 0 0 3 0x14280 nfsidl nfsio 83690 115489 0 0 3 0x14200 bored sosplice 73854 264967 41382 0 2 0x482 syz-executor.1 13923 509797 41382 0 2 0x482 syz-executor.0 41382 344211 71843 0 3 0x82 thrsleep syz-fuzzer 41382 391643 71843 0 2 0x4000482 syz-fuzzer 41382 81979 71843 0 3 0x4000082 thrsleep syz-fuzzer 41382 72973 71843 0 3 0x4000082 thrsleep syz-fuzzer 41382 4215 71843 0 3 0x4000082 thrsleep syz-fuzzer 41382 44628 71843 0 3 0x4000082 thrsleep syz-fuzzer 41382 100177 71843 0 3 0x4000082 thrsleep syz-fuzzer 41382 155759 71843 0 3 0x4000082 thrsleep syz-fuzzer 41382 108990 71843 0 3 0x4000082 kqread syz-fuzzer 41382 92280 71843 0 3 0x4000082 thrsleep syz-fuzzer 71843 167135 2819 0 3 0x10008a pause ksh 2819 249101 67872 0 3 0x92 select sshd 39488 275175 1 0 3 0x100083 ttyin getty 67872 518954 1 0 3 0x80 select sshd 85821 295280 51176 74 3 0x100092 bpf pflogd 51176 503238 1 0 3 0x80 netio pflogd 7639 249268 60949 73 3 0x100090 kqread syslogd 60949 316978 1 0 3 0x100082 netio syslogd 92832 486687 1 77 3 0x100090 poll dhclient 10693 290554 1 0 3 0x80 poll dhclient 53649 138926 0 0 3 0x14200 bored smr 86642 319554 0 0 2 0x14200 zerothread 42009 354323 0 0 3 0x14200 aiodoned aiodoned 59651 256058 0 0 3 0x14200 syncer update 43580 11641 0 0 3 0x14200 cleaner cleaner 40440 403290 0 0 3 0x14200 reaper reaper 22588 216304 0 0 3 0x14200 pgdaemon pagedaemon 48759 63178 0 0 3 0x14200 bored crynlk 89525 336582 0 0 3 0x14200 bored crypto 78969 508991 0 0 3 0x40014200 acpi0 acpi0 23846 392017 0 0 3 0x40014200 idle1 *70497 400184 0 0 7 0x14200 softnet 95361 292436 0 0 2 0x14200 systqmp 12414 247517 0 0 3 0x14200 bored systq 41733 159261 0 0 3 0x40014200 bored softclock 58758 277807 0 0 3 0x40014200 idle0 1 82469 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 70497 (softnet) thread 0xffff800020d884e0 (400184) exclusive rwlock netlock r = 0 (0xffffffff827527c8) #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+0xec sys/kern/kern_task.c:437 #3 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82911f98) #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+0xec sys/kern/kern_task.c:437 #3 proc_trampoline+0x1c shared rwlock softnet r = 0 (0xffff80000002c070) #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+0xdf sys/kern/kern_task.c:436 #2 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9536 6432K 6933K 78643K 11676 0 pcb 13 8K 8K 78643K 147 0 rtable 136 10K 11K 78643K 711 0 ifaddr 104 21K 21K 78643K 230 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 61 0 ioctlops 0 0K 4K 78643K 3239 0 iov 0 0K 16K 78643K 689 0 mount 1 1K 1K 78643K 1 0 vnodes 1222 77K 77K 78643K 1533 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 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 109 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 6 17K 25K 78643K 1534 0 sigio 0 0K 0K 78643K 7 0 proc 61 63K 95K 78643K 476 0 subproc 32 2K 2K 78643K 38 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 46 0 in_multi 60 3K 3K 78643K 162 0 ether_multi 1 0K 0K 78643K 15 0 mrt 0 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 250 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 39K 39K 78643K 5275 0 UVM aobj 16 2K 2K 78643K 20 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 66 0 NDP 14 0K 0K 78643K 38 0 temp 116 3871K 3935K 78643K 28394 0 kqueue 3 4K 13K 78643K 46 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 6 0 0 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 52 0 50 1 0 1 1 0 8 0 rtentry 112 67 0 23 2 0 2 2 0 8 0 unpcb 120 364 0 353 1 0 1 1 0 8 0 syncache 264 12 0 12 5 5 0 1 0 8 0 tcpqe 32 73 0 73 1 1 0 1 0 8 0 tcpcb 544 214 0 210 2 1 1 2 0 8 0 inpcb 296 1945 0 1938 4 3 1 2 0 8 0 nd6 48 25 0 18 1 0 1 1 0 8 0 pfstscr 40 99 0 95 1 0 1 1 0 8 0 pffrag 232 4 0 4 2 2 0 1 0 482 0 pffrnode 88 4 0 4 2 2 0 1 0 8 0 pffrent 40 51 0 51 2 2 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 178 0 165 3 1 2 2 0 8 0 pfstitem 24 22 0 9 1 0 1 1 0 8 0 pfstkey 112 142 0 129 1 0 1 1 0 8 0 pfstate 328 131 0 120 2 0 2 2 0 8 0 pfrule 1360 644 0 605 5 1 4 4 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 277 0 49 17 2 15 15 0 8 0 art_table 32 278 0 49 2 0 2 2 0 8 0 art_node 16 66 0 25 1 0 1 1 0 8 0 sysvmsgpl 40 16 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 101 0 91 1 0 1 1 0 8 0 shmpl 112 18 0 4 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 4220 0 2817 89 0 89 89 0 8 0 ffsino 272 4220 0 2817 94 0 94 94 0 8 0 nchpl 144 7699 0 6089 60 0 60 60 0 8 0 uvmvnodes 72 4492 0 0 82 0 82 82 0 8 0 vnodes 208 4492 0 0 237 0 237 237 0 8 0 namei 1024 19840 0 19840 3 2 1 1 0 8 1 percpumem 16 41 0 9 1 0 1 1 0 8 0 vcpupl 1984 1 0 0 1 0 1 1 0 8 0 vmpool 560 5 0 4 2 1 1 1 0 8 0 pfiaddrpl 120 1800 0 1724 3 0 3 3 0 8 0 scxspl 192 21215 0 21215 13 10 3 7 0 8 3 plimitpl 152 42 0 34 1 0 1 1 0 8 0 sigapl 424 1771 0 1717 7 0 7 7 0 8 0 futexpl 56 21396 0 21396 2 1 1 1 0 8 1 knotepl 112 112 0 93 1 0 1 1 0 8 0 kqueuepl 144 114 0 110 1 0 1 1 0 8 0 pipelkpl 48 156 0 146 1 0 1 1 0 8 0 pipepl 120 312 0 293 1 0 1 1 0 8 0 fdescpl 496 1734 0 1717 3 0 3 3 0 8 0 filepl 152 11438 0 11338 6 1 5 5 0 8 1 lockfpl 104 113 0 112 1 0 1 1 0 8 0 lockfspl 48 38 0 37 1 0 1 1 0 8 0 sessionpl 112 18 0 7 1 0 1 1 0 8 0 pgrppl 48 56 0 45 1 0 1 1 0 8 0 ucredpl 96 695 0 686 1 0 1 1 0 8 0 zombiepl 144 1717 0 1717 2 1 1 1 0 8 1 processpl 984 1771 0 1717 7 0 7 7 0 8 0 procpl 624 4147 0 4082 8 2 6 6 0 8 1 sosppl 128 8 0 8 2 2 0 1 0 8 0 sockpl 400 2365 0 2345 6 3 3 4 0 8 0 mcl64k 65536 263 0 0 33 1 32 33 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 9 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 9 0 0 2 0 2 2 0 8 0 mcl4k 4096 12 0 0 2 0 2 2 0 8 0 mcl2k2 2112 4 0 0 1 0 1 1 0 8 0 mcl2k 2048 169 0 0 21 1 20 21 0 8 0 mtagpl 96 90 0 0 3 0 3 3 0 8 0 mbufpl 256 507 0 0 31 0 31 31 0 8 0 bufpl 280 6609 0 374 446 0 446 446 0 8 0 anonpl 16 231077 0 215159 88 7 81 81 0 124 16 amapchunkpl 152 7977 0 7840 17 10 7 11 0 158 0 amappl16 192 12875 0 12013 101 49 52 56 0 8 8 amappl15 184 1 0 1 1 1 0 1 0 8 0 amappl14 176 755 0 749 1 0 1 1 0 8 0 amappl13 168 30 0 27 1 0 1 1 0 8 0 amappl12 160 741 0 738 1 0 1 1 0 8 0 amappl11 152 57 0 41 1 0 1 1 0 8 0 amappl10 144 18 0 13 1 0 1 1 0 8 0 amappl9 136 383 0 382 1 0 1 1 0 8 0 amappl8 128 361 0 321 2 0 2 2 0 8 0 amappl7 120 126 0 113 1 0 1 1 0 8 0 amappl6 112 29 0 22 1 0 1 1 0 8 0 amappl5 104 2263 0 2244 1 0 1 1 0 8 0 amappl4 96 496 0 466 1 0 1 1 0 8 0 amappl3 88 125 0 119 1 0 1 1 0 8 0 amappl2 80 13788 0 13706 2 0 2 2 0 8 0 amappl1 72 41299 0 40841 24 14 10 18 0 8 0 amappl 80 4391 0 4347 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 19 0 4 1 0 1 1 0 8 0 uaddrrnd 24 1739 0 1721 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1739 0 1721 1 0 1 1 0 8 0 vmmpekpl 168 13763 0 13728 2 0 2 2 0 8 0 vmmpepl 168 213890 0 211754 121 17 104 108 0 357 11 vmsppl 368 1738 0 1721 2 0 2 2 0 8 0 pdppl 4096 3485 0 3443 8 2 6 6 0 8 0 pvpl 32 518979 0 499715 207 14 193 193 0 265 36 pmappl 232 1738 0 1721 4 2 2 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 330 0 17 9 0 9 9 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(ffffffff8240af48) at panic+0x15c sys/kern/subr_prf.c:207 unhandled_af(b1) at unhandled_af+0x16 pf_build_tcp(ffffffff828f8c08,b1,fffffd806ee3ce80,fffffd806ee3ce70,0,0) at pf_build_tcp+0x3c8 pf_remove_state(fffffd80649ca528) at pf_remove_state+0x9a pf_send_tcp sys/net/pf.c:2892 [inline] pf_remove_state(fffffd80649ca528) at pf_remove_state+0x9a sys/net/pf.c:1382 pf_purge_expired_states(2) at pf_purge_expired_states+0x1fd pf_purge(ffffffff8290c4b0) at pf_purge+0x3f sys/net/pf.c:1278 taskq_thread(ffff80000002c000) at taskq_thread+0xec sys/kern/kern_task.c:437 end trace frame: 0x0, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020d70ff0) 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 tsc_get_timecount(ffffffff82764280) at tsc_get_timecount+0x1b sys/arch/amd64/amd64/tsc.c:213 nanotime(ffff800020ecd1e8) at nanotime+0x6c tc_delta sys/kern/kern_tc.c:138 [inline] nanotime(ffff800020ecd1e8) at nanotime+0x6c bintime sys/kern/kern_tc.c:273 [inline] nanotime(ffff800020ecd1e8) at nanotime+0x6c sys/kern/kern_tc.c:284 clock_gettime(ffff800020eefaf8,0,ffff800020ecd1e8) at clock_gettime+0x9d sys/kern/kern_time.c:116 sys_clock_gettime(ffff800020eefaf8,ffff800020ecd250,ffff800020ecd2a0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020ecd320) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ecd320) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1040, count: 6 ddb{1}> trace x86_ipi_db(ffff800020d70ff0) 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 tsc_get_timecount(ffffffff82764280) at tsc_get_timecount+0x1b sys/arch/amd64/amd64/tsc.c:213 nanotime(ffff800020ecd1e8) at nanotime+0x6c tc_delta sys/kern/kern_tc.c:138 [inline] nanotime(ffff800020ecd1e8) at nanotime+0x6c bintime sys/kern/kern_tc.c:273 [inline] nanotime(ffff800020ecd1e8) at nanotime+0x6c sys/kern/kern_tc.c:284 clock_gettime(ffff800020eefaf8,0,ffff800020ecd1e8) at clock_gettime+0x9d sys/kern/kern_time.c:116 sys_clock_gettime(ffff800020eefaf8,ffff800020ecd250,ffff800020ecd2a0) at sys_clock_gettime+0x4c sys/kern/kern_time.c:165 syscall(ffff800020ecd320) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ecd320) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffe1040, count: -9