Page MenuHomeFreeBSD

LinuxKPi: lkpi___kmalloc change a < into <= for proper boundry check
ClosedPublic

Authored by bz on Mar 29 2025, 6:29 PM.
Tags
None
Referenced Files
F163980186: D49570.id152988.diff
Mon, Jul 27, 3:31 PM
Unknown Object (File)
Sat, Jul 25, 10:29 AM
Unknown Object (File)
Sat, Jul 25, 4:07 AM
Unknown Object (File)
Sun, Jul 19, 2:34 PM
Unknown Object (File)
Sat, Jul 4, 1:24 AM
Unknown Object (File)
Jun 19 2026, 5:19 AM
Unknown Object (File)
May 21 2026, 4:35 AM
Unknown Object (File)
May 19 2026, 9:37 AM
Subscribers

Details

Summary

lkpi___kmalloc() would use contigmalloc if the requested size is exactly
PAGE_SIZE. But we can still fullfill this request from malloc() without
losing the guarantee of physical contiguous memory.

Sponsored by: The FreeBSD Foundation
Reported by: emaste (in D46656)
Fixes: 19df0c5abcb9d
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 63196
Build 60080: arc lint + arc unit