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, Sep 12, 6:06 AM
Unknown Object (File)
Fri, Sep 11, 8:29 AM
Unknown Object (File)
Fri, Sep 11, 2:16 AM
Unknown Object (File)
Thu, Sep 10, 11:28 PM
Unknown Object (File)
Aug 12 2026, 8:16 PM
Unknown Object (File)
Aug 11 2026, 5:53 PM
Unknown Object (File)
Aug 10 2026, 9:27 AM
Unknown Object (File)
Aug 10 2026, 8:32 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