Round up aligned_alloc() allocations

this fixes an address sanitizer splat

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
Kent Overstreet 2020-11-16 18:06:43 -05:00
parent 4915b450e2
commit 3420d86959

View File

@ -16,6 +16,8 @@ static inline void *__vmalloc(unsigned long size, gfp_t gfp_mask)
{
void *p;
size = round_up(size, PAGE_SIZE);
run_shrinkers();
p = aligned_alloc(PAGE_SIZE, size);