[PATCH] mm-kasan-switch-slub-to-stackdepot-enable-memory-quarantine-for-slub-fix

2016-07-15 Thread Andrey Ryabinin
- Remove CONFIG_SLAB ifdefs. The code works just fine with both allocators. - Reset metada offsets if metadata doesn't fit. Otherwise kasan_metadata_size() will give us the wrong results. Signed-off-by: Andrey Ryabinin --- mm/kasan/kasan.c | 17 + 1 file

[PATCH] mm-kasan-switch-slub-to-stackdepot-enable-memory-quarantine-for-slub-fix

2016-07-15 Thread Andrey Ryabinin
- Remove CONFIG_SLAB ifdefs. The code works just fine with both allocators. - Reset metada offsets if metadata doesn't fit. Otherwise kasan_metadata_size() will give us the wrong results. Signed-off-by: Andrey Ryabinin --- mm/kasan/kasan.c | 17 + 1 file changed, 5

Re: [PATCH] mm-kasan-switch-slub-to-stackdepot-enable-memory-quarantine-for-slub-fix

2016-07-15 Thread Alexander Potapenko
On Fri, Jul 15, 2016 at 6:50 PM, Andrey Ryabinin wrote: > - Remove CONFIG_SLAB ifdefs. The code works just fine with both allocators. > - Reset metada offsets if metadata doesn't fit. Otherwise > kasan_metadata_size() > will give us the wrong results. > > Signed-off-by:

Re: [PATCH] mm-kasan-switch-slub-to-stackdepot-enable-memory-quarantine-for-slub-fix

2016-07-15 Thread Alexander Potapenko
On Fri, Jul 15, 2016 at 6:50 PM, Andrey Ryabinin wrote: > - Remove CONFIG_SLAB ifdefs. The code works just fine with both allocators. > - Reset metada offsets if metadata doesn't fit. Otherwise > kasan_metadata_size() > will give us the wrong results. > > Signed-off-by: Andrey Ryabinin