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(ffff8000015f2000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f2000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f2000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a814bd0) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a814c90) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3007ed2e538,7,fffff30007ffd5b0,ffff80002a7614d0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff3007ead1bc8,ffff80002a7614d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff3007ead1bc8,ffff80002a7614d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff3007ead1bc8,ffff80002a7614d0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff3007ead1bc8,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,ffff80002a814ff0,ffff80002a814f40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a814ff0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a814ff0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d39a54af70, count: -15 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a814ac0 rbx 0xffff800001618c80 rdx 0 rcx 0x2aa9fd03be529880 rax 0xdeadbeefdeadbeef r8 0xffffffffffffffff r9 0 r10 0x57545b08d9d07e73 r11 0x63db22495fc82ec7 r12 0x8 r13 0xffff8000015f2048 r14 0xffff8000015f2000 r15 0xdead0036deadbeef rip 0xffffffff827ddd57 in_ifdetach+0x67 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002a814a70 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> show proc PROC (syz-executor) tid=39530 pid=75119 tcnt=0 stat=onproc flags process=a proc=2000 runpri=32, usrpri=63, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a7607d8,0xffff80002a737240 process=0xffff80002a78cd90 user=0xffff80002a810000, vmspace=0xfffff3006fd6b178 estcpu=13, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 71801 468225 86023 0 3 0x2 0x80 piperd syz-executor 70330 501553 86023 0 3 0x2 0x80 piperd syz-executor 14822 509352 86023 0 3 0x2 0x80 piperd syz-executor 7999 72060 86023 0 3 0x2 0x80 piperd syz-executor 81283 43564 86023 0 3 0x2 0x80 piperd syz-executor 75207 367427 86023 0 3 0x2 0 biowait syz-executor 91439 155547 86023 0 3 0x2 0x80 piperd syz-executor 86023 312522 48196 0 3 0x2 0x80 wait syz-executor 48196 379057 44537 0 3 0x100002 0x88 sigsusp ksh 44537 468813 96398 0 3 0x10 0x88 kqread sshd-session 96398 278849 80410 0 3 0x12 0x80 kqread sshd-session 28039 513153 1 0 3 0x100003 0x80 ttyin getty 80410 201192 1 0 3 0 0x88 kqread sshd 49159 217874 20681 73 3 0x1100010 0x80 kqread syslogd 20681 184766 1 0 3 0x100002 0x80 sbwait syslogd 62795 329553 1 0 3 0x100000 0x80 kqread resolvd 37936 150608 43539 77 3 0x100012 0x80 kqread dhcpleased 83056 414660 43539 77 3 0x100012 0x80 kqread dhcpleased 43539 294456 1 0 3 0 0x80 kqread dhcpleased 88514 35019 0 0 3 0x14000 0x200 bored smr 69857 500263 0 0 2 0x14000 0x200 zerothread 22319 354517 0 0 3 0x14000 0x200 aiodoned aiodoned 99785 442257 0 0 3 0x14000 0x200 syncer update 8927 98401 0 0 3 0x14000 0x200 cleaner cleaner 4462 498549 0 0 3 0x14000 0x200 reaper reaper 46935 189880 0 0 3 0x14000 0x200 pgdaemon pagedaemon 20800 221320 0 0 3 0x14000 0x200 bored viomb 74491 338990 0 0 3 0x14000 0x40000200 acpi0 acpi0 25869 114541 0 0 3 0x14000 0x200 bored softnet0 33468 289561 0 0 3 0x14000 0x200 bored systqmp 61548 392767 0 0 3 0x14000 0x200 bored systq 31391 166473 0 0 3 0x14000 0x40000200 tmoslp softclock 67495 309148 0 0 3 0x14000 0x40000200 idle0 1 107069 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 11025 12102K 12167K 166960K 12187 0 pcb 17 12K 12K 166960K 23 0 rtable 237 6K 6K 166960K 353 0 pf 30 12K 20K 166960K 38 0 ifaddr 42 7K 7K 166960K 45 0 ifgroup 50 2K 2K 166960K 52 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 17K 166960K 34 0 ioctlops 0 0K 4K 166960K 30 0 iov 0 0K 12K 166960K 3 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1350 85K 85K 166960K 1427 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 4 0 VM map 2 1K 1K 166960K 2 0 sem 2 0K 0K 166960K 2 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 10 33K 93K 166960K 151 0 proc 59 59K 116K 166960K 497 0 subproc 72 4K 4K 166960K 72 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 2 0 in_multi 99 6K 6K 166960K 101 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 3 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 37 175K 175K 166960K 37 0 exec 0 0K 1K 166960K 367 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 162 157K 166K 166960K 3100 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 31 62K 94K 166960K 1251 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 11 0K 2K 166960K 28 0 temp 34 9110K 9130K 166960K 3494 0 kqueue 13 20K 24K 166960K 28 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 39 0 36 1 0 1 1 0 8 0 rtentry 136 111 0 1 4 0 4 4 0 8 0 unpcb 144 41 0 26 1 0 1 1 0 8 0 syncache 336 4 0 4 1 0 1 1 0 8 1 tcpcb 736 8 0 4 1 0 1 1 0 8 0 arp 96 18 0 0 1 0 1 1 0 8 0 inpcb 328 70 0 63 2 0 2 2 0 8 1 nd6 112 24 0 0 1 0 1 1 0 8 0 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 1 0 1 1 0 1 1 0 8 1 pfanchor 1288 2 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 0 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 452 0 0 29 0 29 29 0 8 0 art_table 40 453 0 0 5 0 5 5 0 8 0 art_node 32 111 0 11 1 0 1 1 0 8 0 shmpl 120 4 0 0 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 1596 0 138 92 0 92 92 0 8 0 ffsino 256 1596 0 138 92 0 92 92 0 8 0 nchpl 144 1812 0 129 63 0 63 63 0 8 0 vnodes 216 1746 0 0 97 0 97 97 0 8 0 namei 1024 6069 0 6068 3 0 3 3 0 8 2 kstatmem 264 25 0 2 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 0 1 1 0 8 1 scxspl 216 6142 0 6141 3 0 3 3 1 8 2 plimitpl 152 29 0 13 1 0 1 1 0 8 0 sigapl 424 446 0 411 6 0 6 6 0 8 2 knotepl 120 3872 0 3825 9 0 9 9 0 8 6 kqueuepl 184 26 0 17 1 0 1 1 0 8 0 pipepl 304 124 0 97 3 0 3 3 0 8 0 fdescpl 448 433 0 411 5 0 5 5 0 8 2 filepl 120 1570 0 1368 9 0 9 9 0 8 2 lockfpl 104 14 0 12 1 0 1 1 0 8 0 lockfspl 48 7 0 5 1 0 1 1 0 8 0 sessionpl 144 24 0 16 1 0 1 1 0 8 0 pgrppl 48 32 0 16 1 0 1 1 0 8 0 ucredpl 104 93 0 82 1 0 1 1 0 8 0 zombiepl 144 412 0 411 1 0 1 1 0 8 0 processpl 1152 446 0 411 4 0 4 4 0 8 1 procpl 664 475 0 440 5 0 5 5 0 8 2 sockpl 552 153 0 128 3 0 3 3 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2486 0 2431 13 0 13 13 0 8 5 mcl2k 2048 136 0 136 1 0 1 1 0 8 1 mextrefs 64 37 0 37 1 0 1 1 0 8 1 mtagpl 96 5 0 5 1 0 1 1 0 8 1 mbufpl 256 4320 0 4180 11 0 11 11 0 8 1 bufpl 272 2248 0 102 144 0 144 144 0 8 0 anonpl 24 85407 0 82827 45 0 45 45 0 187 22 amapchunkpl 152 8382 0 8110 21 0 21 21 0 158 6 amappl16 200 1353 0 1337 11 1 10 11 0 8 8 amappl15 192 6 0 6 1 0 1 1 0 8 1 amappl14 184 413 0 412 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 673 0 652 2 0 2 2 0 8 1 amappl11 160 3 0 3 1 0 1 1 0 8 1 amappl10 152 57 0 47 1 0 1 1 0 8 0 amappl9 144 271 0 271 1 0 1 1 0 8 1 amappl8 136 93 0 92 1 0 1 1 0 8 0 amappl7 128 139 0 128 1 0 1 1 0 8 0 amappl6 120 161 0 160 1 0 1 1 0 8 0 amappl5 112 92 0 84 1 0 1 1 0 8 0 amappl4 104 258 0 243 1 0 1 1 0 8 0 amappl3 96 1431 0 1380 3 0 3 3 0 8 0 amappl2 88 549 0 485 2 0 2 2 0 8 0 amappl1 80 10140 0 9620 14 0 14 14 0 8 1 amappl 88 2412 0 2313 4 0 4 4 0 92 1 uvmvnodes 80 95 0 0 2 0 2 2 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 254 0 254 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 433 0 411 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 433 0 411 1 0 1 1 0 8 0 vmmpekpl 168 5527 0 5494 2 0 2 2 0 8 0 vmmpepl 168 36881 0 35505 87 0 87 87 0 357 16 vmsppl 368 432 0 411 4 0 4 4 0 8 2 rwobjpl 40 13798 0 12941 12 0 12 12 0 8 0 pdppl 4096 872 0 822 94 30 64 80 0 8 14 pvpl 32 210590 0 204035 112 0 112 112 0 265 38 pmappl 216 432 0 411 3 0 3 3 0 8 1 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 499 0 30 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace in_ifdetach(ffff8000015f2000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f2000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f2000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a814bd0) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a814c90) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3007ed2e538,7,fffff30007ffd5b0,ffff80002a7614d0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff3007ead1bc8,ffff80002a7614d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff3007ead1bc8,ffff80002a7614d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff3007ead1bc8,ffff80002a7614d0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff3007ead1bc8,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,ffff80002a814ff0,ffff80002a814f40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a814ff0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a814ff0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d39a54af70, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace in_ifdetach(ffff8000015f2000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f2000) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f2000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a814bd0) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d02,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a814c90) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff3007ed2e538,7,fffff30007ffd5b0,ffff80002a7614d0) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff3007ead1bc8,ffff80002a7614d0) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff3007ead1bc8,ffff80002a7614d0) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff3007ead1bc8,ffff80002a7614d0) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff3007ead1bc8,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,ffff80002a814ff0,ffff80002a814f40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a814ff0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a814ff0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x72d39a54af70, count: -15