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(ffff800001466000) at bpfdetach+0x40 sys/net/bpf.c:1769 if_detach(ffff800001466000) at if_detach+0x153 sys/net/if.c:1200 tun_clone_destroy(ffff800001466000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003a543390) at if_clone_destroy+0x1d7 sys/net/if.c:1389 sys_ioctl(ffff80002a7f27d0,ffff80003a543570,ffff80003a5434c0) at sys_ioctl+0x5bf syscall(ffff80003a543570) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe554a4ca340, count: -7 ddb> show registers rdi 0 rsi 0 rbp 0xffff80003a543280 rbx 0xffff80003a543570 rdx 0 rcx 0xffffffff83849ff0 cpu_info_full_primary+0x1ff0 rax 0xffff80002a7f27d0 r8 0xffffffff81174b30 uvm_map_inentry_sp r9 0 r10 0 r11 0x214cc036676766a6 r12 0xdead0002dead4110 r13 0x800 r14 0xffff800001466000 r15 0xdead0002dead4110 rip 0xffffffff811ebfc0 bpfdetach+0x40 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003a543250 ss 0x10 bpfdetach+0x40: movq 0(%r15),%r12 ddb> show proc PROC (syz-executor) tid=186645 pid=33257 tcnt=3 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=0xffff80002a7f2020,0xffff80003ca127f8 process=0xffff8000ffff22e0 user=0xffff80003a53e000, vmspace=0xfffffd8069ac5180 estcpu=33, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 45938 344158 10816 0 2 0 syz-executor 45938 101119 10816 0 2 0x4000000 syz-executor 62662 298165 98504 60928 2 0x10 syz-executor 62662 151928 98504 60928 2 0x4000010 syz-executor 58285 58955 40811 0 2 0 syz-executor 58285 431583 40811 0 3 0x4000000 futex syz-executor 96572 197391 79452 0 2 0 syz-executor 96572 372455 79452 0 2 0x4000000 syz-executor 33257 486454 69875 0 2 0 syz-executor *33257 186645 69875 0 7 0x4000000 syz-executor 33257 158469 69875 0 2 0x4000000 syz-executor 7001 312502 21758 -1 3 0x90 nanoslp syz-executor 7001 244540 21758 -1 3 0x4000090 kqsel syz-executor 7001 99669 21758 -1 3 0x4000090 fsleep syz-executor 69875 43731 81639 0 3 0x82 nanoslp syz-executor 28848 254329 81639 0 3 0x82 nanoslp syz-executor 46566 86051 0 0 3 0x14200 bored sosplice 30495 85630 0 0 3 0x14280 nfsidl nfsio 42722 145643 0 0 3 0x14280 nfsidl nfsio 73134 275352 0 0 3 0x14280 nfsidl nfsio 12102 410173 0 0 3 0x14280 nfsidl nfsio 145 46953 0 0 3 0x14280 nfsidl nfsio 45176 21232 0 0 3 0x14280 nfsidl nfsio 17182 424972 0 0 3 0x14280 nfsidl nfsio 34178 32669 0 0 3 0x14280 nfsidl nfsio 2138 507669 0 0 3 0x14280 nfsidl nfsio 85481 354778 0 0 3 0x14280 nfsidl nfsio 71910 262538 0 0 3 0x14280 nfsidl nfsio 70465 345697 0 0 3 0x14280 nfsidl nfsio 80598 382555 0 0 3 0x14280 nfsidl nfsio 24294 163709 0 0 3 0x14280 nfsidl nfsio 98592 400687 0 0 3 0x14280 nfsidl nfsio 82013 199533 0 0 3 0x14280 nfsidl nfsio 56834 345003 0 0 3 0x14280 nfsidl nfsio 95146 442522 0 0 3 0x14280 nfsidl nfsio 27013 479515 0 0 3 0x14280 nfsidl nfsio 93158 111282 0 0 3 0x14280 nfsidl nfsio 52364 184375 81639 0 2 0x2 syz-executor 10816 64367 81639 0 3 0x3 inode syz-executor 98504 377693 81639 0 2 0x3 syz-executor 21758 282274 81639 0 2 0x3 syz-executor 40811 199280 81639 0 2 0x3 syz-executor 79452 177653 81639 0 2 0x3 syz-executor 81639 258159 34087 0 2 0x3 syz-executor 34087 487398 86920 0 3 0x10008a sigsusp ksh 86920 486086 55065 0 3 0x98 kqread sshd-session 55065 169023 13967 0 3 0x92 kqread sshd-session 14629 491148 1 0 3 0x100083 ttyin getty 13967 77432 1 0 3 0x88 kqread sshd 31847 349470 18274 73 3 0x1100090 kqread syslogd 18274 202180 1 0 3 0x100082 sbwait syslogd 74044 207460 1 0 3 0x100080 kqread resolvd 86796 232113 54230 77 3 0x100092 kqread dhcpleased 56319 100012 54230 77 3 0x100092 kqread dhcpleased 54230 229341 1 0 3 0x80 kqread dhcpleased 53176 517762 0 0 3 0x14200 bored smr 1364 341388 0 0 2 0x14200 zerothread 62149 28822 0 0 3 0x14200 aiodoned aiodoned 19786 286205 0 0 3 0x14200 syncer update 961 29886 0 0 3 0x14200 cleaner cleaner 18334 499361 0 0 3 0x14200 reaper reaper 48373 316163 0 0 3 0x14200 pgdaemon pagedaemon 64049 375576 0 0 3 0x14200 bored viomb 43625 358996 0 0 3 0x40014200 acpi0 acpi0 75198 376688 0 0 3 0x14200 bored softnet3 39709 404153 0 0 3 0x14200 bored softnet2 65551 213784 0 0 3 0x14200 bored softnet1 98123 289075 0 0 3 0x14200 bored softnet0 24065 332111 0 0 3 0x14200 bored systqmp 3123 263140 0 0 3 0x14200 bored systq 77599 510187 0 0 3 0x40014200 tmoslp softclock 68544 337978 0 0 3 0x40014200 idle0 1 158390 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 10184 11058K 11442K 166960K 12224 0 pcb 17 13K 14K 166960K 126 0 rtable 262 8K 9K 166960K 586 0 pf 35 14K 22K 166960K 124 0 ifaddr 45 8K 8K 166960K 91 0 ifgroup 54 2K 2K 166960K 127 0 sysctl 3 1K 1K 166960K 3 0 counters 31 17K 18K 166960K 63 0 ioctlops 0 0K 4K 166960K 179 0 iov 0 0K 12K 166960K 37 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1397 88K 88K 166960K 1862 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 5K 166960K 10 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 15 0 dirhash 12 2K 2K 166960K 18 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 17 61K 240K 166960K 733 0 sigio 0 0K 0K 166960K 14 0 proc 60 59K 116K 166960K 633 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 67 0 in_multi 99 7K 7K 166960K 166 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 1 0 ISOFS mount 1 32K 32K 166960K 1 0 MSDOSFS mount 1 16K 16K 166960K 1 0 ttys 55 254K 254K 166960K 55 0 exec 0 0K 1K 166960K 456 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 207 72K 86K 166960K 7850 0 UVM aobj 13 4K 4K 166960K 15 0 pinsyscall 38 76K 94K 166960K 1846 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 21 0 NDP 14 0K 2K 166960K 60 0 temp 53 8674K 9019K 166960K 25721 0 kqueue 13 20K 32K 166960K 128 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 93 0 90 1 0 1 1 0 8 0 rtentry 112 176 0 56 4 0 4 4 0 8 0 unpcb 144 575 0 559 4 2 2 4 0 8 1 syncache 336 3 0 3 1 1 0 1 0 8 0 tcpcb 808 156 0 151 5 3 2 4 0 8 1 arp 88 28 0 8 1 0 1 1 0 8 0 ipq 40 4 0 0 1 0 1 1 0 8 0 ipqe 40 7 0 2 1 0 1 1 0 8 0 inpcb 344 703 0 694 8 6 2 8 0 8 0 nd6 104 45 0 19 1 0 1 1 0 8 0 pkpcb 40 7 0 7 2 1 1 1 0 8 1 kcovpl 48 12 0 4 1 0 1 1 0 8 0 ppxss 1072 23 0 23 2 1 1 1 0 8 1 pppxif 1376 4 0 4 1 1 0 1 0 8 0 pfstscr 40 2 0 2 1 1 0 1 0 8 0 pfosfp 40 1 0 0 1 0 1 1 0 8 0 pfosfpen 112 1 0 0 1 0 1 1 0 8 0 pfrktable 1344 4 0 4 1 0 1 1 0 8 1 pfanchor 1288 5 0 1 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 320 1 0 1 1 1 0 1 0 8 0 pfstitem 24 2 0 0 1 0 1 1 0 8 0 pfstkey 128 8 0 6 1 0 1 1 0 8 0 pfstate 344 5 0 4 1 0 1 1 0 8 0 pfrule 1344 9 0 7 1 0 1 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 688 0 217 32 2 30 30 0 8 0 art_table 32 690 0 217 4 0 4 4 0 8 0 art_node 16 174 0 69 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 2 1 0 1 1 0 8 1 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 12 0 2 1 0 1 1 0 8 0 shmpl 112 12 0 2 1 0 1 1 0 8 0 dirhash 1024 21 0 4 3 0 3 3 0 8 0 dino2pl 256 2537 0 1034 95 0 95 95 0 8 0 ffsino 248 2537 0 1034 95 0 95 95 0 8 0 nchpl 144 3502 0 1815 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 0 1 1 0 8 1 uvmvnodes 80 2981 0 0 61 0 61 61 0 8 0 vnodes 216 2981 0 0 166 0 166 166 0 8 0 namei 1024 12502 0 12502 2 1 1 2 0 8 1 pfiaddrpl 120 1 0 1 1 0 1 1 0 8 1 kstatmem 264 72 0 48 2 0 2 2 0 8 0 scsiplug 72 1 0 1 1 1 0 1 0 8 0 scxspl 216 11104 0 11104 10 2 8 8 1 8 8 plimitpl 152 270 0 253 1 0 1 1 0 8 0 sigapl 424 1013 0 947 8 0 8 8 0 8 0 futexpl 64 8634 0 8632 1 0 1 1 0 8 0 knotepl 120 24176 0 24129 23 12 11 16 0 8 8 kqueuepl 184 333 0 322 7 3 4 4 0 8 3 pipepl 296 144 0 117 3 0 3 3 0 8 0 fdescpl 440 973 0 944 5 1 4 5 0 8 0 filepl 120 5826 0 5612 11 2 9 10 0 8 2 lockfpl 104 150 0 147 1 0 1 1 0 8 0 lockfspl 48 68 0 65 1 0 1 1 0 8 0 sessionpl 144 25 0 17 1 0 1 1 0 8 0 pgrppl 48 50 0 34 1 0 1 1 0 8 0 ucredpl 104 1064 0 1050 1 0 1 1 0 8 0 zombiepl 144 1021 0 1020 1 0 1 1 0 8 0 processpl 1112 1013 0 947 5 0 5 5 0 8 0 procpl 656 1840 0 1766 8 0 8 8 0 8 0 sosppl 168 2 0 2 1 1 0 1 0 8 0 sockpl 528 1391 0 1363 8 4 4 8 0 8 1 mcl64k 65536 12 0 12 2 1 1 1 0 8 1 mcl8k 8192 21 0 21 2 1 1 1 0 8 1 mcl4k 4096 3098 0 3049 13 6 7 13 0 8 0 mcl2k 2048 695 0 690 5 1 4 4 0 8 3 mtagpl 96 87 0 73 2 1 1 2 0 8 0 mbufpl 256 9826 0 9626 21 2 19 19 0 8 3 bufpl 280 3493 0 130 241 0 241 241 0 8 0 anonpl 24 144720 0 141634 48 16 32 44 0 187 3 amapchunkpl 152 25713 0 25254 35 9 26 30 0 158 4 amappl16 200 2331 0 2301 6 3 3 6 0 8 0 amappl15 192 4 0 3 1 0 1 1 0 8 0 amappl14 184 111 0 101 1 0 1 1 0 8 0 amappl13 176 7 0 7 1 1 0 1 0 8 0 amappl12 168 1643 0 1614 2 0 2 2 0 8 0 amappl11 160 46 0 36 1 0 1 1 0 8 0 amappl10 152 6 0 6 1 1 0 1 0 8 0 amappl9 144 243 0 243 1 1 0 1 0 8 0 amappl8 136 28 0 27 1 0 1 1 0 8 0 amappl7 128 103 0 93 1 0 1 1 0 8 0 amappl6 120 224 0 221 1 0 1 1 0 8 0 amappl5 112 131 0 124 1 0 1 1 0 8 0 amappl4 104 327 0 312 1 0 1 1 0 8 0 amappl3 96 4898 0 4791 4 0 4 4 0 8 1 amappl2 88 704 0 648 2 0 2 2 0 8 0 amappl1 80 9449 0 8930 13 1 12 13 0 8 0 amappl 88 7434 0 7275 5 0 5 5 0 92 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 255 0 255 1 1 0 1 0 8 0 dma64 64 7 0 7 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 14 0 2 1 0 1 1 0 8 0 uaddrrnd 24 973 0 944 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 973 0 944 1 0 1 1 0 8 0 vmmpekpl 168 8941 0 8906 3 0 3 3 0 8 1 vmmpepl 168 63980 0 62259 82 2 80 81 0 357 1 vmsppl 360 972 0 944 4 1 3 4 0 8 0 rwobjpl 32 21649 0 17823 32 0 32 32 0 8 0 pdppl 4096 1953 0 1888 103 34 69 81 0 8 4 pvpl 32 406797 0 398491 119 31 88 113 0 265 5 pmappl 216 972 0 944 3 0 3 3 0 8 0 extentpl 40 55 0 38 1 0 1 1 0 8 0 phpool 112 289 0 54 7 0 7 7 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace bpfdetach(ffff800001466000) at bpfdetach+0x40 sys/net/bpf.c:1769 if_detach(ffff800001466000) at if_detach+0x153 sys/net/if.c:1200 tun_clone_destroy(ffff800001466000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003a543390) at if_clone_destroy+0x1d7 sys/net/if.c:1389 sys_ioctl(ffff80002a7f27d0,ffff80003a543570,ffff80003a5434c0) at sys_ioctl+0x5bf syscall(ffff80003a543570) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe554a4ca340, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace bpfdetach(ffff800001466000) at bpfdetach+0x40 sys/net/bpf.c:1769 if_detach(ffff800001466000) at if_detach+0x153 sys/net/if.c:1200 tun_clone_destroy(ffff800001466000) at tun_clone_destroy+0x2aa sys/net/if_tun.c:346 if_clone_destroy(ffff80003a543390) at if_clone_destroy+0x1d7 sys/net/if.c:1389 sys_ioctl(ffff80002a7f27d0,ffff80003a543570,ffff80003a5434c0) at sys_ioctl+0x5bf syscall(ffff80003a543570) at syscall+0x97e sys/arch/amd64/amd64/trap.c:577 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xe554a4ca340, count: -7