kernel: protection fault trap, code=0
Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d
ddb{1}>
ddb{1}> set $lines = 0
ddb{1}> set $maxwidth = 0
ddb{1}> show panic
the kernel did not panic
ddb{1}> show kasan
No such command
ddb{1}> trace
in_ifdetach(ffff8000015ff000) at in_ifdetach+0x67 sys/netinet/in.c:1018
if_detach(ffff8000015ff000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff8000015ff000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff800033399fc0) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80003339a080) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffb8070c0d2b0,7,fffffb80097fd410,ffff80002a23c548) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(fffffb806d0b45e0,ffff80002a23c548) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffb806d0b45e0,ffff80002a23c548) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(fffffb806d0b45e0,ffff80002a23c548) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffb806d0b45e0,ffff80002a23c548) at closef+0x192 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a23c548) at fdfree+0x116 sys/kern/kern_descrip.c:1196
exit1(ffff80002a23c548,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a23c548,ffff80003339a3f0,ffff80003339a340) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003339a3f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003339a3f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7e955dfefb40, count: -15
ddb{1}> show registers
rdi 0
rsi 0
rbp 0xffff800033399eb0
rbx 0xffff80000002a080
rdx 0
rcx 0xffff80002a23c548
rax 0xdead4110dead4110
r8 0xffffffffffffffff
r9 0x1
r10 0x1b972836d12fab72
r11 0xf336d178231c395c
r12 0
r13 0xffff8000015ff048
r14 0xffff8000015ff000
r15 0xdead0036dead4110
rip 0xffffffff8256c207 in_ifdetach+0x67
cs 0x8
rflags 0x10282 __ALIGN_SIZE+0xf282
rsp 0xffff800033399e60
ss 0x10
in_ifdetach+0x67: movzbl 0x1(%rax),%r12d
ddb{1}> show proc
PROC (syz-executor) tid=52594 pid=33606 tcnt=0 stat=onproc
flags process=18<EXITING,SUGID> proc=2000<WEXIT>
runpri=32, usrpri=53, slppri=32, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1
forw=0xffffffffffffffff, list=0xffff80002a23cd10,0xffff80002a23c028
process=0xffff800045ff09b8 user=0xffff800033395000, vmspace=0xfffffb806d1585d8
estcpu=3, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0
ddb{1}> ps
PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND
49208 206109 35264 32767 3 0x10 0x80 nanoslp syz-executor
49208 141632 35264 32767 3 0x10 0x4000080 sbwait syz-executor
49208 53859 35264 32767 3 0x10 0x4000080 fsleep syz-executor
49208 274546 35264 32767 3 0x10 0x4000080 fsleep syz-executor
27110 79005 17468 0 3 0x2 0 clonelk ifconfig
17468 33403 67411 0 3 0x100002 0x88 sigsusp sh
67411 383754 1435 0 3 0 0x80 wait syz-executor
1435 178604 53432 0 3 0x2 0x80 wait syz-executor
58110 328514 98486 32767 3 0x11 0x80 nanoslp syz-executor
58110 235254 98486 32767 3 0x11 0x4000080 fsleep syz-executor
58110 209923 98486 32767 3 0x11 0x4000080 kqsel syz-executor
58110 157082 98486 32767 3 0x11 0x4000080 fsleep syz-executor
76582 70425 72006 0 3 0x100002 0x80 sbwait arp
72006 512527 95425 0 3 0x100002 0x88 sigsusp sh
7595 121631 57708 32767 3 0x10 0x80 nanoslp syz-executor
95425 66996 4072 0 3 0 0x80 wait syz-executor
98486 131545 15451 32767 3 0x10 0x80 nanoslp syz-executor
35264 84413 6284 32767 3 0x10 0x80 nanoslp syz-executor
69864 472825 53432 0 3 0x2 0x80 wait syz-executor
57708 417989 53432 0 3 0x2 0x80 wait syz-executor
11072 438155 53432 0 3 0x2 0x80 wait syz-executor
4072 58105 53432 0 3 0x2 0x80 wait syz-executor
42933 289120 53432 0 3 0x2 0x80 wait syz-executor
15451 191531 53432 0 3 0x2 0x80 wait syz-executor
6284 338796 53432 0 3 0x2 0x80 wait syz-executor
53432 392599 99293 0 3 0x2 0x80 kqread syz-executor
99293 288908 47722 0 3 0x100002 0x88 sigsusp ksh
47722 146098 66949 0 3 0x10 0x88 kqread sshd-session
66949 88432 19572 0 3 0x12 0x80 kqread sshd-session
76778 519321 1 0 3 0x100003 0x80 ttyin getty
19572 1213 1 0 3 0 0x88 kqread sshd
90626 841 88496 73 3 0x1100010 0x80 kqread syslogd
88496 265555 1 0 3 0x100002 0x80 sbwait syslogd
35325 454559 1 0 3 0x100000 0x80 kqread resolvd
3539 382678 55716 77 3 0x100012 0x80 kqread dhcpleased
81978 62159 55716 77 3 0x100012 0x80 kqread dhcpleased
55716 12588 1 0 3 0 0x80 kqread dhcpleased
80618 400501 0 0 3 0x14000 0x200 bored smr
16896 197710 0 0 3 0x14000 0x200 pgzero zerothread
49870 252781 0 0 3 0x14000 0x200 aiodoned aiodoned
80602 113965 0 0 3 0x14000 0x200 syncer update
80501 264041 0 0 3 0x14000 0x200 cleaner cleaner
35153 322968 0 0 3 0x14000 0x200 reaper reaper
5440 73027 0 0 3 0x14000 0x200 pgdaemon pagedaemon
237 362032 0 0 3 0x14000 0x200 bored viomb
43498 96738 0 0 3 0x14000 0x40000200 acpi0 acpi0
72820 413389 0 0 3 0x14000 0x40000200 idle1
91445 267674 0 0 3 0x14000 0x200 bored softnet1
37049 156233 0 0 3 0x14000 0x200 bored softnet0
57520 199980 0 0 3 0x14000 0x200 smrbar systqmp
48900 457627 0 0 3 0x14000 0x200 bored systq
79127 40033 0 0 3 0x14000 0x200 tmoslp softclockmp
50760 121855 0 0 3 0x14000 0x40000200 tmoslp softclock
91560 94005 0 0 7 0x14000 0x40000200 idle0
1 92808 0 0 3 0x2 0x80 wait init
0 0 -1 0 3 0x10000 0x200 scheduler swapper
ddb{1}> show all locks
Process 57520 (systqmp) thread 0xffff800045ffe000 (199980)
shared rwlock systqmp r = 0 (0xffffffff838ecda8)
#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{1}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 11044 12015K 12034K 166960K 12139 0
pcb 17 12K 12K 166960K 17 0
rtable 199 5K 6K 166960K 330 0
pf 29 16K 16K 166960K 31 0
ifaddr 36 6K 7K 166960K 42 0
ifgroup 46 2K 2K 166960K 50 0
sysctl 1 1K 9K 166960K 5 0
counters 68 36K 37K 166960K 70 0
ioctlops 0 0K 2K 166960K 28 0
iov 0 0K 2K 166960K 3 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1287 81K 81K 166960K 1362 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 3 5K 5K 166960K 6 0
VM map 2 1K 1K 166960K 2 0
sem 2 0K 0K 166960K 2 0
dirhash 12 2K 2K 166960K 12 0
ACPI 1692 195K 286K 166960K 12470 0
file desc 25 93K 125K 166960K 170 0
sigio 0 0K 0K 166960K 1 0
proc 65 115K 163K 166960K 502 0
subproc 72 4K 4K 166960K 81 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 8 0
in_multi 78 5K 6K 166960K 91 0
ether_multi 1 0K 0K 166960K 1 0
mrt 1 0K 0K 166960K 4 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 49 228K 228K 166960K 49 0
exec 0 0K 1K 166960K 426 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 231 162K 169K 166960K 3031 0
UVM aobj 39 2K 2K 166960K 40 0
pinsyscall 47 94K 113K 166960K 1238 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 3 0
NDP 22 1K 1K 166960K 25 0
temp 35 9114K 9134K 166960K 3581 0
kqueue 15 22K 24K 166960K 31 0
SYN cache 2 16K 16K 166960K 2 0
ddb{1}> 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 39 0 35 1 0 1 1 0 8 0
rtentry 176 104 0 13 5 0 5 5 0 8 0
unpcb 144 56 0 38 1 0 1 1 0 8 0
syncache 336 4 0 4 1 0 1 1 0 8 1
tcpcb 736 92 0 88 7 0 7 7 0 8 6
arp 136 17 0 2 1 0 1 1 0 8 0
inpcb 328 262 0 254 10 0 10 10 0 8 9
nd6 152 22 0 4 1 0 1 1 0 8 0
kcovpl 48 9 0 1 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 424 0 57 27 0 27 27 0 8 1
art_table 40 425 0 57 5 0 5 5 0 8 0
art_node 32 104 0 11 1 0 1 1 0 8 0
shmpl 120 37 0 1 2 0 2 2 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1586 0 124 92 0 92 92 0 8 0
ffsino 296 1586 0 124 113 0 113 113 0 8 0
nchpl 144 1818 0 123 63 0 63 63 0 8 0
vnodes 216 1676 0 0 94 0 94 94 0 8 0
namei 1024 6208 0 6208 3 1 2 2 0 8 2
percpumem 16 51 0 1 1 0 1 1 0 8 0
kstatmem 264 25 0 2 2 0 2 2 0 8 0
scxspl 216 6246 0 6246 4 1 3 3 1 8 3
plimitpl 152 42 0 18 2 0 2 2 0 8 0
sigapl 424 458 0 405 7 0 7 7 0 8 0
knotepl 120 300 0 0 10 0 10 10 0 8 0
kqueuepl 224 32 0 21 1 0 1 1 0 8 0
pipepl 344 123 0 96 3 0 3 3 0 8 0
fdescpl 528 442 0 405 4 0 4 4 0 8 0
filepl 160 1768 0 1559 13 0 13 13 0 8 4
lockfpl 104 78 0 76 1 0 1 1 0 8 0
lockfspl 48 7 0 5 1 0 1 1 0 8 0
sessionpl 144 26 0 9 1 0 1 1 0 8 0
pgrppl 48 35 0 10 1 0 1 1 0 8 0
ucredpl 104 134 0 117 1 0 1 1 0 8 0
zombiepl 144 409 0 405 1 0 1 1 0 8 0
processpl 1232 458 0 405 5 0 5 5 0 8 0
procpl 664 511 0 452 6 0 6 6 0 8 0
sosppl 176 2 0 2 1 0 1 1 0 8 1
sockpl 752 357 0 327 14 0 14 14 0 8 10
mcl8k 8192 2 0 0 1 0 1 1 0 8 0
mcl4k 4096 130 0 0 17 0 17 17 0 8 0
mcl2k 2048 21 0 0 3 0 3 3 0 8 0
mextrefs 64 20 0 0 1 0 1 1 0 8 0
mtagpl 96 2 0 0 1 0 1 1 0 8 0
mbufpl 256 196 0 0 13 0 13 13 0 8 0
bufpl 272 2257 0 102 144 0 144 144 0 8 0
anonpl 32 3558 0 0 29 0 29 29 0 247 0
amapchunkpl 152 8491 0 8014 22 0 22 22 0 158 1
amappl16 200 1693 0 1679 5 0 5 5 0 8 4
amappl15 192 6 0 6 1 0 1 1 0 8 1
amappl14 184 405 0 402 1 0 1 1 0 8 0
amappl13 176 111 0 100 1 0 1 1 0 8 0
amappl12 168 673 0 640 2 0 2 2 0 8 0
amappl11 160 7 0 7 1 0 1 1 0 8 1
amappl10 152 59 0 49 1 0 1 1 0 8 0
amappl9 144 297 0 297 1 0 1 1 0 8 1
amappl8 136 109 0 107 1 0 1 1 0 8 0
amappl7 128 134 0 122 1 0 1 1 0 8 0
amappl6 120 151 0 145 1 0 1 1 0 8 0
amappl5 112 94 0 86 1 0 1 1 0 8 0
amappl4 104 255 0 239 1 0 1 1 0 8 0
amappl3 96 1486 0 1392 4 1 3 3 0 8 0
amappl2 88 556 0 482 2 0 2 2 0 8 0
amappl1 80 10128 0 9535 14 0 14 14 0 8 0
amappl 88 2375 0 2212 5 0 5 5 0 92 0
uvmvnodes 80 96 0 0 2 0 2 2 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 39 0 1 1 0 1 1 0 8 0
uaddrrnd 24 442 0 405 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 442 0 405 1 0 1 1 0 8 0
vmmpekpl 168 5591 0 5549 2 0 2 2 0 8 0
vmmpepl 168 37468 0 35509 92 0 92 92 0 357 4
vmsppl 488 441 0 405 7 1 6 6 0 8 0
rwobjpl 80 14066 0 13058 22 0 22 22 0 8 1
pdppl 4096 891 0 810 107 10 97 97 0 8 16
pvpl 32 9300 0 0 76 1 75 75 0 265 0
pmappl 256 441 0 405 4 1 3 3 0 8 0
extentpl 40 45 0 27 1 0 1 1 0 8 0
phpool 112 426 0 14 12 0 12 12 0 8 0
ddb{1}> machine ddbcpu 0
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
ddb{0}> trace
x86_ipi_db(ffffffff838e0ff0) 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(ffffffff838e0ff0) at sched_idle+0x371 sys/kern/kern_sched.c:192
end trace frame: 0x0, count: -5
ddb{0}> machine ddbcpu 1
Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d
ddb{1}> trace
in_ifdetach(ffff8000015ff000) at in_ifdetach+0x67 sys/netinet/in.c:1018
if_detach(ffff8000015ff000) at if_detach+0x2fe sys/net/if.c:1311
tun_clone_destroy(ffff8000015ff000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343
if_clone_destroy(ffff800033399fc0) at if_clone_destroy+0x205 sys/net/if.c:1480
tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526
spec_close(ffff80003339a080) at spec_close+0x417 sys/kern/spec_vnops.c:-1
VOP_CLOSE(fffffb8070c0d2b0,7,fffffb80097fd410,ffff80002a23c548) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156
vn_closefile(fffffb806d0b45e0,ffff80002a23c548) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline]
vn_closefile(fffffb806d0b45e0,ffff80002a23c548) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621
fdrop(fffffb806d0b45e0,ffff80002a23c548) at fdrop+0x121 sys/kern/kern_descrip.c:1281
closef(fffffb806d0b45e0,ffff80002a23c548) at closef+0x192 sys/kern/kern_descrip.c:1265
fdfree(ffff80002a23c548) at fdfree+0x116 sys/kern/kern_descrip.c:1196
exit1(ffff80002a23c548,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215
sys_exit(ffff80002a23c548,ffff80003339a3f0,ffff80003339a340) at sys_exit+0x1a sys/kern/kern_exit.c:-1
syscall(ffff80003339a3f0) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80003339a3f0) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7e955dfefb40, count: -15