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(ffff8000015f0000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f0000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015f0000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff800036b7e100) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d06,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff800036b7e1c0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff9006e313a48,7,fffff900097fd8f0,ffff80002a22b4d8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff9006cf917c0,ffff80002a22b4d8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff9006cf917c0,ffff80002a22b4d8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff9006cf917c0,ffff80002a22b4d8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff9006cf917c0,ffff80002a22b4d8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a22b4d8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a22b4d8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a22b4d8,ffff800036b7e530,ffff800036b7e480) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800036b7e530) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800036b7e530) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75937a5cf830, count: -15 ddb{1}> show registers rdi 0 rsi 0 rbp 0xffff800036b7dff0 rbx 0xffff8000015b5840 rdx 0 rcx 0xffff80002a22b4d8 rax 0xdeafbeaddeafbead r8 0xffffffffffffffff r9 0x1 r10 0x6493a57b08bd9a87 r11 0x90158df30b622ff9 r12 0 r13 0xffff8000015f0048 r14 0xffff8000015f0000 r15 0xdeaf0036deafbead rip 0xffffffff8210c8e7 in_ifdetach+0x67 cs 0x8 rflags 0x10282 __ALIGN_SIZE+0xf282 rsp 0xffff800036b7dfa0 ss 0x10 in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> show proc PROC (syz-executor) tid=418247 pid=48059 tcnt=0 stat=onproc flags process=18 proc=2000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=1 forw=0xffffffffffffffff, list=0xffff80002a22ba08,0xffff80002a22afb8 process=0xffff800045fef9d8 user=0xffff800036b79000, vmspace=0xfffff900741f8b88 estcpu=36, cpticks=1, pctcpu=0.0, user=0, sys=0, intr=0 ddb{1}> ps PID TID PPID UID S PRLAGS PFLAGS WAIT COMMAND 62680 135098 83541 32767 7 0x1010 0x2000 syz-executor 9415 121848 39775 32767 3 0x10 0x80 nanoslp syz-executor 9415 14111 39775 32767 3 0x10 0x4000080 sbwait syz-executor 9415 159705 39775 32767 3 0x10 0x4000080 fsleep syz-executor 23153 24440 97976 0 3 0x2 0 clonelk ifconfig 97976 355567 51974 0 3 0x100002 0x88 sigsusp sh 51974 459968 18938 0 3 0 0x80 wait syz-executor 18938 230634 12507 0 3 0x2 0x80 wait syz-executor 80633 306396 55881 0 3 0x2 0 clonelk ifconfig 55881 26974 61819 0 3 0x100002 0x88 sigsusp sh 61819 255977 54962 0 3 0 0x80 wait syz-executor 54962 370028 12507 0 3 0x2 0x80 wait syz-executor 93378 517022 33924 32767 3 0x10 0x80 nanoslp syz-executor 93378 392725 33924 32767 3 0x10 0x4000080 kqpoll syz-executor 93378 72658 33924 32767 3 0x10 0x4000080 fsleep syz-executor 91117 417320 82846 0 3 0 0 clonelk syz-executor 82846 476134 12507 0 3 0x2 0x80 wait syz-executor 83541 174915 16489 32767 3 0x10 0x80 nanoslp syz-executor 16489 354467 12507 0 3 0x2 0x80 wait syz-executor 33924 68245 9771 32767 3 0x10 0x80 nanoslp syz-executor 39775 298550 7157 32767 3 0x10 0x80 nanoslp syz-executor 46787 372518 12507 0 3 0x2 0x80 wait syz-executor 13586 510298 12507 0 3 0x2 0x80 wait syz-executor 7157 207867 12507 0 3 0x2 0x80 wait syz-executor 9771 239707 12507 0 3 0x2 0x80 wait syz-executor 12507 422291 39337 0 3 0x2 0x80 kqread syz-executor 39337 434102 48700 0 3 0x100002 0x88 sigsusp ksh 48700 483921 77614 0 3 0x10 0x88 kqread sshd-session 77614 465728 87355 0 3 0x12 0x80 kqread sshd-session 41367 208282 1 0 3 0x100003 0x80 ttyin getty 87355 336022 1 0 3 0 0x88 kqread sshd 77211 319324 90681 73 3 0x1100010 0x80 kqread syslogd 90681 457815 1 0 3 0x100002 0x80 sbwait syslogd 55577 353024 1 0 3 0x100000 0x80 kqread resolvd 30073 368129 77151 77 3 0x100012 0x80 kqread dhcpleased 10076 115549 77151 77 3 0x100012 0x80 kqread dhcpleased 77151 126412 1 0 3 0 0x80 kqread dhcpleased 59379 366151 0 0 3 0x14000 0x200 bored smr 21154 161128 0 0 3 0x14000 0x200 pgzero zerothread 62029 461050 0 0 3 0x14000 0x200 aiodoned aiodoned 66185 48127 0 0 3 0x14000 0x200 syncer update 36399 233097 0 0 3 0x14000 0x200 cleaner cleaner 13018 167703 0 0 3 0x14000 0x200 reaper reaper 99041 370654 0 0 3 0x14000 0x200 pgdaemon pagedaemon 53840 17463 0 0 3 0x14000 0x200 bored viomb 88499 421964 0 0 3 0x14000 0x40000200 acpi0 acpi0 23644 210710 0 0 3 0x14000 0x40000200 idle1 88056 122209 0 0 3 0x14000 0x200 bored softnet1 72729 365919 0 0 3 0x14000 0x200 bored softnet0 22982 497034 0 0 3 0x14000 0x200 smrbar systqmp 65761 504387 0 0 3 0x14000 0x200 bored systq 2251 178223 0 0 3 0x14000 0x200 tmoslp softclockmp 52534 456922 0 0 3 0x14000 0x40000200 tmoslp softclock 13995 491322 0 0 3 0x14000 0x40000200 idle0 1 387919 0 0 3 0x2 0x80 wait init 0 0 -1 0 3 0x10000 0x200 scheduler swapper ddb{1}> show all locks Process 22982 (systqmp) thread 0xffff800045ffe298 (497034) shared rwlock systqmp r = 0 (0xffffffff83946db8) #0 witness_lock+0x5f1 stacktrace_save sys/sys/stacktrace.h:37 [inline] #0 witness_lock+0x5f1 sys/kern/subr_witness.c:1160 #1 taskq_thread+0x12a sys/kern/kern_task.c:442 #2 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11037 12011K 12034K 166960K 12141 0 pcb 17 12K 12K 166960K 17 0 rtable 173 5K 7K 166960K 383 0 pf 25 16K 16K 166960K 33 0 ifaddr 30 5K 7K 166960K 48 0 ifgroup 38 1K 2K 166960K 54 0 sysctl 1 1K 9K 166960K 5 0 counters 64 36K 37K 166960K 72 0 ioctlops 0 0K 4K 166960K 35 0 iov 0 0K 0K 166960K 1 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1287 81K 81K 166960K 1388 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 6 0 dirhash 12 2K 2K 166960K 12 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 25 93K 125K 166960K 242 0 sigio 0 0K 0K 166960K 1 0 proc 75 147K 163K 166960K 558 0 subproc 72 4K 4K 166960K 108 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 1 0K 0K 166960K 25 0 in_multi 66 4K 6K 166960K 112 0 ether_multi 1 0K 0K 166960K 1 0 mrt 0 0K 0K 166960K 5 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 385 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 218 153K 179K 166960K 3724 0 UVM aobj 5 2K 2K 166960K 5 0 pinsyscall 46 92K 114K 166960K 1360 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 10 0 NDP 10 0K 2K 166960K 30 0 temp 38 9118K 9134K 166960K 3712 0 kqueue 14 22K 30K 166960K 42 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 41 0 38 1 0 1 1 0 8 0 rtentry 176 124 0 46 6 0 6 6 0 8 0 unpcb 144 70 0 51 1 0 1 1 0 8 0 syncache 336 5 0 5 1 0 1 1 0 8 1 tcpqe 32 1 0 1 1 0 1 1 0 8 1 tcpcb 736 35 0 30 2 0 2 2 0 8 1 arp 136 20 0 8 1 0 1 1 0 8 0 inpcb 328 204 0 193 7 0 7 7 0 8 5 nd6 152 29 0 13 1 0 1 1 0 8 0 kcovpl 48 12 0 4 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 520 0 189 30 0 30 30 0 8 6 art_table 40 521 0 189 5 0 5 5 0 8 0 art_node 32 124 0 43 1 0 1 1 0 8 0 semupl 112 1 0 1 1 0 1 1 0 8 1 semapl 72 4 0 1 1 0 1 1 0 8 0 shmpl 120 2 0 0 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1644 0 175 92 0 92 92 0 8 0 ffsino 296 1644 0 175 114 0 114 114 0 8 0 nchpl 144 1946 0 248 64 0 64 64 0 8 0 vnodes 216 1761 0 0 98 0 98 98 0 8 0 namei 1024 6681 0 6681 3 1 2 2 0 8 2 percpumem 16 52 0 4 1 0 1 1 0 8 0 kstatmem 264 27 0 8 2 0 2 2 0 8 0 scxspl 216 6806 0 6806 4 1 3 3 1 8 3 plimitpl 152 50 0 26 1 0 1 1 0 8 0 sigapl 424 525 0 472 7 0 7 7 0 8 0 knotepl 120 293 0 0 9 0 9 9 0 8 0 kqueuepl 224 73 0 63 3 0 3 3 0 8 2 pipepl 344 135 0 108 3 0 3 3 0 8 0 fdescpl 528 509 0 472 4 0 4 4 0 8 1 filepl 160 2075 0 1864 12 0 12 12 0 8 1 lockfpl 104 28 0 25 1 0 1 1 0 8 0 lockfspl 48 14 0 11 1 0 1 1 0 8 0 sessionpl 144 30 0 14 1 0 1 1 0 8 0 pgrppl 48 43 0 19 1 0 1 1 0 8 0 ucredpl 104 164 0 148 1 0 1 1 0 8 0 zombiepl 144 475 0 472 1 0 1 1 0 8 0 processpl 1232 525 0 472 5 0 5 5 0 8 0 procpl 664 638 0 581 6 0 6 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 316 0 283 10 0 10 10 0 8 6 mcl64k 65536 2 0 0 1 0 1 1 0 8 0 mcl16k 16384 1 0 0 1 0 1 1 0 8 0 mcl12k 12288 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 2 0 0 1 0 1 1 0 8 0 mcl4k 4096 113 0 0 15 0 15 15 0 8 0 mcl2k 2048 22 0 0 3 0 3 3 0 8 0 mextrefs 64 22 0 0 1 0 1 1 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 216 0 0 14 0 14 14 0 8 0 bufpl 272 2528 0 102 162 0 162 162 0 8 0 anonpl 32 3806 0 0 31 0 31 31 0 247 0 amapchunkpl 152 10475 0 10025 23 0 23 23 0 158 4 amappl16 200 2030 0 2016 5 0 5 5 0 8 3 amappl15 192 9 0 9 1 0 1 1 0 8 1 amappl14 184 417 0 414 1 0 1 1 0 8 0 amappl13 176 117 0 107 1 0 1 1 0 8 0 amappl12 168 743 0 712 2 0 2 2 0 8 0 amappl11 160 9 0 9 1 0 1 1 0 8 1 amappl10 152 65 0 55 1 0 1 1 0 8 0 amappl9 144 288 0 288 1 0 1 1 0 8 1 amappl8 136 96 0 93 1 0 1 1 0 8 0 amappl7 128 139 0 128 1 0 1 1 0 8 0 amappl6 120 165 0 159 1 0 1 1 0 8 0 amappl5 112 94 0 87 1 0 1 1 0 8 0 amappl4 104 262 0 248 1 0 1 1 0 8 0 amappl3 96 1779 0 1695 4 1 3 3 0 8 0 amappl2 88 626 0 551 3 0 3 3 0 8 1 amappl1 80 10954 0 10383 16 0 16 16 0 8 1 amappl 88 3014 0 2860 5 0 5 5 0 92 0 uvmvnodes 80 97 0 0 2 0 2 2 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 4 0 0 1 0 1 1 0 8 0 uaddrrnd 24 509 0 472 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 509 0 472 1 0 1 1 0 8 0 vmmpekpl 168 6158 0 6111 3 0 3 3 0 8 0 vmmpepl 168 42390 0 40484 102 0 102 102 0 357 12 vmsppl 488 508 0 472 7 1 6 6 0 8 0 rwobjpl 80 15632 0 14688 24 0 24 24 0 8 1 pdppl 4096 1025 0 944 107 20 87 97 0 8 6 pvpl 32 11397 0 0 92 0 92 92 0 265 0 pmappl 256 508 0 472 4 1 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 443 0 24 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(ffffffff8394aff0) 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(ffffffff83a1a2c0) at __mp_lock+0x192 __mp_lock_spin sys/kern/kern_lock.c:142 [inline] __mp_lock(ffffffff83a1a2c0) at __mp_lock+0x192 sys/kern/kern_lock.c:173 __mp_acquire_count(ffffffff83a1a2c0,1) at __mp_acquire_count+0x58 sys/kern/kern_lock.c:-1 sleep_finish(ffffffffffffffff,1) at sleep_finish+0x2d8 sys/kern/kern_synch.c:369 msleep_nsec(ffff800045fe4b30,ffff800045fe4ac8,20,ffffffff834c1f03,ffffffffffffffff) at msleep_nsec+0x132 sys/kern/kern_synch.c:219 single_thread_set(ffff80003afc87f0,3) at single_thread_set+0x1de sys/kern/kern_sig.c:2337 exit1(ffff80003afc87f0,0,0,1) at exit1+0xa7 sys/kern/kern_exit.c:132 sys_exit(ffff80003afc87f0,ffff80003b3d1860,ffff80003b3d17b0) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff80003b3d1860) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003b3d1860) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x781f54a8e980, count: -12 ddb{0}> machine ddbcpu 1 Stopped at in_ifdetach+0x67: movzbl 0x1(%rax),%r12d ddb{1}> trace in_ifdetach(ffff8000015f0000) at in_ifdetach+0x67 sys/netinet/in.c:1018 if_detach(ffff8000015f0000) at if_detach+0x2fe sys/net/if.c:1311 tun_clone_destroy(ffff8000015f0000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff800036b7e100) at if_clone_destroy+0x205 sys/net/if.c:1480 tun_dev_close(5d06,7) at tun_dev_close+0x1d9 sys/net/if_tun.c:526 spec_close(ffff800036b7e1c0) at spec_close+0x417 sys/kern/spec_vnops.c:-1 VOP_CLOSE(fffff9006e313a48,7,fffff900097fd8f0,ffff80002a22b4d8) at VOP_CLOSE+0x132 sys/kern/vfs_vops.c:156 vn_closefile(fffff9006cf917c0,ffff80002a22b4d8) at vn_closefile+0x12b vn_close sys/kern/vfs_vnops.c:298 [inline] vn_closefile(fffff9006cf917c0,ffff80002a22b4d8) at vn_closefile+0x12b sys/kern/vfs_vnops.c:621 fdrop(fffff9006cf917c0,ffff80002a22b4d8) at fdrop+0x121 sys/kern/kern_descrip.c:1281 closef(fffff9006cf917c0,ffff80002a22b4d8) at closef+0x192 sys/kern/kern_descrip.c:1265 fdfree(ffff80002a22b4d8) at fdfree+0x116 sys/kern/kern_descrip.c:1196 exit1(ffff80002a22b4d8,43,0,1) at exit1+0x595 sys/kern/kern_exit.c:215 sys_exit(ffff80002a22b4d8,ffff800036b7e530,ffff800036b7e480) at sys_exit+0x1a sys/kern/kern_exit.c:-1 syscall(ffff800036b7e530) at syscall+0xb17 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff800036b7e530) at syscall+0xb17 sys/arch/amd64/amd64/trap.c:791 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x75937a5cf830, count: -15