Page MenuHomeFreeBSD

mkimg: Avoid leaking a page of mmap
Needs ReviewPublic

Authored by cperciva on Tue, Sep 29, 8:13 PM.
Tags
None
Referenced Files
F174021193: D60148.diff
Wed, Sep 30, 12:59 AM
F174020184: D60148.id188130.diff
Wed, Sep 30, 12:49 AM
F174019792: D60148.id188130.diff
Wed, Sep 30, 12:44 AM
F174008874: D60148.id188130.diff
Tue, Sep 29, 10:56 PM
F174008047: D60148.diff
Tue, Sep 29, 10:47 PM
Subscribers

Details

Reviewers
emaste
sjg
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