Support vmlinux.inline if CONFIG_DEBUG_INFO_BTF_INLINE is enabled
Maintainers usually reply within 4 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
The failure comes from the module-name filter in the kernel BTF loading path; the proposed fix sits where loadKernelModuleSpec() is called over the /sys/kernel/btf entries. Start by reproducing with go test -run '^$' -bench '^BenchmarkNewCollectionManyProgs$' -benchtime 1x . on a kernel with CONFIG_DEBUG_INFO_BTF_INLINE=y. Done means the benchmark passes, .inline entries are skipped, and the existing BTF module loading tests still pass.
Written by the indexing model from the issue text.
Description
Description
Linux 7.4 adds CONFIG_DEBUG_INFO_BTF_INLINE (torvalds/linux@672981f4ae, in v7.4-rc1). With it set, /sys/kernel/btf also holds vmlinux.inline, plus <module>.inline for modules(torvalds/linux@42d7153fcb). These files hold split BTF that describes inlined call sites.
How to reproduce
-
Build a kernel from v7.4-rc1 or bpf-next with
CONFIG_DEBUG_INFO_BTF=y
andCONFIG_DEBUG_INFO_BTF_INLINE=y, using pahole 1.32 or newer. After
boot,ls /sys/kernel/btfshowsvmlinux vmlinux.inline. -
On that kernel, as root, from a checkout of cilium/ebpf, run an existing
benchmark that loads a CO-RE object:go test -run '^$' -bench '^BenchmarkNewCollectionManyProgs$' -benchtime 1x .BenchmarkNewCollectionManyProgs collection_test.go:608: program kprobe_execve3: apply CO-RE relocations: load BTF for kmod vmlinux.inline: invalid module name "vmlinux.inline" --- FAIL: BenchmarkNewCollectionManyProgs
Proposed fix: skip the names that loadKernelModuleSpec() refuses.
entries = slices.DeleteFunc(entries, func(s string) bool {
- return s == "vmlinux"
+ return s == "vmlinux" || filepath.Ext(s) != ""
})
Happy to open a PR with it.
Version information
github.com/cilium/ebpf v0.22.1-0.20260708150823-a5b2e206f9ed (also reproduced on main at 6951718af7)
- Dominant language
- Go
- Stars
- 8k
- Forks
- 903
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cilium/ebpf
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cilium/ebpf#2062 · 3 comments ·
Maintainers usually reply within 4 days
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 65/100
cilium/ebpf#2112 · 1 comment ·
Maintainers usually reply within 4 days
-
Deprecate `features.HaveProgramHelper`Possibly taken @dylandreimerink claimed this 66 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
cilium/ebpf#2089 · 7 comments · 2 reactions ·
Maintainers usually reply within 4 days
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
cilium/ebpf#2080 · 10 comments ·
Maintainers usually reply within 4 days
-
Unable to resolve kfuncs with "suffixes"Possibly taken @dylandreimerink claimed this 129 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
Maintainers usually reply within 4 days
Similar issues
-
tld-snapshot
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
awslabs/ferret-scan#1064 ·
Maintainers usually reply within 2 days
-
enhancement
Difficulty 1/5 Under an hour Newbie friendliness 62/100
DaoCloud/DaoCloud-docs#7839 ·
Maintainers usually reply within 1 day
-
Ignore entry for RUSTSEC-2026-0002 no longer matches anything (`lru` is no longer in `Cargo.lock`)Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
influxdata/influxdb#27767 ·
Maintainers usually reply within 1 day
-
Type: Enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
projectdiscovery/urlfinder#167 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
gojue/ecapture#1100 · 1 reaction ·
Maintainers usually reply within 1 day