panic: unhandled af 0
Stopped at db_enter+0x25: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*156107 47985 0 0x14000 0x200 0 softnet0
db_enter() at db_enter+0x25 sys/arch/amd64/amd64/db_interface.c:438
panic(ffffffff834fe5ae) at panic+0x1e5 sys/kern/subr_prf.c:198
unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1
if_output_tso(ffff80000004e858,ffff80002a1d0910,ffff800000c43d50,fffff8006fb40d10,5dc) at if_output_tso+0x22b
ip_output(fffff8006fa73f00,0,fffff8006fcbd1b8,800,0,fffff8006fcbd250,37bf78196d912806) at ip_output+0x107f sys/netinet/ip_output.c:437
tcp_output(ffff8000015a18a0) at tcp_output+0x36e3 sys/netinet/tcp_output.c:1070
tcp_input_solocked(ffff80002a1d0d60,ffff80002a1d0d6c,0,2,ffff80002a1d0d58) at tcp_input_solocked+0x6582 sys/netinet/tcp_input.c:-1
tcp_input_mlist(ffffffff83afd850,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1
if_input_process(ffff80000004e858,ffff80002a1d0e48,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 0
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(ffffffff834fe5ae) at panic+0x1e5 sys/kern/subr_prf.c:198
unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1
if_output_tso(ffff80000004e858,ffff80002a1d0910,ffff800000c43d50,fffff8006fb40d10,5dc) at if_output_tso+0x22b
ip_output(fffff8006fa73f00,0,fffff8006fcbd1b8,800,0,fffff8006fcbd250,37bf78196d912806) at ip_output+0x107f sys/netinet/ip_output.c:437
tcp_output(ffff8000015a18a0) at tcp_output+0x36e3 sys/netinet/tcp_output.c:1070
tcp_input_solocked(ffff80002a1d0d60,ffff80002a1d0d6c,0,2,ffff80002a1d0d58) at tcp_input_solocked+0x6582 sys/netinet/tcp_input.c:-1
tcp_input_mlist(ffffffff83afd850,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1
if_input_process(ffff80000004e858,ffff80002a1d0e48,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 0xffff80002a1d06f0
rbx 0xffffffff8395ae0f cpu_info_full_primary+0x2e0f
rdx 0
rcx 0xffff800045ffe000
rax 0xffffffff83959ff0 cpu_info_full_primary+0x1ff0
r8 0x101010101010101
r9 0x8080808080808080
r10 0x580283d7eacda05b
r11 0xbcd6c552507c026d
r12 0xffffffff8395ac10 cpu_info_full_primary+0x2c10
r13 0
r14 0
r15 0x1
rip 0xffffffff8106baf5 db_enter+0x25
cs 0x8
rflags 0x246
rsp 0xffff80002a1d06e0
ss 0x10
db_enter+0x25: addq $0x8,%rsp
ddb{0}> show proc
PROC (softnet0) tid=156107 pid=47985 tcnt=1 stat=onproc
flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff800045ffe298,0xffff800045ffe540
process=0xffff800045ff84d8 user=0xffff80002a1cb000, vmspace=0xffffffff83ae8490
estcpu=0, cpticks=7, pctcpu=0.0, user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
17243 76804 68122 32767 3 0x10 0x80 piperd syz-executor
68122 124226 18989 0 3 0x2 0x80 wait syz-executor
8184 406615 18989 0 3 0x2 0x80 wait syz-executor
13398 158987 98359 32767 3 0x10 0x80 piperd syz-executor
98359 314982 18989 0 3 0x2 0x80 wait syz-executor
78020 430573 18989 0 3 0x2 0x80 wait syz-executor
48846 385680 18989 0 3 0x2 0x80 wait syz-executor
98318 22060 31588 32767 3 0x10 0x80 piperd syz-executor
31588 464489 18989 0 3 0x2 0x80 wait syz-executor
1695 302114 79729 0 3 0x100002 0x80 sbwait arp
79729 344488 56921 0 3 0x100002 0x88 sigsusp sh
56921 311667 78069 0 3 0 0x80 wait syz-executor
78069 45348 18989 0 3 0x2 0x80 wait syz-executor
18989 67627 38003 0 3 0x2 0x80 nanoslp syz-executor
38003 192722 81974 0 3 0x100002 0x88 sigsusp ksh
81974 274557 55078 0 3 0x10 0x88 kqread sshd-session
55078 376670 17730 0 3 0x12 0x80 kqread sshd-session
81004 194982 1 0 3 0x100003 0x80 ttyin getty
17730 299966 1 0 3 0 0x88 kqread sshd
57618 353580 48401 73 3 0x1100010 0x80 kqread syslogd
48401 100132 1 0 3 0x100002 0x80 sbwait syslogd
9272 509489 1 0 3 0x100000 0x80 kqread resolvd
85229 37291 47021 77 3 0x100012 0x80 kqread dhcpleased
19185 342976 47021 77 3 0x100012 0x80 kqread dhcpleased
47021 216167 1 0 3 0 0x80 kqread dhcpleased
44928 256678 0 0 3 0x14000 0x200 bored smr
68586 86027 0 0 3 0x14000 0x200 pgzero zerothread
95812 201772 0 0 3 0x14000 0x200 aiodoned aiodoned
50069 482748 0 0 3 0x14000 0x200 syncer update
89465 235878 0 0 3 0x14000 0x200 cleaner cleaner
3260 237899 0 0 3 0x14000 0x200 reaper reaper
87786 54720 0 0 3 0x14000 0x200 pgdaemon pagedaemon
44278 505205 0 0 3 0x14000 0x200 bored viomb
5485 485602 0 0 3 0x14000 0x40000200 acpi0 acpi0
9299 441149 0 0 7 0x14000 0x40000200 idle1
46821 498568 0 0 3 0x14000 0x200 bored softnet1
*47985 156107 0 0 7 0x14000 0x200 softnet0
427 438640 0 0 3 0x14000 0x200 bored systqmp
66395 121250 0 0 3 0x14000 0x200 bored systq
33323 113689 0 0 3 0x14000 0x200 tmoslp softclockmp
63079 391755 0 0 3 0x14000 0x40000200 tmoslp softclock
59884 43549 0 0 3 0x14000 0x40000200 idle0
1 625 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{0}> show all locks
Process 47985 (softnet0) thread 0xffff800045ffe000 (156107)
exclusive rwlock inet46 r = 0 (0xffff8000015b6bf0)
#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 (0xffffffff839a5fb0)
#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 11052 12016K 12034K 166960K 12251 0
pcb 17 12K 12K 166960K 17 0
rtable 199 5K 6K 166960K 1395 0
pf 29 16K 16K 166960K 101 0
ifaddr 36 6K 7K 166960K 186 0
ifgroup 46 2K 2K 166960K 190 0
sysctl 3 1K 9K 166960K 7 0
counters 68 36K 37K 166960K 140 0
ioctlops 0 0K 4K 166960K 137 0
iov 0 0K 16K 166960K 23 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1287 81K 81K 166960K 1761 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 10 0
VM map 2 1K 1K 166960K 2 0
sem 21 1K 1K 166960K 23 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1734 201K 291K 166960K 11964 0
file desc 18 65K 129K 166960K 1005 0
sigio 0 0K 0K 166960K 2 0
proc 58 99K 163K 166960K 1522 0
subproc 63 3K 4K 166960K 432 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 43 0
in_multi 78 5K 6K 166960K 483 0
ether_multi 1 0K 0K 166960K 4 0
mrt 0 0K 0K 166960K 12 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 91 413K 413K 166960K 91 0
exec 0 0K 1K 166960K 891 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 187 152K 195K 166960K 8760 0
UVM aobj 13 2K 2K 166960K 14 0
pinsyscall 40 80K 114K 166960K 3046 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 14 0
NDP 18 1K 1K 166960K 130 0
temp 36 9119K 9139K 166960K 8515 0
kqueue 13 20K 28K 166960K 91 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 122 0 118 1 0 1 1 0 8 0
rtentry 176 491 0 400 5 0 5 5 0 8 0
unpcb 144 407 0 392 6 0 6 6 0 8 5
syncache 336 8 0 8 1 0 1 1 0 8 1
tcpcb 736 160 0 156 4 0 4 4 0 8 3
arp 136 87 0 72 1 0 1 1 0 8 0
ipq 40 5 0 1 1 0 1 1 0 8 0
ipqe 40 6 0 2 1 0 1 1 0 8 0
inpcb 328 498 0 491 4 0 4 4 0 8 3
nd6 152 129 0 111 1 0 1 1 0 8 0
kcovpl 48 48 0 41 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1988 0 1618 29 1 28 29 0 8 2
art_table 40 1989 0 1618 5 0 5 5 0 8 0
art_node 32 491 0 408 1 0 1 1 0 8 0
sysvmsgpl 40 7 0 6 1 0 1 1 0 8 0
semupl 112 1 0 1 1 0 1 1 0 8 1
semapl 72 21 0 2 1 0 1 1 0 8 0
shmpl 120 11 0 1 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 2020 0 471 97 0 97 97 0 8 0
ffsino 296 2020 0 471 120 0 120 120 0 8 0
nchpl 144 2702 0 910 67 0 67 67 0 8 0
vnodes 216 2461 0 0 137 0 137 137 0 8 0
namei 1024 15901 0 15901 4 3 1 3 0 8 1
percpumem 16 86 0 36 1 0 1 1 0 8 0
kstatmem 264 95 0 72 2 0 2 2 0 8 0
scxspl 216 8419 0 8419 4 3 1 3 1 8 1
plimitpl 152 193 0 171 2 0 2 2 0 8 0
sigapl 424 1231 0 1185 7 0 7 7 0 8 0
knotepl 120 515 0 0 16 0 16 16 0 8 0
kqueuepl 224 116 0 107 1 0 1 1 0 8 0
pipepl 344 273 0 246 4 0 4 4 0 8 0
fdescpl 528 1215 0 1185 4 1 3 4 0 8 0
filepl 160 4636 0 4445 15 0 15 15 0 8 3
lockfpl 104 82 0 80 1 0 1 1 0 8 0
lockfspl 48 27 0 25 1 0 1 1 0 8 0
sessionpl 144 77 0 62 1 0 1 1 0 8 0
pgrppl 48 126 0 104 1 0 1 1 0 8 0
ucredpl 104 671 0 654 1 0 1 1 0 8 0
zombiepl 144 1188 0 1185 1 0 1 1 0 8 0
processpl 1240 1231 0 1185 5 0 5 5 0 8 0
procpl 664 1800 0 1754 7 1 6 7 0 8 0
sosppl 176 4 0 4 1 0 1 1 0 8 1
sockpl 752 1099 0 1073 16 0 16 16 0 8 13
mcl64k 65536 2 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl9k128 9344 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 6 0 0 1 0 1 1 0 8 0
mcl4k 4096 116 0 0 15 0 15 15 0 8 0
mcl2k 2048 33 0 0 5 0 5 5 0 8 0
mextrefs 64 32 0 0 1 0 1 1 0 8 0
mtagpl 96 3 0 0 1 0 1 1 0 8 0
mbufpl 256 243 0 0 16 0 16 16 0 8 0
bufpl 272 2730 0 103 176 0 176 176 0 8 0
anonpl 32 5356 0 0 44 0 44 44 0 247 0
amapchunkpl 152 25037 0 24691 28 0 28 28 0 158 9
amappl16 200 1989 0 1978 5 2 3 5 0 8 2
amappl15 192 11 0 11 1 1 0 1 0 8 0
amappl14 184 832 0 830 1 0 1 1 0 8 0
amappl13 176 194 0 183 1 0 1 1 0 8 0
amappl12 168 1590 0 1562 2 0 2 2 0 8 0
amappl11 160 4 0 4 1 1 0 1 0 8 0
amappl10 152 65 0 55 1 0 1 1 0 8 0
amappl9 144 273 0 272 1 0 1 1 0 8 0
amappl8 136 231 0 230 1 0 1 1 0 8 0
amappl7 128 213 0 201 1 0 1 1 0 8 0
amappl6 120 501 0 498 1 0 1 1 0 8 0
amappl5 112 106 0 98 1 0 1 1 0 8 0
amappl4 104 386 0 370 1 0 1 1 0 8 0
amappl3 96 4490 0 4422 5 2 3 4 0 8 0
amappl2 88 1253 0 1182 3 0 3 3 0 8 0
amappl1 80 17996 0 17429 18 0 18 18 0 8 2
amappl 88 7364 0 7243 5 0 5 5 0 92 0
uvmvnodes 80 107 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 13 0 1 1 0 1 1 0 8 0
uaddrrnd 24 1215 0 1185 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1215 0 1185 1 0 1 1 0 8 0
vmmpekpl 168 11614 0 11550 4 0 4 4 0 8 0
vmmpepl 168 87287 0 85612 105 0 105 105 0 357 16
vmsppl 488 1214 0 1185 7 1 6 6 0 8 0
rwobjpl 80 26850 0 25933 27 0 27 27 0 8 3
pdppl 4096 2437 0 2370 137 50 87 99 0 8 20
pvpl 32 12439 0 0 101 0 101 101 0 265 0
pmappl 256 1214 0 1185 4 1 3 3 0 8 0
extentpl 40 46 0 28 1 0 1 1 0 8 0
phpool 112 498 0 57 13 0 13 13 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(ffffffff834fe5ae) at panic+0x1e5 sys/kern/subr_prf.c:198
unhandled_af(0) at unhandled_af+0x1a sys/net/if.c:-1
if_output_tso(ffff80000004e858,ffff80002a1d0910,ffff800000c43d50,fffff8006fb40d10,5dc) at if_output_tso+0x22b
ip_output(fffff8006fa73f00,0,fffff8006fcbd1b8,800,0,fffff8006fcbd250,37bf78196d912806) at ip_output+0x107f sys/netinet/ip_output.c:437
tcp_output(ffff8000015a18a0) at tcp_output+0x36e3 sys/netinet/tcp_output.c:1070
tcp_input_solocked(ffff80002a1d0d60,ffff80002a1d0d6c,0,2,ffff80002a1d0d58) at tcp_input_solocked+0x6582 sys/netinet/tcp_input.c:-1
tcp_input_mlist(ffffffff83afd850,2) at tcp_input_mlist+0x93 sys/netinet/tcp_input.c:-1
if_input_process(ffff80000004e858,ffff80002a1d0e48,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
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224
sched_idle(ffff80002999dff0) at sched_idle+0x371 sys/kern/kern_sched.c:192
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff80002999dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224
sched_idle(ffff80002999dff0) at sched_idle+0x371 sys/kern/kern_sched.c:192
end trace frame: 0x0, count: -5