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
F151963820: D49570.id152845.diff
Sat, Apr 11, 7:43 PM
Unknown Object (File)
Sat, Apr 11, 8:20 AM
Unknown Object (File)
Wed, Apr 8, 4:28 AM
Unknown Object (File)
Tue, Apr 7, 5:32 AM
Unknown Object (File)
Sun, Apr 5, 3:54 AM
Unknown Object (File)
Fri, Mar 20, 9:51 AM
Unknown Object (File)
Sat, Mar 14, 5:59 AM
Unknown Object (File)
Mar 12 2026, 3:56 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