Skip to content

Reintroduce MADV_GUARD_INSTALL path for GWP-ASan. - #1053

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_985388750
Sep 22, 2026
Merged

copybara-service[bot] merged 1 commit into
masterfrom
test_985388750

Conversation

@copybara-service

Copy link
Copy Markdown

Reintroduce MADV_GUARD_INSTALL path for GWP-ASan.

MADV_GUARD_INSTALL fails on mlock'd pages, so we fallback to mprotect for situations where the allocations may have been mlock'd or the process is running with mlockall. This is exercised by the test added in d32b4fa.

We now fallback to mprotect when guarding is not possible on a particular slot and track how often the fallback path is used.

@copybara-service
copybara-service Bot force-pushed the test_985388750 branch 2 times, most recently from a2c8501 to 9471327 Compare September 22, 2026 18:54
MADV_GUARD_INSTALL fails on mlock'd pages, so we fallback to mprotect for situations where the allocations may have been mlock'd or the process is running with mlockall.  This is exercised by the test added in d32b4fa.

We now fallback to mprotect when guarding is not possible on a particular slot and track how often the fallback path is used.

PiperOrigin-RevId: 986170809
@copybara-service
copybara-service Bot merged commit 0b395d0 into master Sep 22, 2026
2 checks passed
@copybara-service
copybara-service Bot deleted the test_985388750 branch September 22, 2026 19:46

This branch was successfully deployed

1 active deployment
github-pages 0b395d0d Deployed Sep 22, 2026 by github-pages[bot] via deploy #2767
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.

1 participant