uvm_fault(0xffffef806f05b7b0, 0x6aabbd0a, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at rtable_exists+0x13c: movq 0(%rax,%rcx,8),%r12
TID PID UID PRFLAGS PFLAGS CPU COMMAND
rtable_exists(0) at rtable_exists+0x13c sys/net/rtable.c:278
rtrequest_delete(ffff80002a2ac268,4,ffff80000157b000,ffff80002a2ac318,0) at rtrequest_delete+0xea sys/net/route.c:902
rt_ifa_del(ffff80000166aa00,800100,ffff80000166aa68,0) at rt_ifa_del+0x3a6 sys/net/route.c:1342
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff80000157b000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff80000157b000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff80000157b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a2ac560) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d01,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a2ac620) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(ffffef807093ee88,7,ffffef80097fd3a8,ffff800045fe9778) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(ffffef806fb1b148,ffff800045fe9778) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(ffffef806fb1b148,ffff800045fe9778) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(ffffef806fb1b148,ffff800045fe9778) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(ffffef806fb1b148,ffff800045fe9778) at closef+0x192 sys/kern/kern_descrip.c:1265
end trace frame: 0xffff80002a2ac800, 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{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
*cpu0: uvm_fault(0xffffef806f05b7b0, 0x6aabbd0a, 0, 1) -> e
ddb{0}> show kasan
No such command
ddb{0}> trace
rtable_exists(0) at rtable_exists+0x13c sys/net/rtable.c:278
rtrequest_delete(ffff80002a2ac268,4,ffff80000157b000,ffff80002a2ac318,0) at rtrequest_delete+0xea sys/net/route.c:902
rt_ifa_del(ffff80000166aa00,800100,ffff80000166aa68,0) at rt_ifa_del+0x3a6 sys/net/route.c:1342
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff80000157b000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff80000157b000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff80000157b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a2ac560) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d01,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a2ac620) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(ffffef807093ee88,7,ffffef80097fd3a8,ffff800045fe9778) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(ffffef806fb1b148,ffff800045fe9778) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(ffffef806fb1b148,ffff800045fe9778) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(ffffef806fb1b148,ffff800045fe9778) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(ffffef806fb1b148,ffff800045fe9778) at closef+0x192 sys/kern/kern_descrip.c:1265
fdfree(ffff800045fe9778) at fdfree+0x116 sys/kern/kern_descrip.c:1196
exit1(ffff800045fe9778,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff800045fe9778,ffff80002a2ac990,ffff80002a2ac8e0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a2ac990) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a2ac990) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7322b10b8a10, count: -19
ddb{0}> show registers
rdi 0xcf
rsi 0
rbp 0xffff80002a2ac1a0
rbx 0x1
rdx 0
rcx 0
rax 0x6aabbd0a
r8 0
r9 0
r10 0x20034ea8238d96c0
r11 0xaa8c9debdf9f8eb7
r12 0xffff800000c40ee0
r13 0xcf
r14 0
r15 0xffff80002a2ac150
rip 0xffffffff8201dd4c rtable_exists+0x13c
cs 0x8
rflags 0x10206 __ALIGN_SIZE+0xf206
rsp 0xffff80002a2ac150
ss 0x10
rtable_exists+0x13c: movq 0(%rax,%rcx,8),%r12
ddb{0}> show proc
PROC (syz-executor) tid=190466 pid=1792 tcnt=0 stat=onproc
flags process=a<EXEC,EXITING> proc=2000<WEXIT>
runpri=32, usrpri=50, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1
forw=0xffffffffffffffff, list=0xffff800045fe8550,0xffff800045fe8030
process=0xffff800045fee1c8 user=0xffff80002a2a7000, vmspace=0xffffef806f05b7b0
estcpu=36, cpticks=5, pctcpu=0.3, user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
71155 364176 70278 0 3 0x2 0 clonelk ifconfig
70278 215449 79892 0 3 0x100002 0x88 sigsusp sh
44905 335543 37685 0 3 0 0x80 nanoslp syz-executor
44905 507782 37685 0 3 0 0x4000080 kqpoll syz-executor
44905 377272 37685 0 3 0 0x4000080 fsleep syz-executor
28402 406361 20306 0 3 0 0x80 nanoslp syz-executor
28402 74075 20306 0 3 0 0x4000080 lockf syz-executor
28402 405802 20306 0 3 0 0x4000080 fsleep syz-executor
79892 409655 69370 0 3 0x2 0x80 wait syz-executor
20306 276668 69370 0 3 0x2 0x80 nanoslp syz-executor
91128 72217 1 0 3 0x100003 0x80 ttyin getty
33562 93359 69370 0 3 0x2 0x80 piperd syz-executor
43636 346654 69370 0 3 0x2 0x80 piperd syz-executor
48875 305002 69370 0 3 0x2 0x80 piperd syz-executor
62644 281954 69370 0 3 0x2 0x80 piperd syz-executor
37685 333392 69370 0 2 0x2 0 syz-executor
69370 442930 1 0 3 0x2 0x80 wait syz-executor
21932 8855 1 74 3 0x1100012 0x80 bpf pflogd
39823 330725 1 73 3 0x1100010 0x80 kqread syslogd
26722 15097 0 0 3 0x14000 0x200 bored smr
34481 201872 0 0 3 0x14000 0x200 pgzero zerothread
31747 343676 0 0 3 0x14000 0x200 aiodoned aiodoned
97782 383720 0 0 3 0x14000 0x200 syncer update
16804 146523 0 0 3 0x14000 0x200 cleaner cleaner
43578 103358 0 0 3 0x14000 0x200 reaper reaper
57517 38721 0 0 3 0x14000 0x200 pgdaemon pagedaemon
98505 515192 0 0 3 0x14000 0x200 bored viomb
64293 102680 0 0 3 0x14000 0x40000200 acpi0 acpi0
35488 29453 0 0 7 0x14000 0x40000200 idle1
35971 208289 0 0 3 0x14000 0x200 bored softnet1
97788 71357 0 0 3 0x14000 0x200 bored softnet0
36203 503064 0 0 3 0x14000 0x200 bored systqmp
71627 47275 0 0 3 0x14000 0x200 bored systq
95257 467786 0 0 3 0x14000 0x200 tmoslp softclockmp
11018 485294 0 0 3 0x14000 0x40000200 tmoslp softclock
24785 124317 0 0 3 0x14000 0x40000200 idle0
1 362013 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{0}> show all locks
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11054 12089K 12339K 166960K 12473 0
pcb 17 12K 12K 166960K 84 0
rtable 217 15K 16K 166960K 1230 0
pf 33 17K 37K 166960K 176 0
ifaddr 37 6K 7K 166960K 170 0
ifgroup 51 2K 2K 166960K 196 0
sysctl 1 1K 9K 166960K 6 0
counters 68 36K 37K 166960K 150 0
ioctlops 0 0K 4K 166960K 1755 0
iov 0 0K 24K 166960K 15 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1319 83K 84K 166960K 2015 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 7 0
VM map 2 1K 1K 166960K 2 0
sem 27 1K 2K 166960K 62 0
dirhash 12 2K 2K 166960K 21 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 14 49K 97K 166960K 873 0
sigio 0 0K 0K 166960K 4 0
proc 28 50K 180K 166960K 1378 0
subproc 72 4K 4K 166960K 324 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 36 0
in_multi 77 5K 6K 166960K 408 0
ether_multi 1 0K 0K 166960K 2 0
mrt 0 0K 0K 166960K 19 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 67 307K 307K 166960K 67 0
exec 0 0K 1K 166960K 773 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 123 92K 178K 166960K 8359 0
UVM aobj 21 2K 2K 166960K 22 0
pinsyscall 20 40K 108K 166960K 2779 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 7 0
NDP 11 0K 2K 166960K 121 0
temp 41 9119K 9139K 166960K 29381 0
kqueue 4 6K 26K 166960K 89 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 108 0 108 1 0 1 1 0 8 1
rtentry 176 415 0 322 6 0 6 6 0 8 0
unpcb 144 202 0 197 2 1 1 2 0 8 0
syncache 336 4 0 4 1 1 0 1 0 8 0
tcpcb 736 134 0 133 4 3 1 4 0 8 0
arp 136 73 0 58 1 0 1 1 0 8 0
inpcb 328 485 0 483 4 2 2 4 0 8 1
nd6 152 108 0 88 2 1 1 2 0 8 0
pkpcb 40 5 0 5 3 2 1 1 0 8 1
kcovpl 48 36 0 28 1 0 1 1 0 8 0
ppxss 1192 9 0 9 1 0 1 1 0 8 1
pppxif 1576 1 0 1 1 1 0 1 0 8 0
pffrag 232 4 0 0 1 0 1 1 0 482 0
pffrnode 88 4 0 0 1 0 1 1 0 8 0
pffrent 40 8 0 4 1 0 1 1 0 8 0
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfrktable 1344 3 0 3 1 1 0 1 0 8 0
pfanchor 1288 9 0 9 1 1 0 1 0 8 0
pftag 88 5 0 2 1 0 1 1 0 8 0
pfqueue 320 1 0 1 1 1 0 1 0 8 0
pfstitem 24 55 0 15 1 0 1 1 0 8 0
pfstkey 128 55 0 15 2 0 2 2 0 8 0
pfstate 448 54 0 15 5 0 5 5 0 8 0
pfrule 1360 61 0 55 2 0 2 2 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 1705 0 1309 35 4 31 31 0 8 4
art_table 40 1706 0 1309 5 0 5 5 0 8 0
art_node 32 415 0 331 1 0 1 1 0 8 0
sysvmsgpl 40 3 0 3 1 0 1 1 0 8 1
semupl 112 1 0 1 1 1 0 1 0 8 0
semapl 72 58 0 33 1 0 1 1 0 8 0
shmpl 120 19 0 1 1 0 1 1 0 8 0
dirhash 1024 23 0 6 3 0 3 3 0 8 0
dino2pl 256 2238 0 722 95 0 95 95 0 8 0
ffsino 296 2238 0 722 117 0 117 117 0 8 0
nchpl 144 2924 0 1129 67 0 67 67 0 8 0
vnodes 216 2846 0 0 159 0 159 159 0 8 0
namei 1024 14921 0 14921 4 3 1 3 0 8 1
percpumem 16 91 0 41 1 0 1 1 0 8 0
kstatmem 264 105 0 78 3 0 3 3 0 8 0
scsiplug 72 1 0 1 1 0 1 1 0 8 1
scxspl 216 11247 0 11247 11 10 1 8 1 8 1
plimitpl 152 191 0 179 1 0 1 1 0 8 0
sigapl 424 1147 0 1113 7 1 6 7 0 8 0
knotepl 120 354 0 0 11 0 11 11 0 8 0
kqueuepl 224 106 0 102 1 0 1 1 0 8 0
pipepl 344 231 0 204 4 0 4 4 0 8 0
fdescpl 528 1131 0 1113 3 0 3 3 0 8 0
filepl 160 5056 0 4879 13 2 11 13 0 8 0
lockfpl 104 194 0 192 1 0 1 1 0 8 0
lockfspl 48 89 0 88 1 0 1 1 0 8 0
sessionpl 144 95 0 90 1 0 1 1 0 8 0
pgrppl 48 138 0 125 1 0 1 1 0 8 0
ucredpl 104 586 0 578 1 0 1 1 0 8 0
zombiepl 144 1114 0 1113 1 0 1 1 0 8 0
processpl 1232 1147 0 1113 5 1 4 5 0 8 0
procpl 664 1735 0 1697 7 1 6 7 0 8 1
sosppl 176 2 0 2 1 1 0 1 0 8 0
sockpl 752 822 0 815 9 5 4 7 0 8 2
mcl64k 65536 2 0 0 1 0 1 1 0 8 0
mcl16k 16384 2 0 0 1 0 1 1 0 8 0
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 123 0 0 16 0 16 16 0 8 0
mcl2k2 2112 1 0 0 1 0 1 1 0 8 0
mcl2k 2048 19 0 0 3 0 3 3 0 8 0
mextrefs 64 17 0 0 1 0 1 1 0 8 0
mtagpl 96 2 0 0 1 0 1 1 0 8 0
mbufpl 256 205 0 0 12 0 12 12 0 8 0
bufpl 272 4383 0 107 286 0 286 286 0 8 0
anonpl 32 7622 0 0 62 0 62 62 0 247 0
amapchunkpl 152 24353 0 24075 25 3 22 25 0 158 7
amappl16 200 2501 0 2488 27 16 11 14 0 8 8
amappl15 192 8 0 8 2 2 0 1 0 8 0
amappl14 184 776 0 775 1 0 1 1 0 8 0
amappl13 176 198 0 195 1 0 1 1 0 8 0
amappl12 168 1495 0 1479 2 0 2 2 0 8 0
amappl11 160 15 0 15 2 2 0 1 0 8 0
amappl10 152 66 0 61 1 0 1 1 0 8 0
amappl9 144 288 0 287 1 0 1 1 0 8 0
amappl8 136 212 0 209 1 0 1 1 0 8 0
amappl7 128 208 0 203 1 0 1 1 0 8 0
amappl6 120 445 0 442 1 0 1 1 0 8 0
amappl5 112 107 0 105 1 0 1 1 0 8 0
amappl4 104 384 0 372 1 0 1 1 0 8 0
amappl3 96 4447 0 4399 3 0 3 3 0 8 0
amappl2 88 1156 0 1125 2 0 2 2 0 8 0
amappl1 80 15495 0 15321 16 3 13 16 0 8 1
amappl 88 7075 0 6979 5 0 5 5 0 92 1
uvmvnodes 80 106 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 254 0 254 2 1 1 1 0 8 1
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 21 0 1 1 0 1 1 0 8 0
uaddrrnd 24 1131 0 1113 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 1131 0 1113 1 0 1 1 0 8 0
vmmpekpl 168 10471 0 10415 3 0 3 3 0 8 0
vmmpepl 168 80797 0 80008 105 8 97 98 0 357 46
vmsppl 488 1130 0 1113 5 0 5 5 0 8 2
rwobjpl 80 24862 0 24341 33 5 28 28 0 8 4
pdppl 4096 2269 0 2226 145 94 51 87 0 8 8
pvpl 32 14337 0 0 116 0 116 116 0 265 0
pmappl 256 1130 0 1113 3 0 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 621 0 107 16 0 16 16 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
rtable_exists(0) at rtable_exists+0x13c sys/net/rtable.c:278
rtrequest_delete(ffff80002a2ac268,4,ffff80000157b000,ffff80002a2ac318,0) at rtrequest_delete+0xea sys/net/route.c:902
rt_ifa_del(ffff80000166aa00,800100,ffff80000166aa68,0) at rt_ifa_del+0x3a6 sys/net/route.c:1342
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 in_remove_prefix sys/netinet/in.c:810 [inline]
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 in_ifscrub sys/netinet/in.c:636 [inline]
in_purgeaddr(ffff80000166aa00) at in_purgeaddr+0x129 sys/netinet/in.c:751
in_ifdetach(ffff80000157b000) at in_ifdetach+0x16e sys/netinet/in.c:1030
if_detach(ffff80000157b000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff80000157b000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff80002a2ac560) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d01,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80002a2ac620) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(ffffef807093ee88,7,ffffef80097fd3a8,ffff800045fe9778) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(ffffef806fb1b148,ffff800045fe9778) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(ffffef806fb1b148,ffff800045fe9778) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(ffffef806fb1b148,ffff800045fe9778) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(ffffef806fb1b148,ffff800045fe9778) at closef+0x192 sys/kern/kern_descrip.c:1265
fdfree(ffff800045fe9778) at fdfree+0x116 sys/kern/kern_descrip.c:1196
exit1(ffff800045fe9778,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff800045fe9778,ffff80002a2ac990,ffff80002a2ac8e0) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80002a2ac990) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a2ac990) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7322b10b8a10, count: -19
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
ddb{1}>