Page MenuHomeFreeBSD

mkimg: Avoid leaking a page of mmap
ClosedPublic

Authored by cperciva on Tue, Sep 29, 8:13 PM.
Tags
None
Referenced Files
F174839260: D60148.id.diff
Tue, Oct 6, 10:00 AM
F174831763: D60148.id188543.diff
Tue, Oct 6, 7:54 AM
F174830529: D60148.diff
Tue, Oct 6, 7:36 AM
F174825817: D60148.id.diff
Tue, Oct 6, 6:19 AM
F174778357: D60148.diff
Mon, Oct 5, 10:48 PM
F174769384: D60148.id188130.diff
Mon, Oct 5, 9:22 PM
Unknown Object (File)
Mon, Oct 5, 9:53 AM
Unknown Object (File)
Mon, Oct 5, 3:03 AM
Subscribers

Details

Summary

The image_file_map function adjusts the provided file offset to be
page-aligned, with a resulting increase in the size of the mapped
region; the increased size needs to be used when unmapping as well.

Reported by: Claude Opus 5.5
Fixes: baf4abfc39b2 ("Allow building mkimg as cross-tool")
Sponsored by: Amazon

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77498
Build 74381: arc lint + arc unit