Page MenuHomeFreeBSD

LinuxKPi: lkpi___kmalloc change a < into <= for proper boundry check
ClosedPublic

Authored by bz on Sat, Mar 29, 6:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 3, 4:27 PM
Unknown Object (File)
Tue, Apr 1, 8:58 PM
Unknown Object (File)
Tue, Apr 1, 2:42 PM
Unknown Object (File)
Tue, Apr 1, 10:37 AM
Unknown Object (File)
Tue, Apr 1, 2:04 AM
Unknown Object (File)
Tue, Apr 1, 1:34 AM
Unknown Object (File)
Tue, Apr 1, 12:51 AM
Unknown Object (File)
Mon, Mar 31, 11:09 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