kernel: protection fault trap, code=0 Stopped at bpfdetach+0x40: movq 0(%r15),%r12 ddb> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic the kernel did not panic ddb> trace bpfdetach(ffff800001472000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001472000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001472000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80002f13d530) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80002a882d08,ffff80002f13d700,ffff80002f13d650) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002f13d700) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f13d700) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcf0b5f37790, count: -7 ddb> show registers rdi 0xffff800035d62000 rsi 0x133e1 __ALIGN_SIZE+0x123e1 rbp 0xffff80002f13d420 rbx 0 rdx 0xffff800035d62000 rcx 0x133e0 __ALIGN_SIZE+0x123e0 rax 0xffffffff82787f79 bpfdetach+0x89 r8 0xffff800035d4ef70 r9 0 r10 0 r11 0x1edc526549c2794a r12 0xdeaf0002deafbead r13 0xffff800001472560 r14 0xffff800001472000 r15 0xdeaf0002deafbead rip 0xffffffff82787f30 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002f13d3f0 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=480047 pid=58133 tcnt=3 stat=onproc flags process=2000 proc=4080000 runpri=32, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80002a883748 scnt=1 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a8834b8,0xffff80002a883758 process=0xffff80002a8a7b68 user=0xffff80002f138000, vmspace=0xfffffd8074f3f8b8 estcpu=32, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 92619 515944 46289 0 2 0 syz-executor 92619 352217 46289 0 3 0x4000080 fsleep syz-executor 59690 4665 82476 0 3 0x80 nanoslp syz-executor 59690 426682 82476 0 3 0x4000080 sbwait syz-executor 59690 476559 82476 0 3 0x4000080 fsleep syz-executor 59690 314945 82476 0 3 0x4000080 fsleep syz-executor 19042 355858 60605 0 3 0x80 nanoslp syz-executor 19042 500146 60605 0 3 0x4000080 wsevent_read syz-executor 19042 324844 60605 0 3 0x4000080 fsleep syz-executor 58133 498214 15628 0 4 0x82000 syz-executor *58133 480047 15628 0 7 0x4082000 syz-executor 58133 405750 15628 0 3 0x4002000 suspend syz-executor 15628 466842 36179 0 2 0xc82 syz-executor 71486 129081 0 0 3 0x14280 nfsidl nfsio 64999 153409 0 0 3 0x14280 nfsidl nfsio 77033 158132 0 0 3 0x14280 nfsidl nfsio 3058 51130 0 0 3 0x14280 nfsidl nfsio 30528 73905 0 0 3 0x14280 nfsidl nfsio 5444 419405 0 0 3 0x14280 nfsidl nfsio 61108 503196 0 0 3 0x14280 nfsidl nfsio 35414 56310 0 0 3 0x14280 nfsidl nfsio 39083 482171 0 0 3 0x14280 nfsidl nfsio 23156 449138 0 0 3 0x14280 nfsidl nfsio 12168 463431 0 0 3 0x14280 nfsidl nfsio 6113 484110 0 0 3 0x14280 nfsidl nfsio 64721 61454 0 0 3 0x14280 nfsidl nfsio 41742 239303 0 0 3 0x14280 nfsidl nfsio 76305 377626 0 0 3 0x14280 nfsidl nfsio 67386 10437 0 0 3 0x14280 nfsidl nfsio 91393 444899 0 0 3 0x14280 nfsidl nfsio 20939 76041 0 0 3 0x14280 nfsidl nfsio 28197 48856 0 0 3 0x14280 nfsidl nfsio 19813 70554 0 0 3 0x14280 nfsidl nfsio 83140 208631 36179 0 2 0x2 syz-executor 50634 192279 36179 0 2 0x2 syz-executor 77316 135843 0 0 3 0x14200 bored sosplice 82476 511891 36179 0 3 0x82 nanoslp syz-executor 34569 476731 36179 0 2 0x2 syz-executor 60605 149289 36179 0 2 0xc82 syz-executor 83523 398671 36179 0 2 0x2 syz-executor 46289 111700 36179 0 2 0xc82 syz-executor 36179 478610 61688 0 3 0x82 kqread syz-executor 61688 232902 48318 0 3 0x10008a sigsusp ksh 48318 484787 72546 0 3 0x98 kqread sshd-session 72546 517465 34314 0 3 0x92 kqread sshd-session 33367 150784 1 0 3 0x100083 ttyopn getty 34314 60828 1 0 3 0x88 kqread sshd 35576 8523 23497 73 3 0x1100090 kqread syslogd 23497 63571 1 0 3 0x100082 sbwait syslogd 91649 503575 1 0 3 0x100080 kqread resolvd 11606 144039 35442 77 3 0x100092 kqread dhcpleased 11083 409128 35442 77 3 0x100092 kqread dhcpleased 35442 175592 1 0 3 0x80 kqread dhcpleased 70143 277674 0 0 3 0x14200 bored smr 11941 344415 0 0 2 0x14200 zerothread 78250 193931 0 0 3 0x14200 aiodoned aiodoned 30842 257583 0 0 3 0x14200 syncer update 19383 130769 0 0 3 0x14200 cleaner cleaner 57135 419282 0 0 3 0x14200 reaper reaper 6144 279130 0 0 3 0x14200 pgdaemon pagedaemon 10922 187338 0 0 3 0x14200 bored viomb 11324 47506 0 0 3 0x40014200 acpi0 acpi0 9264 151614 0 0 3 0x14200 bored softnet7 49639 373119 0 0 3 0x14200 bored softnet6 44708 42313 0 0 3 0x14200 bored softnet5 19686 133253 0 0 3 0x14200 bored softnet4 2340 273970 0 0 3 0x14200 bored softnet3 21047 101789 0 0 3 0x14200 bored softnet2 58291 521541 0 0 3 0x14200 bored softnet1 66954 302614 0 0 3 0x14200 bored softnet0 6492 21726 0 0 3 0x14200 bored systqmp 36082 477724 0 0 3 0x14200 syncxs systq 97108 509462 0 0 3 0x40014200 tmoslp softclock 83130 478193 0 0 3 0x40014200 idle0 1 335822 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10253 11217K 11497K 166960K 12622 0 pcb 20 14K 16K 166960K 202 0 rtable 220 8K 8K 166960K 421 0 pf 34 13K 17K 166960K 91 0 ifaddr 42 7K 8K 166960K 85 0 ifgroup 53 2K 2K 166960K 112 0 sysctl 4 1K 9K 166960K 11 0 counters 32 17K 18K 166960K 61 0 ioctlops 0 0K 4K 166960K 209 0 iov 1 4K 24K 166960K 43 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1469 92K 93K 166960K 2368 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 12 0 VM map 2 1K 1K 166960K 2 0 sem 11 0K 0K 166960K 21 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 14 49K 106K 166960K 749 0 sigio 0 0K 0K 166960K 5 0 proc 60 59K 100K 166960K 669 0 subproc 72 4K 4K 166960K 117 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 92 0 in_multi 102 7K 7K 166960K 181 0 ether_multi 1 0K 0K 166960K 13 0 mrt 1 0K 0K 166960K 9 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 85 387K 387K 166960K 85 0 exec 0 0K 1K 166960K 470 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 2 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 201 147K 162K 166960K 7987 0 UVM aobj 119 3K 3K 166960K 123 0 pinsyscall 35 70K 94K 166960K 1894 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 25 0 NDP 13 0K 2K 166960K 56 0 temp 77 8644K 8724K 166960K 28227 0 kqueue 14 22K 30K 166960K 122 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 vscsiccb 40 1 0 0 1 0 1 1 0 8 0 rtpcb 120 78 0 75 1 0 1 1 0 8 0 rtentry 136 157 0 63 4 0 4 4 0 8 0 unpcb 144 397 0 375 4 3 1 4 0 8 0 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 736 197 0 193 7 0 7 7 0 8 6 arp 88 19 0 7 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 660 0 650 8 1 7 7 0 8 5 ip6q 72 6 0 2 1 0 1 1 0 8 0 ip6af 40 10 0 6 1 0 1 1 0 8 0 nd6 104 31 0 15 1 0 1 1 0 8 0 pkpcb 40 5 0 5 2 1 1 1 0 8 1 kcovpl 48 13 0 5 1 0 1 1 0 8 0 mppekey 1024 1 0 1 1 0 1 1 0 8 1 ppxss 1072 20 0 20 2 1 1 1 0 8 1 pppxif 1384 4 0 4 2 1 1 1 0 8 1 pfstscr 40 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 1 0 1 1 1 0 1 0 8 0 pftag 88 3 0 1 2 1 1 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 4 0 2 2 1 1 1 0 8 0 pfstate 384 2 0 1 2 1 1 1 0 8 0 pfrule 1344 6 0 6 2 1 1 1 0 8 1 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 717 0 277 31 3 28 28 0 8 0 art_table 40 720 0 277 5 0 5 5 0 8 0 art_node 32 157 0 73 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semupl 112 3 0 3 2 1 1 1 0 8 1 semapl 112 16 0 7 1 0 1 1 0 8 0 shmpl 112 120 0 4 4 0 4 4 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2710 0 1201 95 0 95 95 0 8 0 ffsino 256 2710 0 1201 95 0 95 95 0 8 0 nchpl 144 3636 0 1935 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 uvmvnodes 80 3474 0 0 71 0 71 71 0 8 0 vnodes 216 3474 0 0 193 0 193 193 0 8 0 namei 1024 12907 0 12907 3 2 1 2 0 8 1 kstatmem 264 60 0 38 2 0 2 2 0 8 0 scsiplug 72 9 0 9 2 1 1 1 0 8 1 scxspl 216 12287 0 12286 9 7 2 8 1 8 1 plimitpl 152 147 0 130 1 0 1 1 0 8 0 sigapl 424 1036 0 969 10 1 9 9 0 8 1 knotepl 120 24652 0 24604 18 8 10 10 0 8 8 kqueuepl 184 241 0 231 3 2 1 3 0 8 0 pipepl 304 143 0 116 3 0 3 3 0 8 0 fdescpl 448 993 0 967 5 1 4 5 0 8 0 filepl 120 5948 0 5693 13 2 11 11 0 8 0 lockfpl 104 790 0 788 3 1 2 2 0 8 1 lockfspl 48 381 0 379 1 0 1 1 0 8 0 sessionpl 144 26 0 18 1 0 1 1 0 8 0 pgrppl 48 88 0 72 1 0 1 1 0 8 0 ucredpl 104 1073 0 1061 1 0 1 1 0 8 0 zombiepl 144 1250 0 1250 1 0 1 1 0 8 1 processpl 1168 1036 0 969 7 1 6 6 0 8 0 procpl 656 1987 0 1912 8 0 8 8 0 8 0 sosppl 168 1 0 1 1 1 0 1 0 8 0 sockpl 552 1160 0 1125 12 4 8 8 0 8 5 mcl64k 65536 26 0 25 2 1 1 1 0 8 0 mcl16k 16384 1 0 1 1 0 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl9k 9216 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 5 0 5 2 1 1 1 0 8 1 mcl4k 4096 3182 0 3131 13 5 8 12 0 8 0 mcl2k 2048 966 0 961 4 2 2 3 0 8 1 mtagpl 96 17 0 7 1 0 1 1 0 8 0 mbufpl 256 9674 0 9520 16 1 15 15 0 8 2 bufpl 280 4252 0 121 296 0 296 296 0 8 0 anonpl 24 160637 0 157664 55 10 45 47 0 187 19 amapchunkpl 152 26071 0 25673 35 10 25 32 0 158 5 amappl16 200 2877 0 2855 18 7 11 15 0 8 8 amappl15 192 4 0 4 1 1 0 1 0 8 0 amappl14 184 146 0 136 1 0 1 1 0 8 0 amappl13 176 70 0 70 1 1 0 1 0 8 0 amappl12 168 1716 0 1690 3 1 2 3 0 8 0 amappl11 160 45 0 35 1 0 1 1 0 8 0 amappl10 152 15 0 14 1 0 1 1 0 8 0 amappl9 144 248 0 248 1 1 0 1 0 8 0 amappl8 136 26 0 24 1 0 1 1 0 8 0 amappl7 128 105 0 95 1 0 1 1 0 8 0 amappl6 120 238 0 235 1 0 1 1 0 8 0 amappl5 112 161 0 154 1 0 1 1 0 8 0 amappl4 104 294 0 277 1 0 1 1 0 8 0 amappl3 96 4995 0 4905 4 0 4 4 0 8 0 amappl2 88 675 0 620 2 0 2 2 0 8 0 amappl1 80 10617 0 10083 13 1 12 13 0 8 0 amappl 88 7178 0 7041 5 0 5 5 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 3 0 2 1 0 1 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 257 0 257 2 1 1 1 0 8 1 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 122 0 4 3 0 3 3 0 8 0 uaddrrnd 24 993 0 967 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 993 0 967 1 0 1 1 0 8 0 vmmpekpl 168 8562 0 8514 3 0 3 3 0 8 0 vmmpepl 168 67573 0 65894 93 2 91 92 0 357 8 vmsppl 368 992 0 967 4 1 3 4 0 8 0 rwobjpl 40 23195 0 18787 45 0 45 45 0 8 0 pdppl 4096 1992 0 1934 102 34 68 80 0 8 10 pvpl 32 437440 0 429467 123 16 107 123 0 265 15 pmappl 216 992 0 967 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 398 0 55 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001472000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001472000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001472000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80002f13d530) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80002a882d08,ffff80002f13d700,ffff80002f13d650) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002f13d700) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f13d700) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcf0b5f37790, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001472000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001472000) at if_detach+0x1bb sys/net/if.c:1200 tun_clone_destroy(ffff800001472000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:340 if_clone_destroy(ffff80002f13d530) at if_clone_destroy+0x1d5 sys/net/if.c:1389 sys_ioctl(ffff80002a882d08,ffff80002f13d700,ffff80002f13d650) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002f13d700) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002f13d700) at syscall+0x962 sys/arch/amd64/amd64/trap.c:748 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xcf0b5f37790, count: -7