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(ffff800001604800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001604800) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff800001604800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a787a90) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80003c8fba10,ffff80002a787c60,ffff80002a787bb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a787c60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a787c60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6d75681e1e0, count: -7 ddb> show registers rdi 0xffff80003a4e2000 rsi 0xf7a2 __ALIGN_SIZE+0xe7a2 rbp 0xffff80002a787980 rbx 0 rdx 0xffff80003a4e2000 rcx 0xf7a1 __ALIGN_SIZE+0xe7a1 rax 0xffffffff82b2aa19 bpfdetach+0x89 r8 0 r9 0xffffffffffffffff r10 0x398ce5eaa3dee654 r11 0xc013193f27710348 r12 0xdead0002deadbeef r13 0xffff800001604d80 r14 0xffff800001604800 r15 0xdead0002deadbeef rip 0xffffffff82b2a9d0 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80002a787950 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=195909 pid=34985 tcnt=4 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=83, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000314bcd20,0xffff80003c8fad28 process=0xffff8000ffff9f98 user=0xffff80002a782000, vmspace=0xfffffd806cfc3010 estcpu=33, cpticks=4, pctcpu=0.1, user=0, sys=4, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 39450 445253 40423 0 2 0 syz-executor 39450 67621 40423 0 2 0x4000000 syz-executor 59826 253430 30580 0 2 0 syz-executor 59826 384670 30580 0 3 0x4000080 fsleep syz-executor 52050 372354 48073 0 2 0 syz-executor 52050 147865 48073 0 3 0x4000080 fsleep syz-executor 52050 319869 48073 0 3 0x4000080 fsleep syz-executor 1586 182472 30868 0 2 0 syz-executor 1586 165641 30868 0 3 0x4000080 fsleep syz-executor 48451 464885 977 0 2 0 syz-executor 48451 123875 977 0 3 0x4000080 fifor syz-executor 48451 460210 977 0 3 0x4000080 fifor syz-executor 34985 1116 52673 0 2 0 syz-executor *34985 195909 52673 0 7 0x4000000 syz-executor 34985 364512 52673 0 3 0x4000080 fsleep syz-executor 34985 270782 52673 0 3 0x4000080 fsleep syz-executor 58200 40032 1 0 3 0x80 nanoslp init 34233 507448 0 0 3 0x14200 acct acct 52673 442086 9410 0 3 0x82 nanoslp syz-executor 30580 246053 9410 0 3 0x82 nanoslp syz-executor 49711 10194 9410 0 3 0x82 nanoslp syz-executor 40423 137269 9410 0 3 0x82 nanoslp syz-executor 48073 432313 9410 0 3 0x82 nanoslp syz-executor 30868 290805 9410 0 3 0x82 nanoslp syz-executor 977 55767 9410 0 3 0x82 nanoslp syz-executor 61743 309370 9410 0 2 0x2 syz-executor 9410 501819 1 0 3 0x82 kqread syz-executor 23144 39339 1 73 3 0x1100090 kqread syslogd 61714 408514 0 0 3 0x14200 bored smr 66108 64019 0 0 2 0x14200 zerothread 53815 456297 0 0 3 0x14200 aiodoned aiodoned 93427 228253 0 0 3 0x14200 syncer update 59604 221351 0 0 3 0x14200 cleaner cleaner 36863 315650 0 0 2 0x14200 reaper 22967 257889 0 0 3 0x14200 pgdaemon pagedaemon 9674 409652 0 0 3 0x14200 bored viomb 54621 390131 0 0 3 0x40014200 acpi0 acpi0 48449 84448 0 0 3 0x14200 bored softnet0 26735 464674 0 0 3 0x14200 bored systqmp 4096 313251 0 0 3 0x14200 bored systq 7940 122377 0 0 3 0x40014200 tmoslp softclock 28551 149310 0 0 3 0x40014200 idle0 1 364301 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11038 12293K 12429K 166960K 12617 0 pcb 17 15K 17K 166960K 173 0 rtable 212 6K 8K 166960K 425 0 pf 31 13K 20K 166960K 91 0 ifaddr 37 6K 8K 166960K 62 0 ifgroup 46 2K 2K 166960K 88 0 sysctl 3 1K 9K 166960K 9 0 counters 32 17K 18K 166960K 50 0 ioctlops 0 0K 4K 166960K 117 0 iov 0 0K 12K 166960K 24 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1387 87K 87K 166960K 1810 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 20K 24K 166960K 9 0 VM map 2 1K 1K 166960K 2 0 sem 10 0K 0K 166960K 79 0 dirhash 12 2K 2K 166960K 21 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 89K 166960K 534 0 sigio 0 0K 0K 166960K 7 0 proc 11 17K 91K 166960K 544 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 2 0K 0K 166960K 60 0 in_multi 85 6K 7K 166960K 122 0 ether_multi 1 0K 0K 166960K 5 0 mrt 0 0K 0K 166960K 23 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 464 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 1 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 142 87K 174K 166960K 6740 0 UVM aobj 13 2K 2K 166960K 13 0 pinsyscall 19 38K 92K 166960K 1649 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 18 0 NDP 11 0K 2K 166960K 38 0 temp 48 9109K 9172K 166960K 26484 0 kqueue 6 7K 27K 166960K 108 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 101 0 101 2 0 2 2 0 8 2 rtentry 136 130 0 37 4 0 4 4 0 8 0 unpcb 144 378 0 372 6 0 6 6 0 8 5 syncache 336 5 0 5 2 1 1 1 0 8 1 tcpcb 736 290 0 287 7 0 7 7 0 8 6 arp 96 19 0 5 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 617 0 609 7 0 7 7 0 8 6 ip6q 72 2 0 1 1 0 1 1 0 8 0 ip6af 40 3 0 2 1 0 1 1 0 8 0 nd6 112 30 0 11 1 0 1 1 0 8 0 pkpcb 40 10 0 10 1 0 1 1 0 8 1 kcovpl 48 8 0 0 1 0 1 1 0 8 0 ppxss 1072 11 0 11 2 1 1 1 0 8 1 pppxif 1416 5 0 5 2 1 1 1 0 8 1 pfstscr 40 5 0 2 1 0 1 1 0 8 0 pfanchor 1288 4 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfstitem 24 4 0 0 1 0 1 1 0 8 0 pfstkey 128 6 0 2 1 0 1 1 0 8 0 pfstate 384 3 0 1 1 0 1 1 0 8 0 pfrule 1360 5 0 3 1 0 1 1 0 8 0 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 583 0 188 31 0 31 31 0 8 5 art_table 40 584 0 188 5 0 5 5 0 8 0 art_node 32 130 0 45 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 5 1 0 1 1 0 8 0 semupl 112 2 0 2 1 0 1 1 0 8 1 semapl 72 76 0 68 1 0 1 1 0 8 0 shmpl 112 10 0 0 1 0 1 1 0 8 0 dirhash 1024 23 0 6 3 0 3 3 0 8 0 dino2pl 256 2304 0 848 92 0 92 92 0 8 0 ffsino 256 2304 0 848 92 0 92 92 0 8 0 nchpl 144 3069 0 1370 64 0 64 64 0 8 0 rtmask 32 1 0 1 1 0 1 1 0 8 1 vnodes 216 2707 0 0 151 0 151 151 0 8 0 namei 1024 10376 0 10376 3 2 1 2 0 8 1 kstatmem 264 43 0 22 2 0 2 2 0 8 0 scsiplug 72 6 0 6 2 1 1 1 0 8 1 scxspl 216 10282 0 10282 11 3 8 8 1 8 8 plimitpl 152 145 0 134 1 0 1 1 0 8 0 sigapl 424 835 0 801 6 1 5 6 0 8 0 knotepl 120 25887 0 25861 31 21 10 17 0 8 8 kqueuepl 184 286 0 283 4 0 4 4 0 8 3 pipepl 304 216 0 189 8 0 8 8 0 8 5 fdescpl 448 821 0 802 5 1 4 5 0 8 0 filepl 120 4771 0 4587 17 2 15 15 0 8 8 lockfpl 104 511 0 511 3 1 2 2 0 8 2 lockfspl 48 108 0 108 1 0 1 1 0 8 1 sessionpl 144 45 0 41 1 0 1 1 0 8 0 pgrppl 48 121 0 109 1 0 1 1 0 8 0 ucredpl 104 628 0 622 1 0 1 1 0 8 0 zombiepl 144 1112 0 1111 2 1 1 1 0 8 0 processpl 1152 835 0 801 4 0 4 4 0 8 0 procpl 664 1610 0 1566 6 0 6 6 0 8 1 sosppl 176 1 0 1 1 1 0 1 0 8 0 sockpl 552 1122 0 1108 17 8 9 17 0 8 7 mcl64k 65536 29 0 29 2 1 1 1 0 8 1 mcl16k 16384 2 0 2 2 1 1 1 0 8 1 mcl12k 12288 1 0 1 1 0 1 1 0 8 1 mcl8k 8192 10 0 9 2 1 1 1 0 8 0 mcl4k 4096 3099 0 3041 15 6 9 14 0 8 0 mcl2k 2048 574 0 571 1 0 1 1 0 8 0 mtagpl 96 11 0 10 1 0 1 1 0 8 0 mbufpl 256 7993 0 7842 14 0 14 14 0 8 0 bufpl 280 3202 0 104 222 0 222 222 0 8 0 anonpl 24 131971 0 126073 45 0 45 45 0 186 8 amapchunkpl 152 21747 0 21372 39 5 34 34 0 158 16 amappl16 200 2355 0 2088 21 6 15 15 0 8 0 amappl15 192 1 0 1 1 1 0 1 0 8 0 amappl14 184 412 0 412 1 0 1 1 0 8 1 amappl13 176 114 0 113 1 0 1 1 0 8 0 amappl12 168 1064 0 1047 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 60 0 58 1 0 1 1 0 8 0 amappl9 144 272 0 271 1 0 1 1 0 8 0 amappl8 136 93 0 93 1 0 1 1 0 8 1 amappl7 128 144 0 139 1 0 1 1 0 8 0 amappl6 120 148 0 148 1 0 1 1 0 8 1 amappl5 112 103 0 101 1 0 1 1 0 8 0 amappl4 104 268 0 260 1 0 1 1 0 8 0 amappl3 96 4257 0 4180 4 0 4 4 0 8 1 amappl2 88 537 0 520 2 0 2 2 0 8 0 amappl1 80 11809 0 11683 13 1 12 13 0 8 5 amappl 88 5967 0 5844 5 0 5 5 0 92 1 uvmvnodes 80 107 0 0 3 0 3 3 0 8 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma2048 2048 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 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 20 0 19 1 0 1 1 0 8 0 aobjpl 72 12 0 0 1 0 1 1 0 8 0 uaddrrnd 24 821 0 802 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 821 0 802 1 0 1 1 0 8 0 vmmpekpl 168 8833 0 8799 3 0 3 3 0 8 0 vmmpepl 168 60509 0 59397 89 0 89 89 0 357 35 vmsppl 368 820 0 801 4 1 3 4 0 8 0 rwobjpl 40 19247 0 18549 13 1 12 12 0 8 1 pdppl 4096 1648 0 1602 98 50 48 78 0 8 2 pvpl 32 369516 0 359632 122 7 115 115 0 265 28 pmappl 216 820 0 801 2 0 2 2 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 379 0 67 10 0 10 10 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001604800) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001604800) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff800001604800) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:343 if_clone_destroy(ffff80002a787a90) at if_clone_destroy+0x1d5 sys/net/if.c:1479 sys_ioctl(ffff80003c8fba10,ffff80002a787c60,ffff80002a787bb0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80002a787c60) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80002a787c60) at syscall+0x962 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x6d75681e1e0, count: -7 ddb>