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
F166101443: D49570.id.diff
Tue, Aug 11, 5:53 PM
Unknown Object (File)
Mon, Aug 10, 9:27 AM
Unknown Object (File)
Mon, Aug 10, 8:32 AM
Unknown Object (File)
Sat, Aug 8, 7:35 PM
Unknown Object (File)
Sat, Aug 8, 2:47 AM
Unknown Object (File)
Fri, Aug 7, 5:24 PM
Unknown Object (File)
Wed, Aug 5, 4:37 AM
Unknown Object (File)
Tue, Aug 4, 2:47 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 Not Applicable
Unit
Tests Not Applicable