kernel: protection fault trap, code=0 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> show kasan No such command ddb> trace in_ifdetach(ffff8000015f8000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f8000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f8000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a86d280) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a86d340) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd00741f1460,7,fffffd0007ffd820,ffff80002a7614d0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd006cf6b9e8,ffff80002a7614d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd006cf6b9e8,ffff80002a7614d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffd006cf6b9e8,ffff80002a7614d0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffd006cf6b9e8,ffff80002a7614d0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7614d0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7614d0,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7614d0,ffff80002a86d6a0,ffff80002a86d5f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a86d6a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a86d6a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76b5edc58940, count: -15 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a86d170 rbx 0xffff800001616680 rdx 0 rcx 0x6b1c6cbbc30aa500 rax 0xdead4110dead4110 r8 0xffffffffffffffff r9 0 r10 0xc2253622f3ccfe3a r11 0xb5c21a19662f10ce r12 0x5 r13 0xffff8000015f8048 r14 0xffff8000015f8000 r15 0xdead0036dead4110 rip 0xffffffff82ade047 in_ifdetach+0x67 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002a86d120 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> show proc PROC (syz-executor) tid=29522 pid=88516 tcnt=0 stat=onproc flags process=a proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a737230,0xffff80002a761a10 process=0xffff80002a78ed10 user=0xffff80002a868000, vmspace=0xfffffd00742c6008 estcpu=36, cpticks=2, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 32786 147429 80966 0 2 0x100000 0 sh 90291 70974 28267 0 3 0x1000 0x2000 suspend syz-executor 90291 169198 28267 0 3 0x1000 0x4080000 fltagain2 syz-executor 90291 45132 28267 0 3 0x1000 0x4080000 fltagain2 syz-executor 8637 62292 8379 0 3 0x1000 0x2000 suspend syz-executor 8637 506810 8379 0 3 0x1000 0x4080000 biowait syz-executor 8637 255042 8379 0 3 0x1000 0x4080000 inode syz-executor 80966 172009 85748 0 3 0x100002 0x88 sigsusp sh 28267 271298 3278 0 3 0x2 0x80 nanoslp syz-executor 8379 36308 3278 0 3 0x2 0x80 nanoslp syz-executor 85748 51230 3278 0 3 0x2 0x80 wait syz-executor 53286 309817 3278 0 3 0x2 0x80 piperd syz-executor 47735 390003 3278 0 3 0x2 0 biowait syz-executor 36807 122436 3278 0 3 0x2 0x80 piperd syz-executor 3278 345888 58349 0 3 0x2 0x80 wait syz-executor 58349 347256 33479 0 3 0x100002 0x88 sigsusp ksh 33479 293295 85621 0 3 0x10 0x88 kqread sshd-session 85621 306602 41292 0 3 0x12 0x80 kqread sshd-session 33319 336550 1 0 3 0x100003 0x80 ttyin getty 41292 230798 1 0 3 0 0x88 kqread sshd 88335 228916 82479 73 3 0x1100010 0x80 kqread syslogd 82479 338109 1 0 3 0x100002 0x80 sbwait syslogd 39292 260827 1 0 3 0x100000 0x80 kqread resolvd 83371 418098 50677 77 3 0x100012 0x80 kqread dhcpleased 43854 39811 50677 77 3 0x100012 0x80 kqread dhcpleased 50677 145834 1 0 3 0 0x80 kqread dhcpleased 51855 102710 0 0 3 0x14000 0x200 bored smr 29010 405521 0 0 2 0x14000 0x200 zerothread 87631 155807 0 0 3 0x14000 0x200 aiodoned aiodoned 42323 392319 0 0 3 0x14000 0x200 syncer update 63601 351589 0 0 3 0x14000 0x200 cleaner cleaner 97865 499202 0 0 3 0x14000 0x200 reaper reaper 83230 346690 0 0 3 0x14000 0x200 pgdaemon pagedaemon 34649 85954 0 0 3 0x14000 0x200 bored viomb 90531 449196 0 0 3 0x14000 0x40000200 acpi0 acpi0 25893 484835 0 0 3 0x14000 0x200 bored softnet0 94431 335640 0 0 3 0x14000 0x200 bored systqmp 76879 315753 0 0 3 0x14000 0x200 bored systq 26217 65206 0 0 3 0x14000 0x40000200 tmoslp softclock 27734 302338 0 0 3 0x14000 0x40000200 idle0 1 240988 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11030 12119K 12135K 166960K 12207 0 pcb 17 12K 12K 166960K 29 0 rtable 192 5K 6K 166960K 690 0 pf 28 12K 16K 166960K 59 0 ifaddr 37 6K 7K 166960K 93 0 ifgroup 46 2K 2K 166960K 98 0 sysctl 2 1K 9K 166960K 6 0 counters 32 17K 17K 166960K 48 0 ioctlops 0 0K 4K 166960K 51 0 iov 0 0K 12K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1358 86K 86K 166960K 1654 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 5 0 VM map 2 1K 1K 166960K 2 0 sem 9 0K 0K 166960K 9 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 89K 166960K 365 0 sigio 0 0K 0K 166960K 2 0 proc 60 59K 108K 166960K 810 0 subproc 72 4K 4K 166960K 180 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 9 0 in_multi 85 5K 6K 166960K 227 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 10 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 43 201K 201K 166960K 43 0 exec 0 0K 1K 166960K 515 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 201 161K 167K 166960K 4555 0 UVM aobj 4 2K 2K 166960K 5 0 pinsyscall 35 70K 92K 166960K 1763 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 16 0K 2K 166960K 62 0 temp 34 9106K 9126K 166960K 7960 0 kqueue 13 20K 26K 166960K 36 0 SYN cache 2 16K 16K 166960K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 60 0 57 1 0 1 1 0 8 0 rtentry 136 233 0 147 4 0 4 4 0 8 0 unpcb 144 141 0 126 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 15 0 11 1 0 1 1 0 8 0 arp 96 40 0 24 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 1 0 0 1 0 1 1 0 8 0 inpcb 328 139 0 132 2 0 2 2 0 8 1 nd6 112 57 0 36 1 0 1 1 0 8 0 kcovpl 48 20 0 12 1 0 1 1 0 8 0 ppxss 1072 4 0 4 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 974 0 596 29 0 29 29 0 8 3 art_table 40 975 0 596 5 0 5 5 0 8 0 art_node 32 233 0 156 1 0 1 1 0 8 0 semapl 72 7 0 0 1 0 1 1 0 8 0 shmpl 120 2 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1770 0 274 94 0 94 94 0 8 0 ffsino 256 1770 0 274 94 0 94 94 0 8 0 nchpl 144 2041 0 293 66 0 66 66 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2045 0 0 114 0 114 114 0 8 0 namei 1024 8084 0 8080 3 0 3 3 0 8 2 kstatmem 264 49 0 28 2 0 2 2 0 8 0 scxspl 216 9557 0 9555 8 0 8 8 1 8 7 plimitpl 152 48 0 31 1 0 1 1 0 8 0 sigapl 424 639 0 600 6 0 6 6 0 8 0 knotepl 120 5051 0 5004 2 0 2 2 0 8 0 kqueuepl 184 47 0 36 1 0 1 1 0 8 0 pipepl 304 171 0 144 3 0 3 3 0 8 0 fdescpl 448 626 0 600 5 0 5 5 0 8 1 filepl 120 2450 0 2241 9 0 9 9 0 8 1 lockfpl 104 26 0 23 1 0 1 1 0 8 0 lockfspl 48 14 0 11 1 0 1 1 0 8 0 sessionpl 144 38 0 30 1 0 1 1 0 8 0 pgrppl 48 62 0 46 1 0 1 1 0 8 0 ucredpl 104 376 0 365 1 0 1 1 0 8 0 zombiepl 144 604 0 600 1 0 1 1 0 8 0 processpl 1152 639 0 600 4 0 4 4 0 8 0 procpl 664 791 0 748 5 0 5 5 0 8 0 sockpl 552 340 0 315 3 0 3 3 0 8 1 mcl64k 65536 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2537 0 2482 13 0 13 13 0 8 5 mcl2k 2048 533 0 533 5 0 5 5 0 8 5 mextrefs 64 187 0 187 1 0 1 1 0 8 1 mtagpl 96 4 0 4 1 0 1 1 0 8 1 mbufpl 256 6095 0 5974 15 0 15 15 0 8 3 bufpl 272 5432 0 102 356 0 356 356 0 8 0 anonpl 24 105472 0 100029 36 0 36 36 0 187 2 amapchunkpl 152 12906 0 12314 28 0 28 28 0 158 4 amappl16 200 1618 0 1556 9 0 9 9 0 8 4 amappl15 192 6 0 5 1 0 1 1 0 8 0 amappl14 184 546 0 543 1 0 1 1 0 8 0 amappl13 176 143 0 133 1 0 1 1 0 8 0 amappl12 168 909 0 885 2 0 2 2 0 8 0 amappl11 160 4 0 4 1 0 1 1 0 8 1 amappl10 152 60 0 50 1 0 1 1 0 8 0 amappl9 144 269 0 269 1 0 1 1 0 8 1 amappl8 136 152 0 150 1 0 1 1 0 8 0 amappl7 128 162 0 151 1 0 1 1 0 8 0 amappl6 120 260 0 257 1 0 1 1 0 8 0 amappl5 112 93 0 86 1 0 1 1 0 8 0 amappl4 104 295 0 279 1 0 1 1 0 8 0 amappl3 96 2262 0 2190 3 0 3 3 0 8 0 amappl2 88 707 0 640 2 0 2 2 0 8 0 amappl1 80 11803 0 11263 13 0 13 13 0 8 1 amappl 88 3659 0 3522 4 0 4 4 0 92 0 uvmvnodes 80 100 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 0 1 1 0 8 1 dma1024 1024 1 0 0 1 0 1 1 0 8 0 dma256 256 6 0 6 1 0 1 1 0 8 1 dma128 128 253 0 253 1 0 1 1 0 8 1 dma64 64 6 0 6 1 0 1 1 0 8 1 dma32 32 7 0 7 1 0 1 1 0 8 1 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 72 4 0 1 1 0 1 1 0 8 0 uaddrrnd 24 626 0 600 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 626 0 600 1 0 1 1 0 8 0 vmmpekpl 168 7130 0 7089 3 0 3 3 0 8 0 vmmpepl 168 49657 0 48045 82 0 82 82 0 357 3 vmsppl 368 625 0 600 4 0 4 4 0 8 1 rwobjpl 40 17053 0 16089 11 0 11 11 0 8 0 pdppl 4096 1258 0 1200 110 40 70 78 0 8 12 pvpl 32 271776 0 261879 89 0 89 89 0 265 5 pmappl 216 625 0 600 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 739 0 40 20 0 20 20 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace in_ifdetach(ffff8000015f8000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f8000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f8000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a86d280) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a86d340) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd00741f1460,7,fffffd0007ffd820,ffff80002a7614d0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd006cf6b9e8,ffff80002a7614d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd006cf6b9e8,ffff80002a7614d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffd006cf6b9e8,ffff80002a7614d0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffd006cf6b9e8,ffff80002a7614d0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7614d0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7614d0,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7614d0,ffff80002a86d6a0,ffff80002a86d5f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a86d6a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a86d6a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76b5edc58940, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace in_ifdetach(ffff8000015f8000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f8000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f8000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a86d280) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d05,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a86d340) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffd00741f1460,7,fffffd0007ffd820,ffff80002a7614d0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffffd006cf6b9e8,ffff80002a7614d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffd006cf6b9e8,ffff80002a7614d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffffd006cf6b9e8,ffff80002a7614d0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffd006cf6b9e8,ffff80002a7614d0) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a7614d0) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a7614d0,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a7614d0,ffff80002a86d6a0,ffff80002a86d5f0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a86d6a0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a86d6a0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x76b5edc58940, count: -15