login: dĪ5Ö%g+dĪ5Ö%g+panic: pfi_dynaddr_update
Stopped at db_enter+0x18: addq $0x8,%rsp
TID PID UID PRFLAGS PFLAGS CPU COMMAND
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pfi_kif_update(ffff800000aa4f00) at pfi_kif_update+0x17a sys/net/pf_if.c:452
pfi_detach_ifnet(ffff800000aba800) at pfi_detach_ifnet+0x4d sys/net/pf_if.c:267
if_detach(ffff800000aba800) at if_detach+0x15d sys/net/if.c:1114
tun_clone_destroy(ffff800000aba800) at tun_clone_destroy+0x1c6 sys/net/if_tun.c:278
spec_close(ffff800015946950) at spec_close+0x3b0 sys/kern/spec_vnops.c:553
VOP_CLOSE(fffffd802f8835c8,2,fffffd803f7c66c0,ffff8000ffff3160) at VOP_CLOSE+0xc8 sys/kern/vfs_vops.c:174
vn_closefile(fffffd803611d800,ffff8000ffff3160) at vn_closefile+0x14b vn_close sys/kern/vfs_vnops.c:289 [inline]
vn_closefile(fffffd803611d800,ffff8000ffff3160) at vn_closefile+0x14b sys/kern/vfs_vnops.c:587
fdrop(fffffd803611d800,ffff8000ffff3160) at fdrop+0xc9 sys/kern/kern_descrip.c:1273
closef(fffffd803611d800,ffff8000ffff3160) at closef+0x118 sys/kern/kern_descrip.c:1257
fdfree(ffff8000ffff3160) at fdfree+0xf7 sys/kern/kern_descrip.c:1189
exit1(ffff8000ffff3160,0,1) at exit1+0x32f sys/kern/kern_exit.c:196
sys_exit(ffff8000ffff3160,ffff800015946bf0,ffff800015946c60) at sys_exit+0x17 sys/kern/kern_exit.c:94
end trace frame: 0xffff800015946cb0, count: 0
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
pfi_dynaddr_update
ddb> trace
db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398
panic() at panic+0x15c sys/kern/subr_prf.c:207
pfi_kif_update(ffff800000aa4f00) at pfi_kif_update+0x17a sys/net/pf_if.c:452
pfi_detach_ifnet(ffff800000aba800) at pfi_detach_ifnet+0x4d sys/net/pf_if.c:267
if_detach(ffff800000aba800) at if_detach+0x15d sys/net/if.c:1114
tun_clone_destroy(ffff800000aba800) at tun_clone_destroy+0x1c6 sys/net/if_tun.c:278
spec_close(ffff800015946950) at spec_close+0x3b0 sys/kern/spec_vnops.c:553
VOP_CLOSE(fffffd802f8835c8,2,fffffd803f7c66c0,ffff8000ffff3160) at VOP_CLOSE+0xc8 sys/kern/vfs_vops.c:174
vn_closefile(fffffd803611d800,ffff8000ffff3160) at vn_closefile+0x14b vn_close sys/kern/vfs_vnops.c:289 [inline]
vn_closefile(fffffd803611d800,ffff8000ffff3160) at vn_closefile+0x14b sys/kern/vfs_vnops.c:587
fdrop(fffffd803611d800,ffff8000ffff3160) at fdrop+0xc9 sys/kern/kern_descrip.c:1273
closef(fffffd803611d800,ffff8000ffff3160) at closef+0x118 sys/kern/kern_descrip.c:1257
fdfree(ffff8000ffff3160) at fdfree+0xf7 sys/kern/kern_descrip.c:1189
exit1(ffff8000ffff3160,0,1) at exit1+0x32f sys/kern/kern_exit.c:196
sys_exit(ffff8000ffff3160,ffff800015946bf0,ffff800015946c60) at sys_exit+0x17 sys/kern/kern_exit.c:94
syscall(ffff800015946cc0) at syscall+0x508
Xsyscall(0,1,0,1,0,7f7ffffc3674) at Xsyscall+0x128
end of kernel
end trace frame: 0x7f7ffffc3640, count: -16
ddb> show registers
rdi 0
rsi 0x1
rbp 0xffff8000159466e0
rbx 0xffff800015946790
rdx 0x2
rcx 0
rax 0
r8 0xffff8000159466a0
r9 0x1
r10 0
r11 0xc57b7a9562f07e21
r12 0x3000000008
r13 0xffff8000159466f0
r14 0x100
r15 0x1
rip 0xffffffff81f7c338 db_enter+0x18
cs 0x8
rflags 0x246
rsp 0xffff8000159466d0
ss 0x10
db_enter+0x18: addq $0x8,%rsp
ddb> show proc
PROC (syz-executor.0) pid=387333 stat=onproc
flags process=1008<EXITING,SINGLEEXIT> proc=2000<WEXIT>
pri=32, usrpri=79, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff3650,0xffff8000ffff2518
process=0xffff8000ffff6370 user=0xffff800015941000, vmspace=0xfffffd803f014000
estcpu=36, cpticks=1, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
8591 388596 66311 0 2 0 syz-executor.1
8591 197329 66311 0 2 0x4000000 syz-executor.1
30680 456887 88674 0 3 0x82 nanosleep syz-executor.0
12323 9139 1 0 3 0x100083 ttyin getty
66311 320156 88674 0 3 0x82 nanosleep syz-executor.1
60267 58225 0 0 3 0x14200 bored sosplice
88674 40180 91703 0 3 0x82 kqread syz-fuzzer
88674 144546 91703 0 3 0x4000082 thrsleep syz-fuzzer
88674 39902 91703 0 3 0x4000082 thrsleep syz-fuzzer
88674 365047 91703 0 3 0x4000082 thrsleep syz-fuzzer
88674 90414 91703 0 3 0x4000082 thrsleep syz-fuzzer
88674 323928 91703 0 3 0x4000082 thrsleep syz-fuzzer
88674 58409 91703 0 3 0x4000082 thrsleep syz-fuzzer
88674 152836 91703 0 3 0x4000082 thrsleep syz-fuzzer
91703 250209 30737 0 3 0x10008a pause ksh
30737 95331 7887 0 3 0x92 select sshd
7887 462739 1 0 3 0x80 select sshd
13015 344657 58286 73 3 0x100090 kqread syslogd
58286 498538 1 0 3 0x100082 netio syslogd
96536 220281 1 77 3 0x100090 poll dhclient
1686 244663 1 0 3 0x80 poll dhclient
16806 298621 0 0 2 0x14200 zerothread
77423 236508 0 0 3 0x14200 aiodoned aiodoned
33341 453123 0 0 3 0x14200 syncer update
87409 372756 0 0 3 0x14200 cleaner cleaner
210 343699 0 0 3 0x14200 reaper reaper
5818 414206 0 0 3 0x14200 pgdaemon pagedaemon
35597 119785 0 0 3 0x14200 bored crynlk
57604 352791 0 0 3 0x14200 bored crypto
1229 422785 0 0 3 0x40014200 acpi0 acpi0
70959 211164 0 0 2 0x14200 softnet
71123 244520 0 0 3 0x14200 bored systqmp
4636 92878 0 0 3 0x14200 bored systq
85393 202424 0 0 3 0x40014200 bored softclock
66768 25906 0 0 3 0x40014200 idle0
50894 198974 0 0 3 0x14200 bored smr
1 449080 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 Kern Lim
devbuf 9579 6381K 7386K 78643K 33448 0 0
pcb 13 8K 8K 78643K 623 0 0
rtable 112 4K 4K 78643K 2525 0 0
ifaddr 83 19K 21K 78643K 911 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 413 0 0
iov 0 0K 44K 78643K 1094 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1204 76K 77K 78643K 9495 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 9K 78643K 113 0 0
VM map 2 0K 0K 78643K 2 0 0
sem 12 0K 1K 78643K 888 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1793 195K 288K 78643K 12645 0 0
file desc 6 17K 25K 78643K 8656 0 0
sigio 0 0K 0K 78643K 162 0 0
proc 42 30K 54K 78643K 2104 0 0
subproc 32 2K 2K 78643K 433 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
ip_moptions 0 0K 0K 78643K 821 0 0
in_multi 33 2K 2K 78643K 544 0 0
ether_multi 1 0K 0K 78643K 34 0 0
mrt 0 0K 0K 78643K 18 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 102 450K 450K 78643K 102 0 0
exec 0 0K 1K 78643K 1299 0 0
pfkey data 0 0K 0K 78643K 3 0 0
pagedep 1 8K 8K 78643K 1 0 0
inodedep 1 32K 32K 78643K 1 0 0
newblk 1 0K 0K 78643K 1 0 0
VM swap 7 26K 26K 78643K 7 0 0
UVM amap 105 21K 31K 78643K 21546 0 0
UVM aobj 130 4K 4K 78643K 162 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
ip6_options 0 0K 1K 78643K 321 0 0
NDP 20 0K 0K 78643K 275 0 0
temp 226 3527K 4164K 78643K 134778 0 0
kqueue 1 0K 0K 78643K 76 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
arp 64 57 0 51 1 0 1 1 0 8 0
rtpcb 80 402 0 400 1 0 1 1 0 8 0
rtentry 112 307 0 263 3 1 2 2 0 8 0
unpcb 120 3091 0 3083 1 0 1 1 0 8 0
syncache 264 4 0 4 1 1 0 1 0 8 0
tcpqe 32 3669 0 3669 1 1 0 1 0 8 0
tcpcb 544 1326 0 1322 1 0 1 1 0 8 0
ipq 40 19 0 19 9 9 0 1 0 8 0
ipqe 40 37 0 37 9 9 0 1 0 8 0
inpcb 280 3807 0 3800 6 5 1 2 0 8 0
ip6q 72 4 0 4 3 3 0 1 0 8 0
ip6af 48 8 0 8 3 3 0 1 0 8 0
nd6 48 75 0 69 1 0 1 1 0 8 0
pkpcb 40 44 0 44 16 16 0 1 0 8 0
swfcl 56 6 0 0 1 0 1 1 0 8 0
ppxss 1128 143 0 143 24 23 1 1 0 8 1
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1258 0 1064 18 5 13 13 0 8 0
art_table 32 1259 0 1064 2 0 2 2 0 8 0
art_node 16 302 0 262 1 0 1 1 0 8 0
sysvmsgpl 40 22 0 18 2 1 1 1 0 8 0
semupl 112 3 0 3 1 1 0 1 0 8 0
semapl 112 886 0 876 1 0 1 1 0 8 0
shmpl 112 160 0 32 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino1pl 128 15022 0 13620 47 0 47 47 0 8 0
ffsino 240 15022 0 13620 84 0 84 84 0 8 0
nchpl 144 27275 0 25645 61 0 61 61 0 8 0
uvmvnodes 72 6134 0 0 112 0 112 112 0 8 0
vnodes 200 6134 0 0 323 0 323 323 0 8 0
namei 1024 89856 0 89856 3 2 1 1 0 8 1
scsiplug 64 12 0 12 10 10 0 1 0 8 0
scxspl 192 88583 0 88583 51 50 1 7 0 8 1
plimitpl 152 692 0 685 1 0 1 1 0 8 0
sigapl 432 8768 0 8754 2 0 2 2 0 8 0
futexpl 56 140602 0 140602 3 2 1 1 0 8 1
knotepl 112 1976 0 1955 1 0 1 1 0 8 0
kqueuepl 104 1923 0 1920 1 0 1 1 0 8 0
pipepl 112 4828 0 4807 9 8 1 2 0 8 0
fdescpl 424 8769 0 8754 2 0 2 2 0 8 0
filepl 120 52841 0 52740 7 3 4 5 0 8 0
lockfpl 104 2838 0 2838 5 4 1 1 0 8 1
lockfspl 48 962 0 962 5 4 1 1 0 8 1
sessionpl 112 50 0 40 1 0 1 1 0 8 0
pgrppl 48 145 0 135 1 0 1 1 0 8 0
ucredpl 96 10658 0 10651 1 0 1 1 0 8 0
zombiepl 144 8756 0 8755 1 0 1 1 0 8 0
processpl 864 8785 0 8755 4 0 4 4 0 8 0
procpl 632 19497 0 19459 4 0 4 4 0 8 0
sosppl 128 89 0 89 29 28 1 1 0 8 1
sockpl 384 7421 0 7404 10 7 3 4 0 8 1
mcl64k 65536 2837 0 2837 257 251 6 64 0 8 6
mcl16k 16384 26 0 26 19 18 1 1 0 8 1
mcl12k 12288 173 0 173 23 22 1 1 0 8 1
mcl9k 9216 111 0 111 31 30 1 1 0 8 1
mcl8k 8192 160 0 160 28 28 0 1 0 8 0
mcl4k 4096 425 0 425 10 9 1 1 0 8 1
mcl2k2 2112 71 0 71 28 27 1 1 0 8 1
mcl2k 2048 71213 0 71166 16 9 7 12 0 8 0
mtagpl 80 256 0 254 3 2 1 1 0 8 0
mbufpl 256 160545 0 160472 151 142 9 41 0 8 2
bufpl 256 30336 0 24199 385 1 384 384 0 8 0
anonpl 16 854328 0 844083 277 215 62 67 0 62 10
amapchunkpl 152 39870 0 39766 100 93 7 18 0 158 2
amappl16 192 45086 0 44382 304 260 44 47 0 8 8
amappl15 184 3264 0 3264 4 4 0 1 0 8 0
amappl14 176 3329 0 3321 1 0 1 1 0 8 0
amappl13 168 1425 0 1425 5 5 0 1 0 8 0
amappl12 160 1613 0 1609 1 0 1 1 0 8 0
amappl11 152 876 0 865 1 0 1 1 0 8 0
amappl10 144 623 0 621 1 0 1 1 0 8 0
amappl9 136 1626 0 1622 1 0 1 1 0 8 0
amappl8 128 1111 0 1082 1 0 1 1 0 8 0
amappl7 120 608 0 601 1 0 1 1 0 8 0
amappl6 112 837 0 830 1 0 1 1 0 8 0
amappl5 104 1930 0 1919 1 0 1 1 0 8 0
amappl4 96 6837 0 6808 1 0 1 1 0 8 0
amappl3 88 5885 0 5874 1 0 1 1 0 8 0
amappl2 80 69548 0 69472 3 1 2 3 0 8 0
amappl1 72 160866 0 160434 25 15 10 19 0 8 0
amappl 80 20158 0 20122 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
dma64 64 259 0 259 1 1 0 1 0 8 0
dma32 32 7 0 7 1 1 0 1 0 8 0
dma16 16 17 0 17 1 1 0 1 0 8 0
aobjpl 64 161 0 32 3 0 3 3 0 8 0
uaddrrnd 24 8769 0 8754 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 8769 0 8754 1 0 1 1 0 8 0
vmmpekpl 168 51894 0 51870 2 0 2 2 0 8 0
vmmpepl 168 1023276 0 1021409 393 292 101 107 0 357 19
vmsppl 272 8768 0 8754 3 2 1 2 0 8 0
pdppl 4096 17544 0 17508 6 1 5 6 0 8 0
pvpl 32 2371567 0 2358116 526 373 153 225 0 265 24
pmappl 200 8768 0 8754 1 0 1 1 0 8 0
extentpl 40 41 0 26 1 0 1 1 0 8 0
phpool 112 987 0 470 18 1 17 17 0 8 0