panic: unhandled af 127 Stopped at db_enter+0x25: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 311157 50081 32767 0x2010 0x4000000 1K syz-executor *120111 7898 0 0x14000 0x200 0 softnet0 db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834f4434) at panic+0x1e5 sys/kern/subr_prf.c:198 unhandled_af(7f) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff80000004e858,ffff80002a1d04a0,ffff800000c43ec0,fffffd806fb02c60,5dc) at if_output_tso+0x22b ip_output(fffffd806c6e4200,0,fffffd806fd0f448,800,0,fffffd806fd0f4e0,b19b5e3b952261c5) at ip_output+0x107f sys/netinet/ip_output.c:437 tcp_output(ffff8000015b78a0) at tcp_output+0x36e3 sys/netinet/tcp_output.c:1070 tcp_input_solocked(ffff80002a1d08f0,ffff80002a1d08fc,0,2,ffff80002a1d08e8) at tcp_input_solocked+0x6582 sys/netinet/tcp_input.c:-1 tcp_input_mlist(ffffffff839f54d0,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff80000004e858,ffff80002a1d09d8,0) at if_input_process+0x526 sys/net/if.c:1086 ifiq_process(ffff80000004ed08) at ifiq_process+0xcd sys/net/ifq.c:864 taskq_thread(ffff80000002c000) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: 4 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 *cpu0: unhandled af 127 ddb{0}> show kasan No such command ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834f4434) at panic+0x1e5 sys/kern/subr_prf.c:198 unhandled_af(7f) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff80000004e858,ffff80002a1d04a0,ffff800000c43ec0,fffffd806fb02c60,5dc) at if_output_tso+0x22b ip_output(fffffd806c6e4200,0,fffffd806fd0f448,800,0,fffffd806fd0f4e0,b19b5e3b952261c5) at ip_output+0x107f sys/netinet/ip_output.c:437 tcp_output(ffff8000015b78a0) at tcp_output+0x36e3 sys/netinet/tcp_output.c:1070 tcp_input_solocked(ffff80002a1d08f0,ffff80002a1d08fc,0,2,ffff80002a1d08e8) at tcp_input_solocked+0x6582 sys/netinet/tcp_input.c:-1 tcp_input_mlist(ffffffff839f54d0,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff80000004e858,ffff80002a1d09d8,0) at if_input_process+0x526 sys/net/if.c:1086 ifiq_process(ffff80000004ed08) at ifiq_process+0xcd sys/net/ifq.c:864 taskq_thread(ffff80000002c000) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -11 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff80002a1d0280 rbx 0xffffffff839c2e0f cpu_info_full_primary+0x2e0f rdx 0 rcx 0xffff800045ffe000 rax 0xffffffff839c1ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x9be62fa4daa76859 r11 0xd9d020863906c6b6 r12 0xffffffff839c2c10 cpu_info_full_primary+0x2c10 r13 0 r14 0 r15 0x1 rip 0xffffffff81a827e5 db_enter+0x25 cs 0x8 rflags 0x246 rsp 0xffff80002a1d0270 ss 0x10 db_enter+0x25: addq $0x8,%rsp ddb{0}> show proc PROC (softnet0) tid=120111 pid=7898 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff800045ffe298,0xffff800045ffea70 process=0xffff800045ff8000 user=0xffff80002a1cb000, vmspace=0xffffffff839f8ad0 estcpu=0, cpticks=7, pctcpu=0.1, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 6185 266174 18128 32767 2 0x10 0 syz-executor 6185 485318 18128 32767 3 0x10 0x4000080 fsleep syz-executor 23234 486841 36185 32767 2 0x2010 0x80000 syz-executor 23234 503434 36185 32767 4 0x2010 0x4080000 syz-executor 23234 457021 36185 32767 3 0x2010 0x4000000 suspend syz-executor 18993 282040 66520 0 2 0x100000 0 sh 66520 194332 90139 0 3 0x100002 0x88 sigsusp sh 50081 118713 97299 32767 2 0x2010 0x80c80 syz-executor 50081 175602 97299 32767 2 0x2010 0x4080080 syz-executor 50081 73924 97299 32767 2 0x2010 0x4080080 syz-executor 50081 311157 97299 32767 7 0x2010 0x4000000 syz-executor 90139 449295 4217 0 3 0 0x80 wait syz-executor 4217 438324 69013 0 3 0x2 0x80 wait syz-executor 97591 334273 29576 32767 2 0x10 0 syz-executor 29576 260364 69013 0 3 0x2 0x80 wait syz-executor 36185 87486 79701 32767 2 0x10 0xc80 syz-executor 79701 105799 69013 0 3 0x2 0x80 wait syz-executor 83014 143546 75642 32767 2 0x10000010 0 syz-executor 75642 214554 69013 0 3 0x2 0x80 wait syz-executor 41020 262820 69013 0 3 0x2 0x80 wait syz-executor 97299 152832 26682 32767 2 0x10 0 syz-executor 26682 480777 69013 0 3 0x2 0x80 wait syz-executor 80253 203084 40454 32767 3 0x10 0x80 nanoslp syz-executor 18128 464975 25130 32767 2 0x10 0xc80 syz-executor 40454 295464 69013 0 3 0x2 0x80 wait syz-executor 25130 118181 69013 0 3 0x2 0x80 wait syz-executor 69013 266301 37762 0 3 0x2 0x80 kqread syz-executor 37762 128836 33067 0 3 0x100002 0x88 sigsusp ksh 33067 494402 51081 0 3 0x10 0x88 kqread sshd-session 51081 405915 91216 0 3 0x12 0x80 kqread sshd-session 88909 305636 1 0 3 0x100003 0x80 ttyin getty 91216 115565 1 0 3 0 0x88 kqread sshd 54768 453243 81513 73 3 0x1100010 0x80 kqread syslogd 81513 492755 1 0 3 0x100002 0x80 sbwait syslogd 31506 6572 1 0 3 0x100000 0x80 kqread resolvd 21271 137481 36330 77 3 0x100012 0x80 kqread dhcpleased 85104 242255 36330 77 3 0x100012 0x80 kqread dhcpleased 36330 37236 1 0 3 0 0x80 kqread dhcpleased 73983 246166 0 0 3 0x14000 0x200 bored smr 22032 301666 0 0 2 0x14000 0x200 zerothread 73059 89262 0 0 3 0x14000 0x200 aiodoned aiodoned 53310 428438 0 0 3 0x14000 0x200 syncer update 3367 393074 0 0 3 0x14000 0x200 cleaner cleaner 76815 290374 0 0 3 0x14000 0x200 reaper reaper 37564 475216 0 0 3 0x14000 0x200 pgdaemon pagedaemon 62135 75678 0 0 3 0x14000 0x200 bored viomb 88989 189103 0 0 3 0x14000 0x40000200 acpi0 acpi0 10310 233131 0 0 3 0x14000 0x40000200 idle1 55328 46179 0 0 3 0x14000 0x200 bored softnet1 * 7898 120111 0 0 7 0x14000 0x200 softnet0 80525 517372 0 0 3 0x14000 0x200 bored systqmp 33029 391025 0 0 3 0x14000 0x200 bored systq 80824 164446 0 0 3 0x14000 0x200 tmoslp softclockmp 13388 215922 0 0 3 0x14000 0x40000200 tmoslp softclock 79001 301759 0 0 3 0x14000 0x40000200 idle0 1 138257 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{0}> show all locks Process 50081 (syz-executor) thread 0xffff800045fe2558 (311157) exclusive rwlock vmmaplk r = 0 (0xfffffd806d1d9ab0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 uvmfault_lookup+0x122 sys/uvm/uvm_fault.c:1880 #3 uvm_fault_check+0x4f sys/uvm/uvm_fault.c:693 #4 uvm_fault+0x106 sys/uvm/uvm_fault.c:627 #5 upageflttrap+0xa9 sys/arch/amd64/amd64/trap.c:194 #6 usertrap+0x430 sys/arch/amd64/amd64/trap.c:648 #7 recall_trap+0x8 Process 7898 (softnet0) thread 0xffff800045ffe000 (120111) exclusive rwlock inet46 r = 0 (0xffff800010fdd1d0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_write+0x419 sys/kern/kern_rwlock.c:320 #2 in_pcbsolock+0xdb sys/netinet/in_pcb.c:631 #3 tcp_input_solocked+0xa9a sys/netinet/tcp_input.c:-1 #4 tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 #5 if_input_process+0x526 sys/net/if.c:1086 #6 ifiq_process+0xcd sys/net/ifq.c:864 #7 taskq_thread+0x157 sys/kern/kern_task.c:446 #8 proc_trampoline+0x10 shared rwlock netlock r = 0 (0xffffffff838f48b0) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 rw_do_enter_read+0x3e8 sys/kern/kern_rwlock.c:413 #2 if_input_process+0x1c9 sys/net/if.c:1061 #3 ifiq_process+0xcd sys/net/ifq.c:864 #4 taskq_thread+0x157 sys/kern/kern_task.c:446 #5 proc_trampoline+0x10 shared rwlock softnet0 r = 0 (0xffff80000002c078) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11083 12023K 12034K 166960K 12215 0 pcb 17 12K 12K 166960K 17 0 rtable 221 6K 7K 166960K 730 0 pf 31 16K 16K 166960K 57 0 ifaddr 40 7K 7K 166960K 96 0 ifgroup 50 2K 2K 166960K 102 0 sysctl 3 1K 9K 166960K 7 0 counters 70 37K 37K 166960K 96 0 ioctlops 0 0K 4K 166960K 48 0 iov 0 0K 4K 166960K 5 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1512 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 18 0K 1K 166960K 22 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1734 201K 291K 166960K 11964 0 file desc 24 89K 121K 166960K 512 0 sigio 0 0K 0K 166960K 5 0 proc 58 99K 163K 166960K 878 0 subproc 72 4K 4K 166960K 189 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 24 0 in_multi 89 6K 6K 166960K 235 0 ether_multi 1 0K 0K 166960K 3 0 mrt 1 0K 0K 166960K 6 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 259 1155K 1155K 166960K 259 0 exec 0 0K 1K 166960K 543 0 fusefs mount 1 32K 32K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 241 177K 186K 166960K 5604 0 UVM aobj 8 2K 2K 166960K 8 0 pinsyscall 45 90K 114K 166960K 1948 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 11 0 NDP 17 0K 2K 166960K 64 0 temp 74 9124K 9150K 166960K 5269 0 kqueue 13 20K 26K 166960K 44 0 SYN cache 2 16K 16K 166960K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 28 0 0 1 0 1 1 0 8 0 rtpcb 120 73 0 70 1 0 1 1 0 8 0 rtentry 176 248 0 146 6 0 6 6 0 8 0 unpcb 144 145 0 129 2 0 2 2 0 8 1 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 79 0 74 1 0 1 1 0 8 0 arp 136 43 0 26 1 0 1 1 0 8 0 ipq 40 3 0 1 1 0 1 1 0 8 0 ipqe 40 4 0 2 1 0 1 1 0 8 0 inpcb 328 265 0 257 2 0 2 2 0 8 0 nd6 152 62 0 41 2 0 2 2 0 8 0 kcovpl 48 21 0 13 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1014 0 600 32 0 32 32 0 8 3 art_table 40 1015 0 600 6 0 6 6 0 8 0 art_node 32 248 0 155 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 0 1 1 0 8 1 semapl 72 18 0 2 1 0 1 1 0 8 0 shmpl 120 5 0 0 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 1841 0 347 94 0 94 94 0 8 0 ffsino 296 1841 0 347 116 0 116 116 0 8 0 nchpl 144 2349 0 615 65 0 65 65 0 8 0 vnodes 216 2039 0 0 114 0 114 114 0 8 0 namei 1024 9773 0 9773 3 1 2 2 0 8 2 percpumem 16 64 0 13 1 0 1 1 0 8 0 kstatmem 264 51 0 26 2 0 2 2 0 8 0 scxspl 216 7377 0 7377 4 3 1 3 1 8 1 plimitpl 152 84 0 59 2 0 2 2 0 8 0 sigapl 424 786 0 733 7 0 7 7 0 8 0 knotepl 120 347 0 0 11 0 11 11 0 8 0 kqueuepl 224 63 0 54 1 0 1 1 0 8 0 pipepl 344 239 0 211 6 0 6 6 0 8 3 fdescpl 528 770 0 734 3 0 3 3 0 8 0 filepl 160 3053 0 2842 16 0 16 16 0 8 4 lockfpl 104 95 0 93 1 0 1 1 0 8 0 lockfspl 48 20 0 18 1 0 1 1 0 8 0 sessionpl 144 42 0 26 1 0 1 1 0 8 0 pgrppl 48 65 0 41 1 0 1 1 0 8 0 ucredpl 104 563 0 545 1 0 1 1 0 8 0 zombiepl 144 736 0 733 1 0 1 1 0 8 0 processpl 1240 786 0 733 5 0 5 5 0 8 0 procpl 664 1090 0 1031 6 0 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 549 0 522 5 0 5 5 0 8 1 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 116 0 0 15 0 15 15 0 8 0 mcl2k 2048 29 0 0 4 0 4 4 0 8 0 mextrefs 64 28 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 242 0 0 16 0 16 16 0 8 0 bufpl 272 2442 0 102 156 0 156 156 0 8 0 anonpl 32 5578 0 0 45 0 45 45 0 247 0 amapchunkpl 152 16820 0 16313 37 0 37 37 0 158 11 amappl16 200 1977 0 1959 5 3 2 5 0 8 0 amappl15 192 4 0 3 1 0 1 1 0 8 0 amappl14 184 558 0 555 1 0 1 1 0 8 0 amappl13 176 140 0 130 1 0 1 1 0 8 0 amappl12 168 1050 0 1017 2 0 2 2 0 8 0 amappl11 160 22 0 21 1 0 1 1 0 8 0 amappl10 152 81 0 71 1 0 1 1 0 8 0 amappl9 144 272 0 272 1 1 0 1 0 8 0 amappl8 136 176 0 175 1 0 1 1 0 8 0 amappl7 128 171 0 160 1 0 1 1 0 8 0 amappl6 120 279 0 277 1 0 1 1 0 8 0 amappl5 112 115 0 108 1 0 1 1 0 8 0 amappl4 104 320 0 304 1 0 1 1 0 8 0 amappl3 96 2880 0 2786 4 1 3 3 0 8 0 amappl2 88 867 0 792 2 0 2 2 0 8 0 amappl1 80 12925 0 12353 16 0 16 16 0 8 1 amappl 88 4654 0 4480 5 0 5 5 0 92 0 uvmvnodes 80 105 0 0 3 0 3 3 0 8 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 7 0 0 1 0 1 1 0 8 0 uaddrrnd 24 770 0 734 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 770 0 734 1 0 1 1 0 8 0 vmmpekpl 168 8170 0 8114 3 0 3 3 0 8 0 vmmpepl 168 58405 0 56440 100 0 100 100 0 357 7 vmsppl 488 769 0 734 7 1 6 6 0 8 0 rwobjpl 80 19241 0 18287 24 0 24 24 0 8 2 pdppl 4096 1547 0 1468 121 32 89 95 0 8 10 pvpl 32 12812 0 0 104 0 104 104 0 265 0 pmappl 256 769 0 734 4 1 3 3 0 8 0 extentpl 40 46 0 28 1 0 1 1 0 8 0 phpool 112 456 0 36 12 0 12 12 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438 panic(ffffffff834f4434) at panic+0x1e5 sys/kern/subr_prf.c:198 unhandled_af(7f) at unhandled_af+0x1a sys/net/if.c:-1 if_output_tso(ffff80000004e858,ffff80002a1d04a0,ffff800000c43ec0,fffffd806fb02c60,5dc) at if_output_tso+0x22b ip_output(fffffd806c6e4200,0,fffffd806fd0f448,800,0,fffffd806fd0f4e0,b19b5e3b952261c5) at ip_output+0x107f sys/netinet/ip_output.c:437 tcp_output(ffff8000015b78a0) at tcp_output+0x36e3 sys/netinet/tcp_output.c:1070 tcp_input_solocked(ffff80002a1d08f0,ffff80002a1d08fc,0,2,ffff80002a1d08e8) at tcp_input_solocked+0x6582 sys/netinet/tcp_input.c:-1 tcp_input_mlist(ffffffff839f54d0,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1 if_input_process(ffff80000004e858,ffff80002a1d09d8,0) at if_input_process+0x526 sys/net/if.c:1086 ifiq_process(ffff80000004ed08) at ifiq_process+0xcd sys/net/ifq.c:864 taskq_thread(ffff80000002c000) at taskq_thread+0x157 sys/kern/kern_task.c:446 end trace frame: 0x0, count: -11 ddb{0}> machine ddbcpu 1