Messages in this thread | | | Subject | Re: [PATCH 1/2] kasan: fix invalid-free test crashing the kernel | From | Andrey Ryabinin <> | Date | Fri, 2 Mar 2018 15:11:21 +0300 |
| |
On 03/01/2018 08:15 PM, Andrey Konovalov wrote: > When an invalid-free is triggered by one of the KASAN tests, the object > doesn't actually get freed. This later leads to a BUG failure in > kmem_cache_destroy that checks that there are no allocated objects in the > cache that is being destroyed. Fix this by calling kmem_cache_free with > the proper object address after the call that triggers invalid-free. > > Signed-off-by: Andrey Konovalov <andreyknvl@google.com>
Acked-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
| |