You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy just used pages from huge ANONYMOUS|NORESERVE mappings.
ASan creates a "shadow" of the used memory.
This is done in a mapping of around 20 TB address space,
but most of it is not yet used.
This patch helps an ASan-enabled rr build in following tests:
nested_detach
nested_detach_kill
nested_detach_kill_stuck
nested_detach_wait
nested_release
Avoids error message:
ERROR: AddressSanitizer: requested allocation size 0x20000000000 (0x20000001000 after adjustments for alignment, red zones etc.) exceeds maximum supported size of 0x10000000000 (thread T0)
Changes in V2:
- Fallback if pagemap is not available in copy_mem_mapping_just_used.
- Allocate memory by std::vector instead of new.
- Attempt to improve readability.
- Explain better intended behaviour of copy_mem_mapping_just_used.
- Added bit 62 (swap) like used in function process_execve.
- Add check for return value of pread.
- Change test to better exercise the handling of consecutive pages
at the end of a mapping.
0 commit comments