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(ffff8000015df800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015df800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015df800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a831ad0) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a831b90) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(ffffee8071664538,7,ffffee8007ffd6e8,ffff80002a737230) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(ffffee806d1621e8,ffff80002a737230) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(ffffee806d1621e8,ffff80002a737230) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(ffffee806d1621e8,ffff80002a737230) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(ffffee806d1621e8,ffff80002a737230) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a737230) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a737230,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a737230,ffff80002a831ef0,ffff80002a831e40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a831ef0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a831ef0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a9c6497f70, count: -15 ddb> show registers rdi 0 rsi 0 rbp 0xffff80002a8319c0 rbx 0xffff8000015b5d80 rdx 0 rcx 0xeaeff603d1911e20 rax 0xdeafbeaddeafbead r8 0xffffffffffffffff r9 0 r10 0x2c74a7ef591389db r11 0x492f43539edf9a2a r12 0x8 r13 0xffff8000015df848 r14 0xffff8000015df800 r15 0xdeaf007fdeafbead rip 0xffffffff81c184d7 in_ifdetach+0x67 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff80002a831970 ss 0 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb> show proc PROC (syz-executor) tid=495608 pid=17551 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=0xffff80002a761c98,0xffff80002a736d10 process=0xffff80002a795210 user=0xffff80002a82c000, vmspace=0xffffee806fccf458 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 77945 402408 16389 0 2 0x10 0 syz-executor 77945 155130 16389 0 3 0x10 0x4000080 ttyin syz-executor 77945 490367 16389 0 3 0x10 0x4000080 ttyin syz-executor 77945 74693 16389 0 2 0x10 0x4000000 syz-executor 19325 234268 43249 0 3 0x10 0x80 nanoslp syz-executor 19325 219930 43249 0 3 0x10 0x4000080 ttyout syz-executor 19325 201308 43249 0 3 0x10 0x4000080 kqread syz-executor 19325 276904 43249 0 3 0x10 0x4000080 fsleep syz-executor 96725 275822 95080 0 3 0x2 0x80 piperd syz-executor 43249 32317 95080 0 3 0x2 0x80 nanoslp syz-executor 44356 455468 95080 0 3 0x2 0x80 piperd syz-executor 51655 398654 95080 0 3 0x2 0x80 piperd syz-executor 16389 218820 95080 0 3 0x2 0x80 nanoslp syz-executor 66083 215041 95080 0 3 0x2 0x80 piperd syz-executor 95080 247657 26218 0 3 0x2 0x80 wait syz-executor 26218 411223 16372 0 3 0x100002 0x88 sigsusp ksh 16372 516861 9509 0 3 0x10 0x88 kqread sshd-session 9509 413643 70651 0 3 0x12 0x80 kqread sshd-session 1906 185375 1 0 3 0x100003 0x80 ttyin getty 70651 365076 1 0 3 0 0x88 kqread sshd 80385 270147 60714 73 3 0x1100010 0x80 kqread syslogd 60714 96335 1 0 3 0x100002 0x80 sbwait syslogd 54876 253872 1 0 3 0x100000 0x80 kqread resolvd 87516 481746 77724 77 3 0x100012 0x80 kqread dhcpleased 31685 274217 77724 77 3 0x100012 0x80 kqread dhcpleased 77724 486207 1 0 3 0 0x80 kqread dhcpleased 44636 38964 0 0 3 0x14000 0x200 bored smr 59103 357845 0 0 2 0x14000 0x200 zerothread 78116 362522 0 0 3 0x14000 0x200 aiodoned aiodoned 24454 72055 0 0 3 0x14000 0x200 syncer update 94984 312344 0 0 3 0x14000 0x200 cleaner cleaner 73167 440562 0 0 3 0x14000 0x200 reaper reaper 99483 280189 0 0 3 0x14000 0x200 pgdaemon pagedaemon 35138 250857 0 0 3 0x14000 0x200 bored viomb 35798 361375 0 0 3 0x14000 0x40000200 acpi0 acpi0 71431 127379 0 0 3 0x14000 0x200 bored softnet0 69832 294103 0 0 3 0x14000 0x200 bored systqmp 14532 517265 0 0 3 0x14000 0x200 bored systq 75608 74550 0 0 3 0x14000 0x40000200 tmoslp softclock 19119 127466 0 0 3 0x14000 0x40000200 idle0 1 449317 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 11029 12102K 12225K 166960K 12156 0 pcb 17 12K 12K 166960K 35 0 rtable 219 6K 6K 166960K 370 0 pf 30 12K 652K 166960K 39 0 ifaddr 42 7K 8K 166960K 49 0 ifgroup 50 2K 2K 166960K 59 0 sysctl 1 1K 9K 166960K 5 0 counters 33 17K 18K 166960K 37 0 ioctlops 0 0K 4K 166960K 38 0 iov 1 4K 8K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1293 81K 82K 166960K 1392 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 3 0 VM map 2 1K 1K 166960K 2 0 sem 5 0K 0K 166960K 5 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 12 41K 85K 166960K 176 0 sigio 0 0K 0K 166960K 2 0 proc 59 59K 83K 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 8 0 in_multi 99 6K 6K 166960K 105 0 ether_multi 1 0K 0K 166960K 1 0 mrt 1 0K 0K 166960K 5 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 61 281K 281K 166960K 61 0 exec 0 0K 1K 166960K 368 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 181 157K 167K 166960K 3238 0 UVM aobj 4 2K 2K 166960K 4 0 pinsyscall 33 66K 94K 166960K 1286 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 29 0 temp 39 9106K 9112K 166960K 6843 0 kqueue 18 26K 37K 166960K 59 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 40 0 37 1 0 1 1 0 8 0 rtentry 136 116 0 16 4 0 4 4 0 8 0 unpcb 144 56 0 40 1 0 1 1 0 8 0 syncache 336 6 0 6 1 0 1 1 0 8 1 tcpqe 32 2 0 2 1 0 1 1 0 8 1 tcpcb 736 24 0 18 1 0 1 1 0 8 0 arp 96 18 0 0 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 104 0 95 2 0 2 2 0 8 1 nd6 112 24 0 0 1 0 1 1 0 8 0 pkpcb 40 1 0 1 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 2 0 2 1 0 1 1 0 8 1 pppxif 1416 2 0 2 1 0 1 1 0 8 1 pftag 88 2 0 0 1 0 1 1 0 8 0 pfrule 1360 1 0 1 1 0 1 1 0 8 1 rttmr 136 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 490 0 47 29 0 29 29 0 8 0 art_table 40 491 0 47 5 0 5 5 0 8 0 art_node 32 116 0 26 1 0 1 1 0 8 0 semapl 72 3 0 0 1 0 1 1 0 8 0 shmpl 120 1 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1640 0 179 92 0 92 92 0 8 0 ffsino 256 1640 0 179 92 0 92 92 0 8 0 nchpl 144 1887 0 199 64 0 64 64 0 8 0 vnodes 216 1741 0 0 97 0 97 97 0 8 0 namei 1024 6268 0 6268 3 0 3 3 0 8 3 kstatmem 264 27 0 4 2 0 2 2 0 8 0 scxspl 216 6695 0 6695 8 0 8 8 1 8 8 plimitpl 152 32 0 13 1 0 1 1 0 8 0 sigapl 424 474 0 437 6 0 6 6 0 8 1 knotepl 120 3845 0 3788 9 0 9 9 0 8 6 kqueuepl 184 113 0 101 4 0 4 4 0 8 2 pipepl 304 129 0 102 3 0 3 3 0 8 0 fdescpl 448 461 0 437 4 0 4 4 0 8 0 filepl 120 1778 0 1563 10 0 10 10 0 8 1 lockfpl 104 24 0 22 1 0 1 1 0 8 0 lockfspl 48 12 0 10 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 34 0 18 1 0 1 1 0 8 0 ucredpl 104 128 0 115 1 0 1 1 0 8 0 zombiepl 144 439 0 437 1 0 1 1 0 8 0 processpl 1152 474 0 437 4 0 4 4 0 8 0 procpl 664 538 0 495 5 0 5 5 0 8 0 sockpl 552 205 0 177 4 0 4 4 0 8 1 mcl64k 65536 2 0 1 1 0 1 1 0 8 0 mcl16k 16384 2 0 2 1 0 1 1 0 8 1 mcl9k128 9344 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 4 0 4 1 0 1 1 0 8 1 mcl4k 4096 2589 0 2538 15 0 15 15 0 8 8 mcl2k 2048 170 0 170 1 0 1 1 0 8 1 mextrefs 64 53 0 52 1 0 1 1 0 8 0 mtagpl 96 5 0 5 1 0 1 1 0 8 1 mbufpl 256 4684 0 4554 11 0 11 11 0 8 0 bufpl 272 2330 0 102 149 0 149 149 0 8 0 anonpl 24 56295 0 53501 45 0 45 45 0 187 23 amapchunkpl 152 8629 0 8286 29 0 29 29 0 158 7 amappl16 200 366 0 349 14 0 14 14 0 8 11 amappl15 192 14 0 14 1 0 1 1 0 8 1 amappl14 184 409 0 408 1 0 1 1 0 8 0 amappl13 176 113 0 103 1 0 1 1 0 8 0 amappl12 168 696 0 673 2 0 2 2 0 8 0 amappl11 160 1 0 1 1 0 1 1 0 8 1 amappl10 152 56 0 45 1 0 1 1 0 8 0 amappl9 144 266 0 266 1 0 1 1 0 8 1 amappl8 136 90 0 89 1 0 1 1 0 8 0 amappl7 128 138 0 127 1 0 1 1 0 8 0 amappl6 120 145 0 144 1 0 1 1 0 8 0 amappl5 112 99 0 92 1 0 1 1 0 8 0 amappl4 104 270 0 253 1 0 1 1 0 8 0 amappl3 96 1571 0 1505 3 0 3 3 0 8 0 amappl2 88 584 0 518 2 0 2 2 0 8 0 amappl1 80 10353 0 9828 14 0 14 14 0 8 2 amappl 88 2538 0 2419 4 0 4 4 0 92 0 uvmvnodes 80 98 0 0 2 0 2 2 0 8 0 dma32768 32768 1 0 1 1 0 1 1 0 8 1 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 3 0 0 1 0 1 1 0 8 0 uaddrrnd 24 461 0 437 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 461 0 437 1 0 1 1 0 8 0 vmmpekpl 168 5655 0 5623 2 0 2 2 0 8 0 vmmpepl 168 37484 0 35979 91 0 91 91 0 357 12 vmsppl 368 460 0 437 4 0 4 4 0 8 1 rwobjpl 40 13093 0 12208 13 0 13 13 0 8 1 pdppl 4096 928 0 874 90 24 66 76 0 8 12 pvpl 32 188930 0 180594 109 0 109 109 0 265 23 pmappl 216 460 0 437 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 505 0 24 14 0 14 14 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace in_ifdetach(ffff8000015df800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015df800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015df800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a831ad0) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a831b90) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(ffffee8071664538,7,ffffee8007ffd6e8,ffff80002a737230) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(ffffee806d1621e8,ffff80002a737230) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(ffffee806d1621e8,ffff80002a737230) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(ffffee806d1621e8,ffff80002a737230) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(ffffee806d1621e8,ffff80002a737230) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a737230) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a737230,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a737230,ffff80002a831ef0,ffff80002a831e40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a831ef0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a831ef0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a9c6497f70, count: -15 ddb> machine ddbcpu 1 No such command ddb> trace in_ifdetach(ffff8000015df800) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015df800) at if_detach+0x322 sys/net/if.c:1311 tun_clone_destroy(ffff8000015df800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a831ad0) at if_clone_destroy+0x1d5 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80002a831b90) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(ffffee8071664538,7,ffffee8007ffd6e8,ffff80002a737230) at VOP_CLOSE+0x129 sys/kern/vfs_vops.c:156 vn_closefile(ffffee806d1621e8,ffff80002a737230) at vn_closefile+0x11d vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(ffffee806d1621e8,ffff80002a737230) at vn_closefile+0x11d sys/kern/vfs_vnops.c:621 fdrop(ffffee806d1621e8,ffff80002a737230) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(ffffee806d1621e8,ffff80002a737230) at closef+0x190 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a737230) at fdfree+0x115 sys/kern/kern_descrip.c:1196 exit1(ffff80002a737230,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a737230,ffff80002a831ef0,ffff80002a831e40) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80002a831ef0) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a831ef0) at syscall+0x962 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x78a9c6497f70, count: -15