[Devel] [PATCH rh7 09/39] mm, kasan: fix compilation for CONFIG_SLAB

Andrey Ryabinin aryabinin at virtuozzo.com
Thu Sep 14 19:51:26 MSK 2017


From: Alexander Potapenko <glider at google.com>

Add the missing argument to set_track().

Fixes: cd11016e5f52 ("mm, kasan: stackdepot implementation. Enable stackdepot for SLAB")
Signed-off-by: Alexander Potapenko <glider at google.com>
Cc: Andrey Konovalov <adech.fo at gmail.com>
Cc: Christoph Lameter <cl at linux.com>
Cc: Dmitry Vyukov <dvyukov at google.com>
Cc: Andrey Ryabinin <ryabinin.a.a at gmail.com>
Cc: Steven Rostedt <rostedt at goodmis.org>
Cc: Joonsoo Kim <iamjoonsoo.kim at lge.com>
Cc: Konstantin Serebryany <kcc at google.com>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds at linux-foundation.org>

https://jira.sw.ru/browse/PSBM-69081
(cherry picked from commit 0b355eaaaae9bb8bb08b563ef55ecb23a4d743da)
Signed-off-by: Andrey Ryabinin <aryabinin at virtuozzo.com>
---
 mm/kasan/kasan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/kasan/kasan.c b/mm/kasan/kasan.c
index 82c8d58b9a7d..8805ce61e9d0 100644
--- a/mm/kasan/kasan.c
+++ b/mm/kasan/kasan.c
@@ -475,7 +475,7 @@ void kasan_slab_free(struct kmem_cache *cache, void *object)
 		struct kasan_alloc_meta *alloc_info =
 			get_alloc_info(cache, object);
 		alloc_info->state = KASAN_STATE_FREE;
-		set_track(&free_info->track);
+		set_track(&free_info->track, GFP_NOWAIT);
 	}
 #endif
 
-- 
2.13.5



More information about the Devel mailing list