Page MenuHomeFreeBSD

mlock_test: use mmap/munmap for unmapped pointer
AcceptedPublic

Authored by brooks on Oct 4 2024, 11:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 6 2025, 10:02 PM
Unknown Object (File)
Sep 4 2025, 8:11 AM
Unknown Object (File)
Aug 14 2025, 10:36 PM
Unknown Object (File)
Aug 14 2025, 4:24 AM
Unknown Object (File)
Aug 7 2025, 7:18 PM
Unknown Object (File)
Aug 2 2025, 9:11 AM
Unknown Object (File)
Jul 20 2025, 7:15 AM
Unknown Object (File)
Jul 17 2025, 3:05 PM
Subscribers

Details

Reviewers
ngie
Summary

Instead of hoping that the page after sbrk(0) is unmapped, map a page
with mmap and then munmap it. This won't work with CheriABI, but it's
an easy fix for now.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 59773
Build 56659: arc lint + arc unit