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)
Mon, Oct 28, 12:25 AM
Unknown Object (File)
Sun, Oct 13, 10:57 AM
Unknown Object (File)
Thu, Oct 10, 11:27 PM
Unknown Object (File)
Thu, Oct 10, 11:27 PM
Unknown Object (File)
Oct 5 2024, 9:21 AM
Unknown Object (File)
Oct 5 2024, 7:30 AM
Unknown Object (File)
Oct 5 2024, 6:52 AM
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