Thread (1 message) 1 message, 1 author, 2019-08-14

[Bug 204371] BUG kmalloc-4k (Tainted: G W ): Object padding overwritten

From: <hidden>
Date: 2019-08-14 20:30:28

https://bugzilla.kernel.org/show_bug.cgi?id=204371
--- Comment #24 from Christophe Leroy (christophe.leroy@c-s.fr) ---
It confirms what I suspected: due to some debug options, kzalloc() doesn't
provide aligned areas.

In __load_free_space_cache() can you replace 
e->bitmap = kzalloc(PAGE_SIZE, GFP_NOFS);
By
e->bitmap = (void *)__get_free_page(GFP_NOFS | __GFP_ZERO);

And same in insert_into_bitmap()

Then replace the three kfree() which free bitmaps by something like
free_page((unsigned long)entry->bitmap)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help