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(ffff8000015f6800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f6800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f6800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a850d20) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d04,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a850de0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff5806fa292b0,7,fffff58007ffd4e0,ffff80002a736d00) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff58069c999e8,ffff80002a736d00) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff58069c999e8,ffff80002a736d00) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff58069c999e8,ffff80002a736d00) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff58069c999e8,ffff80002a736d00) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a736d00) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a736d00,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a736d00,ffff80002a851140,ffff80002a851090) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a851140) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a851140) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ebed26c8f80, count: -15 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a850c10 rbx 0xffff800001613d00 rdx 0 rcx 0xaf49fc5a98f5a600 rax 0xdeaf4152deaf4152 r8 0xffffffffffffffff r9 0 r10 0x54757cd0671c42a7 r11 0x4aca4c1650f5b9fb r12 0x5 r13 0xffff8000015f6848 r14 0xffff8000015f6800 r15 0xdeaf0036deaf4152 rip 0xffffffff82988fa7 in_ifdetach+0x67 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80002a850bc0 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> show proc PROC (syz-executor) tid=51874 pid=68924 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=0xffff80002a736a68,0xffff80002a736548 process=0xffff80002a78df90 user=0xffff80002a84c000, vmspace=0xfffff580756cf458 estcpu=36, cpticks=5, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 71304 128812 63536 0 3 0x2 0x80 piperd syz-executor 68977 313677 63536 0 3 0x2 0x80 piperd syz-executor 64246 3695 63536 0 3 0x2 0x80 piperd syz-executor 78581 288502 63536 0 3 0x2 0x80 piperd syz-executor 54775 213194 63536 0 3 0x2 0x80 piperd syz-executor 36409 385419 63536 0 3 0x2 0x80 piperd syz-executor 63536 84062 61311 0 3 0x2 0x80 wait syz-executor 61311 239671 90032 0 3 0x100002 0x88 sigsusp ksh 90032 106198 19360 0 3 0x10 0x88 kqread sshd-session 19360 309107 60750 0 3 0x12 0x80 kqread sshd-session 41915 277951 1 0 3 0x100003 0x80 ttyin getty 60750 349562 1 0 3 0 0x88 kqread sshd 38909 117851 70839 73 3 0x1100010 0x80 kqread syslogd 70839 219882 1 0 3 0x100002 0x80 sbwait syslogd 93197 177822 1 0 3 0x100000 0x80 kqread resolvd 79001 190261 96223 77 3 0x100012 0x80 kqread dhcpleased 83148 110819 96223 77 3 0x100012 0x80 kqread dhcpleased 96223 196453 1 0 3 0 0x80 kqread dhcpleased 64766 241720 0 0 3 0x14000 0x200 bored smr 37600 105114 0 0 3 0x14000 0x200 pgzero zerothread 57394 80434 0 0 3 0x14000 0x200 aiodoned aiodoned 10358 359039 0 0 3 0x14000 0x200 syncer update 84232 323302 0 0 3 0x14000 0x200 cleaner cleaner 4633 278987 0 0 3 0x14000 0x200 reaper reaper 27435 471114 0 0 3 0x14000 0x200 pgdaemon pagedaemon 39872 8688 0 0 3 0x14000 0x200 bored viomb 33147 241106 0 0 3 0x14000 0x40000200 acpi0 acpi0 93227 247446 0 0 3 0x14000 0x200 bored softnet0 47584 287197 0 0 3 0x14000 0x200 bored systqmp 4046 215630 0 0 3 0x14000 0x200 bored systq 86257 150262 0 0 3 0x14000 0x40000200 tmoslp softclock 83127 175776 0 0 3 0x14000 0x40000200 idle0 1 495057 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 11032 12103K 12254K 166960K 12385 0 pcb 17 14K 15K 166960K 56 0 rtable 249 8K 9K 166960K 601 0 pf 31 13K 13K 166960K 50 0 ifaddr 42 7K 7K 166960K 75 0 ifgroup 50 2K 2K 166960K 80 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 18K 166960K 43 0 ioctlops 0 0K 4K 166960K 87 0 iov 0 0K 2K 166960K 4 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1291 81K 82K 166960K 1491 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 15 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 10 33K 97K 166960K 400 0 sigio 0 0K 0K 166960K 1 0 proc 59 59K 124K 166960K 705 0 subproc 72 4K 4K 166960K 135 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 85 0 in_multi 99 6K 6K 166960K 179 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 13 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 73 334K 334K 166960K 73 0 exec 0 0K 1K 166960K 463 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 158 149K 161K 166960K 4867 0 UVM aobj 6 2K 2K 166960K 7 0 pinsyscall 31 62K 96K 166960K 1692 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 NDP 13 0K 2K 166960K 49 0 temp 45 9107K 9127K 166960K 9469 0 kqueue 13 20K 28K 166960K 54 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 64 0 61 1 0 1 1 0 8 0 rtentry 136 192 0 81 4 0 4 4 0 8 0 unpcb 144 84 0 69 2 0 2 2 0 8 1 syncache 336 17 0 17 1 1 0 1 0 8 0 tcpqe 32 1 0 1 1 1 0 1 0 8 0 tcpcb 736 79 0 75 2 1 1 2 0 8 0 arp 96 32 0 14 1 0 1 1 0 8 0 inpcb 328 292 0 285 7 5 2 7 0 8 1 nd6 112 46 0 21 1 0 1 1 0 8 0 kcovpl 48 15 0 7 1 0 1 1 0 8 0 ppxss 1072 3 0 3 1 1 0 1 0 8 0 pfstscr 40 2 0 0 1 0 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 2 0 0 1 0 1 1 0 8 0 pfstate 384 1 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 772 0 314 32 3 29 32 0 8 0 art_table 40 773 0 314 6 1 5 6 0 8 0 art_node 32 192 0 91 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0 semapl 72 13 0 6 1 0 1 1 0 8 0 shmpl 120 4 0 1 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1846 0 368 93 0 93 93 0 8 0 ffsino 256 1846 0 368 93 0 93 93 0 8 0 nchpl 144 2264 0 543 65 0 65 65 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 vnodes 216 2026 0 0 113 0 113 113 0 8 0 namei 1024 8095 0 8095 4 3 1 3 0 8 1 kstatmem 264 39 0 16 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 8668 0 8668 2 1 1 2 1 8 1 plimitpl 152 66 0 50 1 0 1 1 0 8 0 sigapl 424 684 0 649 6 1 5 6 0 8 1 knotepl 120 9128 0 9081 17 9 8 17 0 8 5 kqueuepl 184 69 0 60 1 0 1 1 0 8 0 pipepl 304 156 0 129 3 0 3 3 0 8 0 fdescpl 448 671 0 649 5 1 4 5 0 8 1 filepl 120 2480 0 2279 9 1 8 9 0 8 1 lockfpl 104 24 0 22 1 0 1 1 0 8 0 lockfspl 48 13 0 11 1 0 1 1 0 8 0 sessionpl 144 45 0 37 1 0 1 1 0 8 0 pgrppl 48 60 0 44 1 0 1 1 0 8 0 ucredpl 104 223 0 211 1 0 1 1 0 8 0 zombiepl 144 651 0 649 1 0 1 1 0 8 0 processpl 1152 684 0 649 4 0 4 4 0 8 1 procpl 664 942 0 907 6 1 5 6 0 8 2 sockpl 552 443 0 418 7 3 4 7 0 8 2 mcl64k 65536 32 0 32 1 1 0 1 0 8 0 mcl16k 16384 33 0 33 1 1 0 1 0 8 0 mcl12k 12288 3 0 3 1 1 0 1 0 8 0 mcl9k128 9344 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 18 0 18 1 1 0 1 0 8 0 mcl4k 4096 2761 0 2712 15 8 7 15 0 8 0 mcl2k 2048 347 0 347 1 1 0 1 0 8 0 mextrefs 64 196 0 196 1 0 1 1 0 8 1 mtagpl 96 5 0 5 1 1 0 1 0 8 0 mbufpl 256 6647 0 6506 14 1 13 14 0 8 0 bufpl 272 3387 0 102 219 0 219 219 0 8 0 anonpl 24 96447 0 93843 34 8 26 34 0 187 0 amapchunkpl 152 14193 0 13924 30 10 20 30 0 158 6 amappl16 200 1174 0 1160 6 2 4 6 0 8 0 amappl15 192 19 0 19 1 1 0 1 0 8 0 amappl14 184 531 0 530 1 0 1 1 0 8 0 amappl13 176 128 0 117 1 0 1 1 0 8 0 amappl12 168 935 0 914 2 0 2 2 0 8 0 amappl11 160 1 0 1 1 1 0 1 0 8 0 amappl10 152 84 0 73 1 0 1 1 0 8 0 amappl9 144 270 0 270 1 1 0 1 0 8 0 amappl8 136 129 0 128 1 0 1 1 0 8 0 amappl7 128 157 0 146 1 0 1 1 0 8 0 amappl6 120 218 0 217 1 0 1 1 0 8 0 amappl5 112 89 0 81 1 0 1 1 0 8 0 amappl4 104 281 0 267 1 0 1 1 0 8 0 amappl3 96 2563 0 2512 3 0 3 3 0 8 1 amappl2 88 766 0 704 2 0 2 2 0 8 0 amappl1 80 11799 0 11280 13 1 12 13 0 8 0 amappl 88 4038 0 3942 5 1 4 5 0 92 0 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 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 6 0 1 1 0 1 1 0 8 0 uaddrrnd 24 671 0 649 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 671 0 649 1 0 1 1 0 8 0 vmmpekpl 168 7156 0 7114 3 0 3 3 0 8 0 vmmpepl 168 50871 0 49494 85 7 78 85 0 357 7 vmsppl 368 670 0 649 4 1 3 4 0 8 1 rwobjpl 40 16634 0 15776 11 0 11 11 0 8 0 pdppl 4096 1348 0 1298 110 48 62 82 0 8 12 pvpl 32 285684 0 278953 110 26 84 110 0 265 0 pmappl 216 670 0 649 3 1 2 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 604 0 74 17 0 17 17 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace in_ifdetach(ffff8000015f6800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f6800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f6800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a850d20) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d04,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a850de0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff5806fa292b0,7,fffff58007ffd4e0,ffff80002a736d00) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff58069c999e8,ffff80002a736d00) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff58069c999e8,ffff80002a736d00) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff58069c999e8,ffff80002a736d00) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff58069c999e8,ffff80002a736d00) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a736d00) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a736d00,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a736d00,ffff80002a851140,ffff80002a851090) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a851140) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a851140) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ebed26c8f80, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace in_ifdetach(ffff8000015f6800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f6800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015f6800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a850d20) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d04,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a850de0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff5806fa292b0,7,fffff58007ffd4e0,ffff80002a736d00) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(fffff58069c999e8,ffff80002a736d00) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff58069c999e8,ffff80002a736d00) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(fffff58069c999e8,ffff80002a736d00) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff58069c999e8,ffff80002a736d00) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a736d00) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a736d00,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a736d00,ffff80002a851140,ffff80002a851090) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a851140) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a851140) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ebed26c8f80, count: -15