Propogate ebpf_verifier_options_t to thread_local_options#856
Conversation
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
WalkthroughThe changes refactor the options parameter passed to the Changes
Assessment against linked issues
Possibly related PRs
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (5)
🧰 Additional context used🧠 Learnings (1)src/test/ebpf_yaml.cpp (1)⏰ Context from checks skipped due to timeout of 90000ms (9)
🔇 Additional comments (11)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Resolves: #855
When invoked from check.exe, the verifier was running inconsistent values for ebpf_verifier_options_t, specifically the check_for_termination check option. Program::from_sequence was running with check_for_termination = true and analyze was running with check_for_termination = false. The result is that check.exe would never correctly handle the termination check case.
The fix is to set thread_local_options in Program::from_sequence so that it is consistently used throughout the verifer.
Summary by CodeRabbit