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)
Mon, Dec 8, 9:04 PM
Unknown Object (File)
Sun, Dec 7, 6:45 PM
Unknown Object (File)
Tue, Dec 2, 7:55 PM
Unknown Object (File)
Mon, Dec 1, 7:30 AM
Unknown Object (File)
Wed, Nov 26, 1:34 PM
Unknown Object (File)
Tue, Nov 25, 8:49 AM
Unknown Object (File)
Sun, Nov 23, 5:22 PM
Unknown Object (File)
Fri, Nov 21, 12: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