Thread (40 messages) 40 messages, 8 authors, 2016-02-23

Re: [PATCH v1 2/8] mm, kasan: SLAB support

From: Alexander Potapenko <glider@google.com>
Date: 2016-01-28 12:37:36

On Jan 28, 2016 8:44 AM, "Joonsoo Kim" [off-list ref] wrote:
On Wed, Jan 27, 2016 at 07:25:07PM +0100, Alexander Potapenko wrote:
quoted
This patch adds KASAN hooks to SLAB allocator.

This patch is based on the "mm: kasan: unified support for SLUB and
SLAB allocators" patch originally prepared by Dmitry Chernenkov.

Signed-off-by: Alexander Potapenko <glider@google.com>
---
 Documentation/kasan.txt  |  5 ++-
...
quoted
+#ifdef CONFIG_SLAB
+struct kasan_alloc_meta *get_alloc_info(struct kmem_cache *cache,
+                                     const void *object)
+{
+     return (void *)object + cache->kasan_info.alloc_meta_offset;
+}
+
+struct kasan_free_meta *get_free_info(struct kmem_cache *cache,
+                                   const void *object)
+{
+     return (void *)object + cache->kasan_info.free_meta_offset;
+}
+#endif
I cannot find the place to store stack info for free. get_free_info()
isn't used except print_object(). Plese let me know where.
This is covered by other patches in this patchset.
Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help