Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature - Restrict ro data layout in SBPFv2 #481

Merged
merged 2 commits into from
Jul 6, 2023

Conversation

Lichtso
Copy link

@Lichtso Lichtso commented Jul 5, 2023

No description provided.

@Lichtso Lichtso requested a review from alessandrod July 5, 2023 15:14
@Lichtso Lichtso force-pushed the feature/restrict_ro_data_layout_in_sbpf_v2 branch from 0012b16 to 465c9ce Compare July 5, 2023 15:25
src/elf.rs Outdated
let s2 = new_section(20, 10);
let s3 = new_section(40, 10);
let s4 = new_section(50, 10);
let s1 = new_section(ebpf::MM_PROGRAM_START, 10);
Copy link

@alessandrod alessandrod Jul 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of changing the existing test, wouldn't it be better to add a new test
with this "high" vaddrs? We have code that does one thing or another depending
on whether vaddr < MM_PROGRAM_START or >. I think we should test both?

We can probably even do for base_addr in [0, MM_PROGRAM_START] { ... } as I
think the behaviour should be exactly the same

@Lichtso Lichtso force-pushed the feature/restrict_ro_data_layout_in_sbpf_v2 branch from 465c9ce to 5d945b9 Compare July 6, 2023 14:09
@Lichtso Lichtso merged commit c20a353 into main Jul 6, 2023
12 checks passed
@Lichtso Lichtso deleted the feature/restrict_ro_data_layout_in_sbpf_v2 branch July 6, 2023 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants