Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mm/slub, kunit: Add testcase for krealloc redzone and zeroing
Danilo Krummrich raised issue about krealloc+GFP_ZERO [1], and Vlastimil suggested to add some test case which can sanity test the kmalloc-redzone and zeroing by utilizing the kmalloc's 'orig_size' debug feature. It covers the grow and shrink case of krealloc() re-using current kmalloc object, and the case of re-allocating a new bigger object. [1]. https://lore.kernel.org/lkml/[email protected]/ Suggested-by: Vlastimil Babka <[email protected]> Signed-off-by: Feng Tang <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
- Loading branch information