Closed ramosian-glider closed 4 years ago
Use get_random_int() to select a random kmalloc cache and to place the allocated object at the beginning/end of the page. Also fix ksize() to handle both cases of object placement within the page.
Signed-off-by: Alexander Potapenko glider@google.com
Use get_random_int() to select a random kmalloc cache and to place the allocated object at the beginning/end of the page. Also fix ksize() to handle both cases of object placement within the page.
Signed-off-by: Alexander Potapenko glider@google.com