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(ffff800001578000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001578000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001578000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c9732c0) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002a7bc548,ffff80003c973490,ffff80003c9733e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c973490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c973490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e237dbac10, count: -7 ddb> show registers rdi 0xffff8000314f8000 rsi 0x110e4 __ALIGN_SIZE+0x100e4 rbp 0xffff80003c9731b0 rbx 0 rdx 0xffff8000314f8000 rcx 0x110e3 __ALIGN_SIZE+0x100e3 rax 0xffffffff822bcc99 bpfdetach+0x89 r8 0xffffffffffffffff r9 0 r10 0x7d88f775ef05afa8 r11 0x8b9aa7dbfef265b r12 0xdeaf0002deaf4152 r13 0xffff800001578560 r14 0xffff800001578000 r15 0xdeaf0002deaf4152 rip 0xffffffff822bcc50 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c973180 ss 0 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=369450 pid=26082 tcnt=3 stat=onproc flags process=0 proc=4000000 runpri=32, usrpri=78, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0 forw=0xffffffffffffffff, list=0xffff80002a7bcd10,0xffff80002a7bd4e8 process=0xffff8000ffffb618 user=0xffff80003c96e000, vmspace=0xfffffd806c8d1b98 estcpu=28, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 82793 325280 4693 0 2 0 syz-executor 82793 405223 4693 0 2 0x4000000 syz-executor 80066 181079 19159 0 2 0 syz-executor 80066 173037 19159 0 2 0x4000000 syz-executor 30253 369255 87642 0 2 0 syz-executor 30253 177839 87642 0 3 0x4000080 fsleep syz-executor 26691 508936 37351 0 2 0 syz-executor 26691 501899 37351 0 3 0x4000080 fifow syz-executor 26691 343892 37351 0 2 0x4000000 syz-executor 13384 340138 53189 0 2 0 syz-executor 13384 45217 53189 0 2 0x4000000 syz-executor 13384 514607 53189 0 3 0x4000080 fsleep syz-executor 26082 297298 18254 0 2 0 syz-executor *26082 369450 18254 0 7 0x4000000 syz-executor 26082 338291 18254 0 2 0x4000000 syz-executor 18254 197231 59916 0 3 0x82 nanoslp syz-executor 64310 278992 59916 0 2 0x2 syz-executor 19159 182806 59916 0 3 0x82 nanoslp syz-executor 4693 186911 59916 0 3 0x82 nanoslp syz-executor 37351 150518 59916 0 3 0x82 nanoslp syz-executor 87642 141258 59916 0 3 0x82 nanoslp syz-executor 53189 345305 59916 0 3 0x82 nanoslp syz-executor 57545 67227 59916 0 3 0x82 nanoslp syz-executor 59916 211816 50057 0 2 0x2 syz-executor 50057 230367 84820 0 3 0x10008a sigsusp ksh 84820 351737 95888 0 3 0x98 kqread sshd-session 95888 436138 68771 0 3 0x92 kqread sshd-session 13559 157907 1 0 3 0x100083 ttyin getty 68771 38782 1 0 3 0x88 kqread sshd 28866 92578 53897 73 3 0x1100090 kqread syslogd 53897 299130 1 0 3 0x100082 sbwait syslogd 78560 401024 1 0 3 0x100080 kqread resolvd 16853 342035 13820 77 3 0x100092 kqread dhcpleased 82692 476607 13820 77 3 0x100092 kqread dhcpleased 13820 281733 1 0 3 0x80 kqread dhcpleased 19609 23802 0 0 3 0x14200 bored smr 30619 373698 0 0 2 0x14200 zerothread 85599 137485 0 0 3 0x14200 aiodoned aiodoned 81127 407096 0 0 3 0x14200 syncer update 42119 123612 0 0 3 0x14200 cleaner cleaner 16137 348762 0 0 3 0x14200 reaper reaper 967 27358 0 0 3 0x14200 pgdaemon pagedaemon 34239 491695 0 0 3 0x14200 bored viomb 63496 304032 0 0 3 0x40014200 acpi0 acpi0 32404 361706 0 0 3 0x14200 bored softnet0 46092 185520 0 0 3 0x14200 bored systqmp 86146 354383 0 0 3 0x14200 bored systq 40033 241899 0 0 3 0x40014200 tmoslp softclock 3784 63996 0 0 3 0x40014200 idle0 1 193314 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 11049 12244K 12445K 166960K 12780 0 pcb 18 12K 12K 166960K 65 0 rtable 230 9K 9K 166960K 497 0 pf 33 13K 14K 166960K 57 0 ifaddr 38 6K 7K 166960K 67 0 ifgroup 50 2K 2K 166960K 83 0 sysctl 3 1K 9K 166960K 8 0 counters 33 17K 18K 166960K 50 0 ioctlops 0 0K 4K 166960K 64 0 iov 0 0K 16K 166960K 14 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1335 84K 85K 166960K 1601 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 12 0K 0K 166960K 12 0 dirhash 12 2K 2K 166960K 15 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 106K 166960K 431 0 sigio 0 0K 0K 166960K 45 0 proc 60 59K 100K 166960K 585 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 30 0 in_multi 84 6K 7K 166960K 139 0 ether_multi 1 0K 0K 166960K 3 0 mrt 0 0K 0K 166960K 2 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 97 440K 440K 166960K 97 0 exec 0 0K 1K 166960K 423 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 228 151K 165K 166960K 5528 0 UVM aobj 8 6K 8K 166960K 11 0 pinsyscall 38 76K 92K 166960K 1595 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 13 0K 2K 166960K 44 0 temp 47 8669K 8735K 166960K 12937 0 kqueue 17 26K 26K 166960K 74 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 66 0 62 1 0 1 1 0 8 0 rtentry 136 147 0 51 4 0 4 4 0 8 0 unpcb 144 290 0 272 6 0 6 6 0 8 4 syncache 336 6 0 6 1 1 0 1 0 8 0 tcpqe 32 3 0 3 1 1 0 1 0 8 0 tcpcb 736 63 0 56 1 0 1 1 0 8 0 arp 96 25 0 8 1 0 1 1 0 8 0 ipq 40 1 0 0 1 0 1 1 0 8 0 ipqe 40 2 0 1 1 0 1 1 0 8 0 inpcb 328 233 0 220 2 0 2 2 0 8 0 ip6q 72 1 0 0 1 0 1 1 0 8 0 ip6af 40 1 0 0 1 0 1 1 0 8 0 nd6 112 33 0 14 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 kcovpl 48 11 0 3 1 0 1 1 0 8 0 ppxss 1072 12 0 12 2 1 1 1 0 8 1 pppxif 1384 1 0 1 1 1 0 1 0 8 0 pfrktable 1344 1 0 0 1 0 1 1 0 8 0 pftag 88 1 0 0 1 0 1 1 0 8 0 pfrule 1360 3 0 2 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 632 0 204 31 2 29 31 0 8 0 art_table 40 634 0 204 5 0 5 5 0 8 0 art_node 32 147 0 59 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 1 1 0 1 1 0 8 0 semapl 112 10 0 0 1 0 1 1 0 8 0 shmpl 112 4 0 1 1 0 1 1 0 8 0 dirhash 1024 19 0 2 3 0 3 3 0 8 0 dino2pl 256 2054 0 552 95 0 95 95 0 8 0 ffsino 256 2054 0 552 95 0 95 95 0 8 0 nchpl 144 2584 0 878 64 0 64 64 0 8 0 rtmask 32 5 0 5 2 1 1 1 0 8 1 vnodes 216 2265 0 0 126 0 126 126 0 8 0 namei 1024 8293 0 8293 3 2 1 2 0 8 1 vcpupl 3904 2 0 0 1 0 1 1 0 8 0 vmpool 808 4 0 2 1 0 1 1 0 8 0 kstatmem 264 44 0 22 2 0 2 2 0 8 0 acpiwqpl 32 1 0 1 1 0 1 1 1 8 1 scxspl 216 8018 0 8018 3 2 1 3 1 8 1 plimitpl 152 155 0 138 1 0 1 1 0 8 0 sigapl 424 710 0 668 6 1 5 6 0 8 0 knotepl 120 13312 0 13255 17 7 10 10 0 8 8 kqueuepl 184 93 0 80 1 0 1 1 0 8 0 pipepl 304 172 0 144 5 2 3 5 0 8 0 fdescpl 448 697 0 668 5 1 4 5 0 8 0 filepl 120 3237 0 3013 11 0 11 11 0 8 2 lockfpl 104 91 0 88 1 0 1 1 0 8 0 lockfspl 48 38 0 35 1 0 1 1 0 8 0 sessionpl 144 27 0 19 1 0 1 1 0 8 0 pgrppl 48 40 0 24 1 0 1 1 0 8 0 ucredpl 104 449 0 438 1 0 1 1 0 8 0 zombiepl 144 711 0 709 1 0 1 1 0 8 0 processpl 1152 710 0 668 4 0 4 4 0 8 0 procpl 664 1119 0 1066 6 1 5 6 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 552 598 0 562 12 0 12 12 0 8 8 mcl64k 65536 22 0 22 2 1 1 1 0 8 1 mcl16k 16384 1 0 1 1 1 0 1 0 8 0 mcl8k 8192 9 0 9 2 1 1 1 0 8 1 mcl4k 4096 2794 0 2738 15 7 8 15 0 8 0 mcl2k 2048 466 0 464 6 1 5 5 0 8 4 mtagpl 96 9 0 5 1 0 1 1 0 8 0 mbufpl 256 7148 0 6991 18 1 17 17 0 8 3 bufpl 280 2819 0 120 193 0 193 193 0 8 0 anonpl 24 132043 0 128928 39 8 31 32 0 187 7 amapchunkpl 152 17046 0 16569 30 7 23 27 0 158 3 amappl16 200 2078 0 2049 5 3 2 5 0 8 0 amappl15 192 9 0 9 1 1 0 1 0 8 0 amappl14 184 7 0 6 1 0 1 1 0 8 0 amappl13 176 442 0 441 1 0 1 1 0 8 0 amappl12 168 1062 0 1024 2 0 2 2 0 8 0 amappl11 160 3 0 3 1 1 0 1 0 8 0 amappl10 152 44 0 34 1 0 1 1 0 8 0 amappl9 144 256 0 256 1 1 0 1 0 8 0 amappl8 136 52 0 51 1 0 1 1 0 8 0 amappl7 128 93 0 91 1 0 1 1 0 8 0 amappl6 120 298 0 287 1 0 1 1 0 8 0 amappl5 112 69 0 61 1 0 1 1 0 8 0 amappl4 104 404 0 378 1 0 1 1 0 8 0 amappl3 96 2797 0 2706 3 0 3 3 0 8 0 amappl2 88 817 0 746 2 0 2 2 0 8 0 amappl1 80 11020 0 10485 13 1 12 13 0 8 0 amappl 88 4719 0 4560 5 0 5 5 0 92 0 uvmvnodes 80 103 0 0 3 0 3 3 0 8 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 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 10 0 3 1 0 1 1 0 8 0 uaddrrnd 24 697 0 668 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 697 0 668 1 0 1 1 0 8 0 vmmpekpl 168 7546 0 7508 2 0 2 2 0 8 0 vmmpepl 168 52298 0 50513 89 6 83 86 0 357 2 vmsppl 368 696 0 668 4 1 3 4 0 8 0 rwobjpl 40 17242 0 16294 11 0 11 11 0 8 0 pdppl 4096 1409 0 1342 105 34 71 81 0 8 4 pvpl 32 327698 0 318840 98 16 82 98 0 265 4 pmappl 216 700 0 670 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 394 0 55 11 0 11 11 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001578000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001578000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001578000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c9732c0) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002a7bc548,ffff80003c973490,ffff80003c9733e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c973490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c973490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e237dbac10, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001578000) at bpfdetach+0x40 sys/net/bpf.c:1770 if_detach(ffff800001578000) at if_detach+0x12b sys/net/if.c:1288 tun_clone_destroy(ffff800001578000) at tun_clone_destroy+0x2a2 sys/net/if_tun.c:347 if_clone_destroy(ffff80003c9732c0) at if_clone_destroy+0x1d5 sys/net/if.c:1478 sys_ioctl(ffff80002a7bc548,ffff80003c973490,ffff80003c9733e0) at sys_ioctl+0x660 sys/kern/sys_generic.c:-1 syscall(ffff80003c973490) at syscall+0x962 mi_syscall sys/sys/syscall_mi.h:-1 [inline] syscall(ffff80003c973490) at syscall+0x962 sys/arch/amd64/amd64/trap.c:775 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x1e237dbac10, count: -7