Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1320371
| From | Joonsoo Kim <iamjoonsoo.kim@lge.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v1 2/8] mm, kasan: SLAB support |
| Date | 2016-01-28 08:50 +0100 |
| Message-ID | <qVPv3-9y-1@gated-at.bofh.it> (permalink) |
| References | <qVD0R-7IE-5@gated-at.bofh.it> <qVD0S-7IE-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Wed, Jan 27, 2016 at 07:25:07PM +0100, Alexander Potapenko wrote:
> 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 ++-
...
> +#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.
Thanks.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v1 0/8] SLAB support for KASAN Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
[PATCH v1 2/8] mm, kasan: SLAB support Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
Re: [PATCH v1 2/8] mm, kasan: SLAB support Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-01-28 08:50 +0100
Re: [PATCH v1 2/8] mm, kasan: SLAB support Alexander Potapenko <glider@google.com> - 2016-01-28 14:30 +0100
Re: [PATCH v1 2/8] mm, kasan: SLAB support Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-02-01 03:20 +0100
[PATCH v1 6/8] kasan: Test fix: Warn if the UAF could not be detected in kmalloc_uaf2 Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
[PATCH v1 8/8] mm: kasan: Initial memory quarantine implementation Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
Re: [PATCH v1 8/8] mm: kasan: Initial memory quarantine implementation Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-02-01 03:50 +0100
[PATCH v1 5/8] mm, kasan: Stackdepot implementation. Enable stackdepot for SLAB Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
Re: [PATCH v1 5/8] mm, kasan: Stackdepot implementation. Enable stackdepot for SLAB Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-01-28 08:50 +0100
Re: [PATCH v1 5/8] mm, kasan: Stackdepot implementation. Enable stackdepot for SLAB Alexander Potapenko <glider@google.com> - 2016-01-28 14:30 +0100
Re: [PATCH v1 5/8] mm, kasan: Stackdepot implementation. Enable stackdepot for SLAB Joonsoo Kim <iamjoonsoo.kim@lge.com> - 2016-02-01 04:00 +0100
[PATCH v1 3/8] mm, kasan: Added GFP flags to KASAN API Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
[PATCH v1 1/8] kasan: Change the behavior of kmalloc_large_oob_right test Alexander Potapenko <glider@google.com> - 2016-01-27 19:30 +0100
Re: [PATCH v1 1/8] kasan: Change the behavior of kmalloc_large_oob_right test Andrew Morton <akpm@linux-foundation.org> - 2016-02-02 06:40 +0100
Re: [PATCH v1 1/8] kasan: Change the behavior of kmalloc_large_oob_right test Andrey Ryabinin <ryabinin.a.a@gmail.com> - 2016-02-02 16:30 +0100
Re: [PATCH v1 1/8] kasan: Change the behavior of kmalloc_large_oob_right test Alexander Potapenko <glider@google.com> - 2016-02-02 17:30 +0100
csiph-web