kernel: protection fault trap, code=0 Stopped at bpfdetach+0x70: movq 0(%r15),%r12 ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace bpfdetach(ffff80000148f800) at bpfdetach+0x70 sys/net/bpf.c:1778 if_detach(ffff80000148f800) at if_detach+0x153 sys/net/if.c:1212 tun_clone_destroy(ffff80000148f800) at tun_clone_destroy+0x2d6 sys/net/if_tun.c:346 if_clone_destroy(ffff80003c4141d0) at if_clone_destroy+0x1d7 sys/net/if.c:1401 ifioctl(ffff8000016705b8,80206979,ffff80003c4141d0,ffff8000ffff0cf8) at ifioctl+0x5c5 sys/net/if.c:-1 sys_ioctl(ffff8000ffff0cf8,ffff80003c4143b0,ffff80003c414300) at sys_ioctl+0x5c3 sys/kern/sys_generic.c:-1 syscall(ffff80003c4143b0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4143b0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x998a9da5de0, count: -8 ddb{0}> show registers rdi 0 rsi 0 rbp 0xffff80003c413ff0 rbx 0x80206979 __kernel_virt_to_phys+0x206979 rdx 0 rcx 0xffff8000ffff0cf8 rax 0xffffffff837e5ff0 cpu_info_full_primary+0x1ff0 r8 0 r9 0xffffffffffffffff r10 0x361ba67b350b3674 r11 0x4d7756e0de8c6f02 r12 0xdeaf0002deafbead r13 0x800 r14 0xffff80000148f800 r15 0xdeaf0002deafbead rip 0xffffffff816e0de0 bpfdetach+0x70 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c413fc0 ss 0x10 bpfdetach+0x70: movq 0(%r15),%r12 ddb{0}> show proc PROC (syz-executor) tid=487240 pid=38402 tcnt=3 stat=onproc flags process=1000 proc=4080000 runpri=32, usrpri=82, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff8000ffff19c8 scnt=2 ecnt=0 forw=0xffffffffffffffff, list=0xffff8000ffff19c8,0xffff8000ffff14b8 process=0xffff8000fffefa38 user=0xffff80003c40f000, vmspace=0xfffffd806c1e83d8 estcpu=32, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 83459 411478 40322 0 2 0 syz-executor 83459 280020 40322 0 2 0x4000000 syz-executor 28671 17878 4318 0 2 0 syz-executor 28671 516512 4318 0 2 0x4000000 syz-executor 28671 171420 4318 0 2 0x4000000 syz-executor 9967 170928 13034 0 2 0 syz-executor 9967 270395 13034 0 2 0x4000000 syz-executor 9967 404304 13034 0 3 0x4000080 fsleep syz-executor 95749 284054 56198 0 2 0 syz-executor 95749 411570 56198 0 2 0x4000000 syz-executor 95749 98595 56198 0 2 0x4000000 syz-executor 95749 334075 56198 0 2 0x4000000 syz-executor 75211 401929 452 0 3 0x80 nanoslp syz-executor 75211 145443 452 0 3 0x4000080 ttyopn syz-executor 75211 135548 452 0 3 0x4000080 fsleep syz-executor 75211 465165 452 0 3 0x4000080 fsleep syz-executor 75211 24170 452 0 2 0x4000000 syz-executor 38402 44381 85190 0 3 0x3000 suspend syz-executor *38402 487240 85190 0 7 0x4081000 syz-executor 38402 121157 85190 0 3 0x4081000 clonelk syz-executor 17349 436306 0 0 3 0x14200 acct acct 85190 41506 23786 0 3 0x82 nanoslp syz-executor 452 340709 23786 0 3 0x82 nanoslp syz-executor 83494 91294 0 0 3 0x14200 bored sosplice 62633 210802 79549 0 3 0x100082 sbwait arp 79549 91698 1 0 3 0x10008a sigsusp sh 66649 479566 23786 0 2 0x2 syz-executor 22962 347325 23786 0 3 0x82 nanoslp syz-executor 13034 499533 23786 0 3 0x82 nanoslp syz-executor 4318 141504 23786 0 3 0x82 nanoslp syz-executor 40322 57492 23786 0 3 0x82 nanoslp syz-executor 56198 350578 23786 0 3 0x82 nanoslp syz-executor 23786 193030 20992 0 3 0x82 kqread syz-executor 20992 50181 29044 0 3 0x10008a sigsusp ksh 29044 396769 83235 0 3 0x98 kqread sshd-session 83235 95099 51994 0 3 0x92 kqread sshd-session 95386 363793 1 0 3 0x100083 ttyin getty 51994 203818 1 0 3 0x88 kqread sshd 75152 141039 35276 74 3 0x1100092 bpf pflogd 35276 330118 1 0 3 0x80 sbwait pflogd 8321 118516 18816 73 3 0x1100090 kqread syslogd 18816 368114 1 0 3 0x100082 sbwait syslogd 76011 358925 1 0 3 0x100080 kqread resolvd 32630 368403 46382 77 3 0x100092 kqread dhcpleased 1953 14874 46382 77 3 0x100092 kqread dhcpleased 46382 270991 1 0 3 0x80 kqread dhcpleased 61612 170809 0 0 3 0x14200 bored smr 92440 18718 0 0 2 0x14200 zerothread 85776 87300 0 0 3 0x14200 aiodoned aiodoned 24532 40795 0 0 3 0x14200 syncer update 65207 500434 0 0 3 0x14200 cleaner cleaner 30265 424355 0 0 3 0x14200 reaper reaper 97999 437843 0 0 3 0x14200 pgdaemon pagedaemon 55474 302632 0 0 3 0x14200 bored viomb 97925 288184 0 0 3 0x40014200 acpi0 acpi0 54346 366520 0 0 7 0x40014200 idle1 15217 97976 0 0 3 0x14200 bored softnet3 86923 325281 0 0 3 0x14200 bored softnet2 89113 428843 0 0 3 0x14200 bored softnet1 937 212445 0 0 3 0x14200 bored softnet0 70534 518851 0 0 3 0x14200 bored systqmp 70555 436275 0 0 3 0x14200 bored systq 33812 426098 0 0 3 0x14200 tmoslp softclockmp 52144 346950 0 0 3 0x40014200 tmoslp softclock 85696 10962 0 0 3 0x40014200 idle0 1 151383 0 0 3 0x82 wait init 0 0 -1 0 3 0x10010200 scheduler swapper ddb{0}> show all locks Process 28671 (syz-executor) thread 0xffff8000fffe8550 (171420) Process 95749 (syz-executor) thread 0xffff8000ffff1738 (411570) Process 95749 (syz-executor) thread 0xffff80002a296020 (334075) Process 75211 (syz-executor) thread 0xffff8000fffe8d00 (24170) Process 38402 (syz-executor) thread 0xffff8000ffff0cf8 (487240) Process 66649 (syz-executor) thread 0xffff80002a296540 (479566) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10235 11183K 15216K 166960K 15891 0 pcb 18 15K 16K 166960K 427 0 rtable 178 11K 11K 166960K 740 0 pf 43 19K 67486K 166960K 247 0 ifaddr 40 7K 8K 166960K 162 0 ifgroup 68 2K 3K 166960K 310 0 sysctl 4 1K 9K 166960K 34 0 counters 74 37K 38K 166960K 316 0 ioctlops 0 0K 4K 166960K 1850 0 iov 0 0K 24K 166960K 146 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1598 100K 101K 166960K 4229 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 31 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 135 0 dirhash 15 2K 3K 166960K 57 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 20 73K 244K 166960K 2204 0 sigio 1 0K 0K 166960K 115 0 proc 74 103K 127K 166960K 824 0 subproc 81 5K 5K 166960K 91 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 359 0 in_multi 77 5K 6K 166960K 212 0 ether_multi 1 0K 0K 166960K 14 0 mrt 0 0K 0K 166960K 8 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 736 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 4 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 269 139K 164K 166960K 21475 0 UVM aobj 103 6K 8K 166960K 113 0 pinsyscall 46 92K 106K 166960K 3387 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 95 0 NDP 15 0K 1K 166960K 107 0 temp 109 8696K 8952K 166960K 144267 0 kqueue 13 20K 32K 166960K 393 0 SYN cache 2 10K 18K 166960K 3 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 26 0 0 1 0 1 1 0 8 0 rtpcb 120 356 0 351 4 3 1 3 0 8 0 rtentry 176 214 0 146 5 0 5 5 0 8 0 unpcb 144 1788 0 1765 16 14 2 6 0 8 1 syncache 336 13 0 13 6 5 1 1 0 8 1 tcpqe 32 13 0 13 4 3 1 1 0 8 1 tcpcb 808 1163 0 1154 27 22 5 8 0 8 4 arp 128 25 0 15 1 0 1 1 0 8 0 inpcb 384 3021 0 3005 35 30 5 14 0 8 3 nd6 144 33 0 16 1 0 1 1 0 8 0 pkpcb 40 36 0 36 6 5 1 1 0 8 1 kcovpl 48 10 0 1 1 0 1 1 0 8 0 mppekey 1024 2 0 2 2 2 0 1 0 8 0 ppxss 1192 87 0 86 2 1 1 1 0 8 0 pppxif 1504 26 0 26 3 2 1 1 0 8 1 pffrag 232 13 0 7 1 0 1 1 0 482 0 pffrnode 88 11 0 6 1 0 1 1 0 8 0 pffrent 40 29 0 23 1 0 1 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfrktable 1344 2 0 1 2 1 1 1 0 8 0 pfanchor 1288 1 0 0 1 0 1 1 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfstitem 24 139 0 82 1 0 1 1 0 8 0 pfstkey 128 139 0 82 3 0 3 3 0 8 0 pfstate 384 139 0 82 9 0 9 9 0 8 0 pfrule 1344 24 0 18 2 0 2 2 0 8 1 rttmr 136 1 0 1 1 1 0 1 0 8 0 art_heap8 4096 3 0 0 3 0 3 3 0 8 0 art_heap4 256 791 0 437 32 9 23 26 0 8 0 art_table 32 794 0 437 4 0 4 4 0 8 0 art_node 16 170 0 111 1 0 1 1 0 8 0 sysvmsgpl 40 31 0 24 1 0 1 1 0 8 0 semapl 112 133 0 123 1 0 1 1 0 8 0 shmpl 112 110 0 10 3 0 3 3 0 8 0 dirhash 1024 48 0 29 3 0 3 3 0 8 0 dino2pl 256 5752 0 4247 95 0 95 95 0 8 0 ffsino 288 5752 0 4247 109 0 109 109 0 8 0 nchpl 144 8821 0 7120 65 1 64 64 0 8 0 rtmask 32 11 0 11 5 4 1 1 0 8 1 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 35010 0 35009 7 5 2 3 0 8 1 percpumem 16 173 0 121 1 0 1 1 0 8 0 kstatmem 264 180 0 144 3 0 3 3 0 8 0 acpiwqpl 32 2 0 2 1 0 1 1 1 8 1 scsiplug 72 9 0 9 4 4 0 1 0 8 0 scxspl 216 28852 0 28852 12 11 1 8 1 8 1 plimitpl 152 388 0 369 1 0 1 1 0 8 0 sigapl 424 2514 0 2460 10 3 7 9 0 8 0 knotepl 120 584 0 0 17 0 17 17 0 8 0 kqueuepl 224 860 0 848 13 12 1 5 0 8 0 pipepl 336 445 0 414 13 6 7 8 0 8 4 fdescpl 520 2470 0 2436 3 0 3 3 0 8 0 filepl 160 20261 0 20013 38 23 15 19 0 8 3 lockfpl 104 653 0 650 1 0 1 1 0 8 0 lockfspl 48 247 0 244 1 0 1 1 0 8 0 sessionpl 144 34 0 25 1 0 1 1 0 8 0 pgrppl 48 74 0 56 1 0 1 1 0 8 0 ucredpl 104 3284 0 3270 1 0 1 1 0 8 0 zombiepl 144 2730 0 2728 3 2 1 1 0 8 0 processpl 1240 2514 0 2460 6 1 5 6 0 8 0 procpl 656 5813 0 5745 11 5 6 8 0 8 0 srpgc 96 10 0 10 4 4 0 1 0 8 0 sosppl 168 12 0 11 3 2 1 1 0 8 0 sockpl 728 5262 0 5218 46 39 7 21 0 8 2 mcl64k 65536 8 0 0 1 0 1 1 0 8 0 mcl16k 16384 3 0 0 1 0 1 1 0 8 0 mcl9k 9216 1 0 0 1 0 1 1 0 8 0 mcl8k 8192 3 0 0 1 0 1 1 0 8 0 mcl4k 4096 109 0 0 14 0 14 14 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 38 0 0 5 0 5 5 0 8 0 mtagpl 96 111 0 0 3 0 3 3 0 8 0 mbufpl 256 469 0 0 27 0 27 27 0 8 0 bufpl 280 9755 0 3613 439 0 439 439 0 8 0 anonpl 32 13114 0 0 106 0 106 106 0 246 0 amapchunkpl 152 73497 0 72854 48 19 29 33 0 158 4 amappl16 200 7190 0 6929 63 38 25 27 0 8 2 amappl15 192 8 0 7 1 0 1 1 0 8 0 amappl14 184 138 0 125 1 0 1 1 0 8 0 amappl13 176 8 0 8 2 2 0 1 0 8 0 amappl12 168 3167 0 3133 3 1 2 2 0 8 0 amappl11 160 53 0 39 1 0 1 1 0 8 0 amappl10 152 12 0 12 1 1 0 1 0 8 0 amappl9 144 250 0 250 1 1 0 1 0 8 0 amappl8 136 20 0 17 1 0 1 1 0 8 0 amappl7 128 126 0 112 1 0 1 1 0 8 0 amappl6 120 210 0 205 1 0 1 1 0 8 0 amappl5 112 126 0 116 1 0 1 1 0 8 0 amappl4 104 365 0 343 1 0 1 1 0 8 0 amappl3 96 14959 0 14834 5 1 4 4 0 8 0 amappl2 88 765 0 697 2 0 2 2 0 8 0 amappl1 80 19104 0 18473 19 3 16 19 0 8 0 amappl 88 20284 0 20091 5 0 5 5 0 92 0 dma65536 65536 2 0 2 1 1 0 1 0 8 0 dma4096 4096 2 0 2 2 2 0 1 0 8 0 dma1024 1024 2 0 1 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 7 0 7 2 2 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 112 0 10 2 0 2 2 0 8 0 uaddrrnd 24 2470 0 2436 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 2470 0 2436 1 0 1 1 0 8 0 vmmpekpl 168 21155 0 21113 3 0 3 3 0 8 0 vmmpepl 168 159080 0 156727 141 28 113 120 0 357 0 vmsppl 480 2469 0 2436 5 0 5 5 0 8 0 rwobjpl 72 47060 0 39784 140 4 136 139 0 8 1 pdppl 4096 4948 0 4872 150 74 76 84 0 8 0 pvpl 32 21150 0 0 173 3 170 170 0 265 0 pmappl 256 2469 0 2436 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 504 0 127 11 0 11 11 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace bpfdetach(ffff80000148f800) at bpfdetach+0x70 sys/net/bpf.c:1778 if_detach(ffff80000148f800) at if_detach+0x153 sys/net/if.c:1212 tun_clone_destroy(ffff80000148f800) at tun_clone_destroy+0x2d6 sys/net/if_tun.c:346 if_clone_destroy(ffff80003c4141d0) at if_clone_destroy+0x1d7 sys/net/if.c:1401 ifioctl(ffff8000016705b8,80206979,ffff80003c4141d0,ffff8000ffff0cf8) at ifioctl+0x5c5 sys/net/if.c:-1 sys_ioctl(ffff8000ffff0cf8,ffff80003c4143b0,ffff80003c414300) at sys_ioctl+0x5c3 sys/kern/sys_generic.c:-1 syscall(ffff80003c4143b0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c4143b0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:579 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x998a9da5de0, count: -8 ddb{0}> machine ddbcpu 1