Make eBPF verifier source maps independent of DWARF layout #57346
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 212 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.321
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #57346"
general
weight: 0.35
brycekahle
What does this PR do?
Make
getSourceMaptake each instruction's file, line and source text from the BTF line infocilium/ebpfattaches to it, instead of matching DWARF line sequences to ELF sections.Motivation
Unblock:
A source map should only depend on information attached to each program's instructions, not on how the compiler happens to lay out debug information.
PR #57337 made
TestGetSourceMapfail on all CWS objects with "missing line information at initial instruction for program ...": once its helpers arestatic,clangno longer emits DWARF line sequences in executable section order (257 of 589 misaligned inruntime-security-fentry.o), whichbuildSymbolToSequenceMaprelied on.In that case, DWARF is also gone from stripped objects, which ship and which KMT may therefore want to test, while BTF line info, which the verifier logs this tool analyzes refer to, stays.
Describe how you validated your changes
Locally,
TestGetSourceMappassed:_BAZEL_EBPF_{PREBUILT,CORE}_TARGETS, unstripped and stripped, also comparing every line with source files, while the previous code failed on all stripped ones with "cannot read DWARF data",In CI, it passed in the 39
kmt_run_sysprobe_tests_: [, no_usm]jobs: