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
Unknown Object (File)
Sat, Mar 14, 5:59 AM
Unknown Object (File)
Thu, Mar 12, 3:56 AM
Unknown Object (File)
Wed, Mar 11, 11:00 PM
Unknown Object (File)
Sun, Mar 8, 10:44 AM
Unknown Object (File)
Thu, Mar 5, 4:41 PM
Unknown Object (File)
Mon, Mar 2, 7:16 PM
Unknown Object (File)
Mon, Mar 2, 1:20 PM
Unknown Object (File)
Tue, Feb 17, 12:43 PM
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