login: 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(ffff80000161a000) at bpfdetach+0x70 sys/net/bpf.c:1770 if_detach(ffff80000161a000) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff80000161a000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3fd920) at if_clone_destroy+0x205 sys/net/if.c:1479 ifioctl(ffff800010fdf788,80206979,ffff80003c3fd920,ffff80003c3a8a80) at ifioctl+0x59d sys/net/if.c:2160 sys_ioctl(ffff80003c3a8a80,ffff80003c3fdb00,ffff80003c3fda50) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c3fdb00) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3fdb00) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5056b4b5650, count: -8 ddb{0}> show registers rdi 0xffff800037b94000 rsi 0x13b8e mp_pdirpa+0x2b88 rbp 0xffff80003c3fd740 rbx 0x80206979 __kernel_virt_to_phys+0x206979 rdx 0xffff800037b94000 rcx 0x13b8d mp_pdirpa+0x2b87 rax 0xffffffff81d26c79 bpfdetach+0xb9 r8 0xa0 r9 0 r10 0xe732355df38008e8 r11 0x26a6dbaa9555c2c7 r12 0xdeaf0002deaf4152 r13 0xffff80000161a648 r14 0xffff80000161a000 r15 0xdeaf0002deaf4152 rip 0xffffffff81d26c30 bpfdetach+0x70 cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff80003c3fd710 ss 0x10 bpfdetach+0x70: movq 0(%r15),%r12 ddb{0}> show proc PROC (syz-executor) tid=140449 pid=8755 tcnt=2 stat=onproc flags process=1000 proc=4080000 runpri=32, usrpri=50, slppri=32, nice=20 wchan=0x0, wmesg=, ps_single=0xffff80003c3c34e8 scnt=1 ecnt=1 forw=0xffffffffffffffff, list=0xffff80003c3a82b8,0xffff80002a218808 process=0xffff80003c3c66a0 user=0xffff80003c3f8000, vmspace=0xfffffc00664c37c0 estcpu=36, cpticks=0, pctcpu=0.0, user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51461 220629 41403 0 2 0 syz-executor 51461 240657 41403 0 3 0x4000080 fsleep syz-executor 12116 256031 88630 0 2 0 syz-executor 12116 296222 88630 0 3 0x4000080 ttyout syz-executor 84571 449465 51145 0 2 0 syz-executor 84571 93677 51145 0 3 0x4000080 fsleep syz-executor * 8755 140449 66499 0 7 0x4081000 syz-executor 8755 131618 66499 0 3 0x4003000 suspend syz-executor 32428 115325 48330 0 2 0 syz-executor 32428 18830 48330 0 3 0x4000080 fsleep syz-executor 32428 267994 48330 0 3 0x4000080 fsleep syz-executor 32428 405154 48330 0 3 0x4000080 fsleep syz-executor 32428 1968 48330 0 2 0x4000000 syz-executor 66499 212115 84877 0 3 0x82 nanoslp syz-executor 36793 396784 0 0 3 0x14280 nfsidl nfsio 20400 67283 0 0 3 0x14280 nfsidl nfsio 43276 409716 0 0 3 0x14280 nfsidl nfsio 70892 213379 0 0 3 0x14280 nfsidl nfsio 70364 246327 0 0 3 0x14280 nfsidl nfsio 66554 387417 0 0 3 0x14280 nfsidl nfsio 62399 203259 0 0 3 0x14280 nfsidl nfsio 22767 276795 0 0 3 0x14280 nfsidl nfsio 82984 134361 0 0 3 0x14280 nfsidl nfsio 44198 327782 0 0 3 0x14280 nfsidl nfsio 30377 116814 0 0 3 0x14280 nfsidl nfsio 57152 54277 0 0 3 0x14280 nfsidl nfsio 93406 223363 0 0 3 0x14280 nfsidl nfsio 98525 490133 0 0 3 0x14280 nfsidl nfsio 86246 329281 0 0 3 0x14280 nfsidl nfsio 54713 251076 0 0 3 0x14280 nfsidl nfsio 23874 356875 0 0 3 0x14280 nfsidl nfsio 21257 299153 0 0 3 0x14280 nfsidl nfsio 75155 253725 0 0 3 0x14280 nfsidl nfsio 15712 230907 0 0 3 0x14280 nfsidl nfsio 71661 332624 1 0 3 0x100083 ttyin getty 29028 196556 0 0 3 0x14200 acct acct 14392 325006 84877 0 2 0x2 syz-executor 7014 245136 84877 0 3 0x82 nanoslp syz-executor 85211 332503 84877 0 3 0x82 nanoslp syz-executor 41403 50634 84877 0 3 0x82 nanoslp syz-executor 48330 66002 84877 0 3 0x82 nanoslp syz-executor 51145 336880 84877 0 3 0x82 nanoslp syz-executor 88630 481870 84877 0 3 0x82 nanoslp syz-executor 84877 293395 1 0 3 0x82 kqread syz-executor 10009 328747 68986 0 3 0x98 kqread sshd-session 68986 40275 1 0 3 0x92 kqread sshd-session 71470 43420 1 74 3 0x1100092 bpf pflogd 67731 226432 1 73 3 0x1100090 kqread syslogd 25080 50727 0 0 3 0x14200 bored smr 6367 441038 0 0 2 0x14200 zerothread 39070 191119 0 0 3 0x14200 aiodoned aiodoned 92372 118324 0 0 3 0x14200 syncer update 86306 167751 0 0 3 0x14200 cleaner cleaner 76246 366698 0 0 2 0x14200 reaper 560 54159 0 0 3 0x14200 pgdaemon pagedaemon 22875 75244 0 0 3 0x14200 bored viomb 50649 401193 0 0 3 0x40014200 acpi0 acpi0 62404 474265 0 0 7 0x40014200 idle1 95773 96415 0 0 3 0x14200 bored softnet1 57393 198263 0 0 3 0x14200 bored softnet0 30181 226667 0 0 3 0x14200 bored systqmp 57362 333693 0 0 3 0x14200 bored systq 12342 234947 0 0 3 0x14200 tmoslp softclockmp 76222 359803 0 0 3 0x40014200 tmoslp softclock 40393 447051 0 0 3 0x40014200 idle0 1 395976 0 0 3 0x80082 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 51461 (syz-executor) thread 0xffff807ffffee018 (220629) Process 12116 (syz-executor) thread 0xffff80002a218560 (256031) Process 8755 (syz-executor) thread 0xffff80003c3a8a80 (140449) Process 76246 (reaper) thread 0xffff807fffffd4c8 (366698) ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 11060 12155K 12353K 166960K 13094 0 pcb 17 17K 22K 166960K 304 0 rtable 215 8K 9K 166960K 494 0 pf 37 18K 81K 166960K 225 0 ifaddr 39 6K 8K 166960K 81 0 ifgroup 53 2K 3K 166960K 126 0 sysctl 4 1K 9K 166960K 11 0 counters 72 37K 38K 166960K 130 0 ioctlops 0 0K 4K 166960K 1610 0 iov 0 0K 16K 166960K 189 0 mount 1 1K 1K 166960K 1 0 log 0 0K 0K 166960K 4 0 vnodes 1347 85K 85K 166960K 2133 0 UFS quota 1 32K 32K 166960K 1 0 UFS mount 5 36K 36K 166960K 5 0 shm 2 1K 9K 166960K 42 0 VM map 2 1K 1K 166960K 2 0 sem 12 0K 0K 166960K 61 0 dirhash 12 2K 3K 166960K 39 0 ACPI 1692 195K 286K 166960K 12470 0 file desc 16 57K 93K 166960K 954 0 sigio 0 0K 0K 166960K 7 0 proc 21 33K 212K 166960K 680 0 subproc 72 4K 4K 166960K 90 0 NFS srvsock 1 0K 0K 166960K 1 0 NFS daemon 1 16K 16K 166960K 1 0 ip_moptions 0 0K 0K 166960K 102 0 in_multi 85 6K 7K 166960K 141 0 ether_multi 1 0K 0K 166960K 4 0 mrt 0 0K 0K 166960K 25 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 501 0 fusefs mount 1 32K 32K 166960K 1 0 pfkey data 0 0K 0K 166960K 3 0 tdb 3 0K 0K 166960K 3 0 VM swap 8 62K 64K 166960K 10 0 UVM amap 170 100K 168K 166960K 10307 0 UVM aobj 57 4K 6K 166960K 60 0 pinsyscall 26 52K 104K 166960K 2166 0 memdesc 1 4K 4K 166960K 1 0 crypto data 1 1K 1K 166960K 1 0 ip6_options 0 0K 0K 166960K 22 0 NDP 12 0K 2K 166960K 54 0 temp 60 9124K 9186K 166960K 36332 0 kqueue 6 10K 26K 166960K 149 0 SYN cache 2 16K 16K 166960K 2 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 109 0 109 2 1 1 1 0 8 1 rtentry 176 150 0 62 6 0 6 6 0 8 0 unpcb 144 373 0 365 2 1 1 2 0 8 0 syncache 336 16 0 16 3 2 1 1 0 8 1 tcpcb 736 369 0 366 7 0 7 7 0 8 6 arp 136 23 0 7 1 0 1 1 0 8 0 inpcb 328 1279 0 1275 16 9 7 9 0 8 6 nd6 152 37 0 14 2 0 2 2 0 8 0 pkpcb 40 7 0 7 2 1 1 1 0 8 1 kcovpl 48 10 0 2 1 0 1 1 0 8 0 ppxss 1192 20 0 18 1 0 1 1 0 8 0 pppxif 1576 3 0 3 1 1 0 1 0 8 0 pfstscr 40 22 0 18 1 0 1 1 0 8 0 pffrag 232 5 0 2 2 1 1 1 0 482 0 pffrnode 88 5 0 2 2 1 1 1 0 8 0 pffrent 40 12 0 9 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 pfsrclim 320 2 0 2 2 2 0 1 0 8 0 pfstlim 224 1 0 1 1 1 0 1 0 8 0 pfanchor 1288 22 0 14 2 1 1 2 0 8 0 pftag 88 2 0 0 1 0 1 1 0 8 0 pfqueue 320 2 0 2 1 1 0 1 0 8 0 pfstitem 24 76 0 19 1 0 1 1 0 8 0 pfstkey 128 94 0 37 3 0 3 3 0 8 0 pfstate 448 83 0 28 8 0 8 8 0 8 1 pfrule 1360 26 0 25 2 1 1 2 0 8 0 rttmr 136 2 0 2 1 1 0 1 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 720 0 334 31 4 27 30 0 8 2 art_table 40 722 0 334 5 0 5 5 0 8 0 art_node 32 149 0 70 1 0 1 1 0 8 0 sysvmsgpl 40 10 0 7 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 72 51 0 41 1 0 1 1 0 8 0 shmpl 112 57 0 3 2 0 2 2 0 8 0 dirhash 1024 35 0 18 3 0 3 3 0 8 0 dino2pl 256 3039 0 1577 93 0 93 93 0 8 0 ffsino 296 3039 0 1577 114 0 114 114 0 8 0 nchpl 144 4276 0 2565 64 0 64 64 0 8 0 rtmask 32 3 0 2 1 0 1 1 0 8 0 vnodes 216 3637 0 0 203 0 203 203 0 8 0 namei 1024 13786 0 13784 4 2 2 2 0 8 1 percpumem 16 80 0 29 1 0 1 1 0 8 0 kstatmem 264 71 0 44 3 0 3 3 0 8 0 scsiplug 72 4 0 4 2 1 1 1 0 8 1 scxspl 216 14252 0 14252 11 8 3 8 1 8 3 plimitpl 152 120 0 105 1 0 1 1 0 8 0 sigapl 424 1289 0 1229 8 1 7 7 0 8 0 knotepl 120 730 0 0 23 0 23 23 0 8 0 kqueuepl 224 271 0 266 5 3 2 5 0 8 1 pipepl 344 183 0 156 3 0 3 3 0 8 0 fdescpl 528 1252 0 1230 3 0 3 3 0 8 0 filepl 160 6863 0 6672 19 4 15 15 0 8 5 lockfpl 104 427 0 424 1 0 1 1 0 8 0 lockfspl 48 157 0 155 1 0 1 1 0 8 0 sessionpl 144 121 0 115 1 0 1 1 0 8 0 pgrppl 48 138 0 124 1 0 1 1 0 8 0 ucredpl 104 884 0 874 1 0 1 1 0 8 0 zombiepl 144 1392 0 1390 3 2 1 1 0 8 0 processpl 1232 1289 0 1229 5 0 5 5 0 8 0 procpl 664 2623 0 2554 7 0 7 7 0 8 0 sosppl 176 1 0 1 1 0 1 1 0 8 1 sockpl 752 1794 0 1782 20 10 10 12 0 8 7 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 4 0 0 1 0 1 1 0 8 0 mcl12k 12288 1 0 0 1 0 1 1 0 8 0 mcl9k128 9344 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 120 0 0 15 0 15 15 0 8 0 mcl2k2 2112 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 18 0 0 3 0 3 3 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 178 0 0 12 0 12 12 0 8 0 bufpl 272 4096 0 113 266 0 266 266 0 8 0 anonpl 32 8888 0 0 72 0 72 72 0 115 0 amapchunkpl 152 33173 0 32761 34 14 20 31 0 158 0 amappl16 200 2805 0 2777 18 13 5 14 0 8 0 amappl15 192 11 0 10 1 0 1 1 0 8 0 amappl14 184 453 0 452 1 0 1 1 0 8 0 amappl13 176 202 0 197 1 0 1 1 0 8 0 amappl12 168 1510 0 1488 2 0 2 2 0 8 0 amappl11 160 2 0 2 1 1 0 1 0 8 0 amappl10 152 69 0 65 1 0 1 1 0 8 0 amappl9 144 277 0 277 1 1 0 1 0 8 0 amappl8 136 103 0 101 1 0 1 1 0 8 0 amappl7 128 159 0 152 1 0 1 1 0 8 0 amappl6 120 178 0 178 1 1 0 1 0 8 0 amappl5 112 93 0 88 1 0 1 1 0 8 0 amappl4 104 305 0 296 1 0 1 1 0 8 0 amappl3 96 6958 0 6872 4 1 3 4 0 8 0 amappl2 88 560 0 529 2 0 2 2 0 8 0 amappl1 80 14051 0 13709 15 3 12 15 0 8 0 amappl 88 9399 0 9262 4 0 4 4 0 92 0 uvmvnodes 80 116 0 0 3 0 3 3 0 8 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 7 0 7 2 2 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 18 0 17 1 0 1 1 0 8 0 aobjpl 72 59 0 3 2 0 2 2 0 8 0 uaddrrnd 24 1252 0 1230 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 1252 0 1230 1 0 1 1 0 8 0 vmmpekpl 168 11386 0 11341 3 0 3 3 0 8 0 vmmpepl 168 85327 0 84044 89 21 68 87 0 357 1 vmsppl 488 1251 0 1229 5 1 4 5 0 8 0 rwobjpl 80 24241 0 23516 24 1 23 24 0 8 0 pdppl 4096 2511 0 2458 99 44 55 85 0 8 2 pvpl 32 14838 0 0 121 1 120 120 0 265 0 pmappl 256 1251 0 1229 3 0 3 3 0 8 0 extentpl 40 45 0 27 1 0 1 1 0 8 0 phpool 112 558 0 56 15 0 15 15 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace bpfdetach(ffff80000161a000) at bpfdetach+0x70 sys/net/bpf.c:1770 if_detach(ffff80000161a000) at if_detach+0x12b sys/net/if.c:1289 tun_clone_destroy(ffff80000161a000) at tun_clone_destroy+0x2ce sys/net/if_tun.c:343 if_clone_destroy(ffff80003c3fd920) at if_clone_destroy+0x205 sys/net/if.c:1479 ifioctl(ffff800010fdf788,80206979,ffff80003c3fd920,ffff80003c3a8a80) at ifioctl+0x59d sys/net/if.c:2160 sys_ioctl(ffff80003c3a8a80,ffff80003c3fdb00,ffff80003c3fda50) at sys_ioctl+0x674 sys/kern/sys_generic.c:-1 syscall(ffff80003c3fdb00) at syscall+0xbd4 mi_syscall sys/sys/syscall_mi.h:176 [inline] syscall(ffff80003c3fdb00) at syscall+0xbd4 sys/arch/amd64/amd64/trap.c:783 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x5056b4b5650, count: -8 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x27: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff80002998dff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:394 x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 acpicpu_idle() at acpicpu_idle+0x457 sys/dev/acpi/acpicpu_x86.c:1224 sched_idle(ffff80002998dff0) at sched_idle+0x371 sys/kern/kern_sched.c:192 end trace frame: 0x0, count: -5