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(ffff8000015f5000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f5000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015f5000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003a7b4710) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003a7b47d0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffc006e2d9028,7,fffffc00097fd3a8,ffff800033b947e8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffc006d078540,ffff800033b947e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffc006d078540,ffff800033b947e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffffc006d078540,ffff800033b947e8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffc006d078540,ffff800033b947e8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff800033b947e8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff800033b947e8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff800033b947e8,ffff80003a7b4b40,ffff80003a7b4a90) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003a7b4b40) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003a7b4b40) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x787e51b0c3f0, count: -15 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff80003a7b4600 rbx 0xffff800001613600 rdx 0 rcx 0xffff800033b947e8 rax 0xdeaf4152deaf4152 r8 0xffffffffffffffff r9 0x1 r10 0xd86f4b836f60b550 r11 0x76d4a2e14722130f r12 0 r13 0xffff8000015f5048 r14 0xffff8000015f5000 r15 0xdeaf0036deaf4152 rip 0xffffffff81f04527 in_ifdetach+0x67 cs 0x8 rflags 0x10286 __ALIGN_SIZE+0xf286 rsp 0xffff80003a7b45b0 ss 0 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> show proc PROC (syz-executor) tid=318846 pid=20596 tcnt=0 stat=onproc flags process=18 proc=2000 runpri=32, usrpri=73, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff800033b95a10,0xffff800045fe7790 process=0xffff800045fe84f0 user=0xffff80003a7af000, vmspace=0xfffffc000f5059b0 estcpu=23, cpticks=6, pctcpu=0.3, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 52854 110123 53992 32767 2 0x10 0 syz-executor 52854 91832 53992 32767 2 0x10 0x4000000 syz-executor 35961 274057 72357 0 3 0x2 0 clonelk ifconfig 37473 195961 14847 32767 2 0x10 0 syz-executor 37473 518937 14847 32767 3 0x10 0x4000080 fsleep syz-executor 72357 433850 21615 0 3 0x100002 0x88 sigsusp sh 21615 378026 85304 0 3 0 0x80 wait syz-executor 85304 518005 93810 0 3 0x2 0x80 wait syz-executor 14847 178624 87739 32767 3 0x10 0x80 nanoslp syz-executor 87739 490635 93810 0 3 0x2 0x80 wait syz-executor 59669 327752 57545 32767 3 0x10 0x80 nanoslp syz-executor 57545 482240 93810 0 3 0x2 0x80 wait syz-executor 14259 265139 93702 32767 3 0x10 0x80 nanoslp syz-executor 53992 224310 82927 32767 3 0x10 0x80 nanoslp syz-executor 12124 480052 78663 32767 3 0x10 0x80 nanoslp syz-executor 63445 167024 31961 32767 3 0x10 0x80 nanoslp syz-executor 78663 425133 93810 0 3 0x2 0x80 wait syz-executor 93702 512417 93810 0 3 0x2 0x80 wait syz-executor 95092 48268 93810 0 3 0x2 0x80 wait syz-executor 31961 373263 93810 0 3 0x2 0x80 wait syz-executor 82927 436286 93810 0 3 0x2 0x80 wait syz-executor 93810 186198 45362 0 3 0x2 0x80 kqread syz-executor 45362 349349 87913 0 3 0x100002 0x88 sigsusp ksh 87913 187883 8550 0 3 0x10 0x88 kqread sshd-session 8550 283926 32971 0 3 0x12 0x80 kqread sshd-session 27863 101597 1 0 3 0x100003 0x80 ttyin getty 32971 80000 1 0 3 0 0x88 kqread sshd 64308 454133 38563 73 3 0x1100010 0x80 kqread syslogd 38563 93275 1 0 3 0x100002 0x80 sbwait syslogd 66819 460841 1 0 3 0x100000 0x80 kqread resolvd 18877 489143 30533 77 3 0x100012 0x80 kqread dhcpleased 14751 419976 30533 77 3 0x100012 0x80 kqread dhcpleased 30533 69011 1 0 3 0 0x80 kqread dhcpleased 20456 312634 0 0 3 0x14000 0x200 bored smr 39384 311604 0 0 2 0x14000 0x200 zerothread 22444 103575 0 0 3 0x14000 0x200 aiodoned aiodoned 59282 270801 0 0 3 0x14000 0x200 syncer update 42833 402495 0 0 3 0x14000 0x200 cleaner cleaner 57146 499276 0 0 7 0x14000 0x200 reaper 28821 252133 0 0 3 0x14000 0x200 pgdaemon pagedaemon 12662 261363 0 0 3 0x14000 0x200 bored viomb 56757 245341 0 0 3 0x14000 0x40000200 acpi0 acpi0 77987 3188 0 0 3 0x14000 0x40000200 idle1 7665 215726 0 0 3 0x14000 0x200 bored softnet1 32829 137092 0 0 3 0x14000 0x200 bored softnet0 36207 242648 0 0 3 0x14000 0x200 bored systqmp 59044 282156 0 0 3 0x14000 0x200 bored systq 17553 299407 0 0 3 0x14000 0x200 tmoslp softclockmp 1232 342190 0 0 3 0x14000 0x40000200 tmoslp softclock 34496 133781 0 0 3 0x14000 0x40000200 idle0 1 279224 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11047 12016K 12034K 166960K 12148 0 pcb 17 12K 12K 166960K 17 0 rtable 217 6K 7K 166960K 409 0 pf 29 16K 16K 166960K 35 0 ifaddr 38 6K 7K 166960K 52 0 ifgroup 46 2K 2K 166960K 58 0 sysctl 1 1K 9K 166960K 5 0 counters 68 36K 37K 166960K 74 0 ioctlops 0 0K 4K 166960K 35 0 iov 0 0K 14K 166960K 6 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1288 81K 81K 166960K 1384 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 7 0K 0K 166960K 7 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 125K 166960K 261 0 proc 69 147K 147K 166960K 571 0 subproc 72 4K 4K 166960K 99 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 18 0 in_multi 88 5K 6K 166960K 123 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 67 307K 307K 166960K 67 0 exec 0 0K 1K 166960K 424 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 240 161K 188K 166960K 3950 0 UVM aobj 7 2K 2K 166960K 7 0 pinsyscall 46 92K 112K 166960K 1397 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 12 0K 2K 166960K 33 0 temp 35 9114K 9134K 166960K 3870 0 kqueue 13 20K 26K 166960K 45 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 40 0 37 1 0 1 1 0 8 0 rtentry 176 134 0 34 6 0 6 6 0 8 0 unpcb 144 83 0 67 1 0 1 1 0 8 0 syncache 336 7 0 7 1 0 1 1 0 8 1 tcpcb 736 34 0 30 1 0 1 1 0 8 0 arp 136 22 0 6 1 0 1 1 0 8 0 inpcb 328 125 0 117 2 0 2 2 0 8 1 nd6 152 31 0 9 1 0 1 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 556 0 132 32 0 32 32 0 8 4 art_table 40 557 0 132 6 0 6 6 0 8 0 art_node 32 134 0 43 1 0 1 1 0 8 0 sysvmsgpl 40 40 0 0 1 0 1 1 0 8 0 semupl 112 1 0 0 1 0 1 1 0 8 0 semapl 72 5 0 0 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 1673 0 200 93 0 93 93 0 8 0 ffsino 296 1673 0 200 114 0 114 114 0 8 0 nchpl 144 1981 0 274 64 0 64 64 0 8 0 vnodes 216 1781 0 0 99 0 99 99 0 8 0 namei 1024 6882 0 6882 3 1 2 2 0 8 2 percpumem 16 53 0 3 1 0 1 1 0 8 0 kstatmem 264 29 0 6 2 0 2 2 0 8 0 scxspl 216 7339 0 7339 4 3 1 3 1 8 1 plimitpl 152 59 0 34 2 0 2 2 0 8 0 sigapl 424 546 0 492 7 0 7 7 0 8 0 knotepl 120 292 0 0 9 0 9 9 0 8 0 kqueuepl 224 43 0 33 1 0 1 1 0 8 0 pipepl 344 133 0 106 3 0 3 3 0 8 0 fdescpl 528 530 0 493 4 0 4 4 0 8 0 filepl 160 1902 0 1686 10 0 10 10 0 8 0 lockfpl 104 36 0 34 1 0 1 1 0 8 0 lockfspl 48 14 0 12 1 0 1 1 0 8 0 sessionpl 144 31 0 15 1 0 1 1 0 8 0 pgrppl 48 42 0 18 1 0 1 1 0 8 0 ucredpl 104 209 0 191 1 0 1 1 0 8 0 zombiepl 144 497 0 492 1 0 1 1 0 8 0 processpl 1232 546 0 492 5 0 5 5 0 8 0 procpl 664 691 0 635 7 0 7 7 0 8 1 sockpl 752 251 0 224 5 0 5 5 0 8 2 mcl64k 65536 3 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 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 22 0 0 3 0 3 3 0 8 0 mextrefs 64 18 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 212 0 0 14 0 14 14 0 8 0 bufpl 272 2834 0 105 182 0 182 182 0 8 0 anonpl 32 5632 0 0 46 0 46 46 0 247 0 amapchunkpl 152 11711 0 11202 33 0 33 33 0 158 9 amappl16 200 1957 0 1924 5 2 3 5 0 8 0 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 447 0 445 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 771 0 737 2 0 2 2 0 8 0 amappl11 160 5 0 5 1 1 0 1 0 8 0 amappl10 152 61 0 51 1 0 1 1 0 8 0 amappl9 144 268 0 268 1 1 0 1 0 8 0 amappl8 136 101 0 99 1 0 1 1 0 8 0 amappl7 128 143 0 132 1 0 1 1 0 8 0 amappl6 120 175 0 172 1 0 1 1 0 8 0 amappl5 112 95 0 87 1 0 1 1 0 8 0 amappl4 104 281 0 267 1 0 1 1 0 8 0 amappl3 96 1917 0 1820 4 1 3 3 0 8 0 amappl2 88 646 0 572 2 0 2 2 0 8 0 amappl1 80 11092 0 10520 16 0 16 16 0 8 1 amappl 88 3223 0 3047 5 0 5 5 0 92 0 uvmvnodes 80 102 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 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 6 0 0 1 0 1 1 0 8 0 uaddrrnd 24 530 0 493 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 530 0 493 1 0 1 1 0 8 0 vmmpekpl 168 6338 0 6297 3 0 3 3 0 8 0 vmmpepl 168 43522 0 41526 104 0 104 104 0 357 8 vmsppl 488 529 0 493 7 1 6 6 0 8 0 rwobjpl 80 15946 0 14984 25 1 24 24 0 8 0 pdppl 4096 1067 0 986 111 22 89 97 0 8 8 pvpl 32 13902 0 0 113 0 113 113 0 265 0 pmappl 256 529 0 493 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 471 0 26 13 0 13 13 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{0}> trace x86_ipi_db(ffffffff8393aff0) 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 __mp_lock(ffffffff83ab6800) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83ab6800) at __mp_lock+0x192 sys/kern/kern_lock.c:173 softintr_dispatch(0) at softintr_dispatch+0x125 sys/kern/kern_softintr.c:83 dosoftint(0) at dosoftint+0x54 sys/arch/amd64/amd64/intr.c:862 Xsoftclock() at Xsoftclock+0x27 __mp_lock(ffffffff83ab6800) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83ab6800) at __mp_lock+0x192 sys/kern/kern_lock.c:173 reaper(ffff800045ffd760) at reaper+0x211 sys/kern/kern_exit.c:507 end trace frame: 0x0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> trace in_ifdetach(ffff8000015f5000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f5000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015f5000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003a7b4710) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d03,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff80003a7b47d0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffffc006e2d9028,7,fffffc00097fd3a8,ffff800033b947e8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffffc006d078540,ffff800033b947e8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffffc006d078540,ffff800033b947e8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffffc006d078540,ffff800033b947e8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffffc006d078540,ffff800033b947e8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff800033b947e8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff800033b947e8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff800033b947e8,ffff80003a7b4b40,ffff80003a7b4a90) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003a7b4b40) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003a7b4b40) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x787e51b0c3f0, count: -15