diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2018-02-07 02:36:34 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-02-07 05:32:43 +0300 |
commit | 1db0e0f9dd9816e5d018518f933066d7b9bc0e33 (patch) | |
tree | ff58cbb66f85207a812ad0e60c9eb66f5cef9620 /lib | |
parent | 6860f6340c0918cddcd3c9fcf8c36401c8184268 (diff) | |
download | linux-1db0e0f9dd9816e5d018518f933066d7b9bc0e33.tar.xz |
kasan: unify code between kasan_slab_free() and kasan_poison_kfree()
Both of these functions deal with freeing of slab objects.
However, kasan_poison_kfree() mishandles SLAB_TYPESAFE_BY_RCU
(must also not poison such objects) and does not detect double-frees.
Unify code between these functions.
This solves both of the problems and allows to add more common code
(e.g. detection of invalid frees).
Link: http://lkml.kernel.org/r/385493d863acf60408be219a021c3c8e27daa96f.1514378558.git.dvyukov@google.com
Signed-off-by: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Ryabinin <aryabinin@virtuozzo.com>a
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions