diff options
author | Marco Elver <elver@google.com> | 2021-03-13 06:07:53 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-03-13 20:27:30 +0100 |
commit | df3ae2c9941d38106afd67d7816b58f6dc7405e8 (patch) | |
tree | 97efa2735c3a0f7052db276b825b874d00928c1e /mm/kfence | |
parent | kfence: fix printk format for ptrdiff_t (diff) | |
download | linux-df3ae2c9941d38106afd67d7816b58f6dc7405e8.tar.xz linux-df3ae2c9941d38106afd67d7816b58f6dc7405e8.zip |
kfence, slab: fix cache_alloc_debugcheck_after() for bulk allocations
cache_alloc_debugcheck_after() performs checks on an object, including
adjusting the returned pointer. None of this should apply to KFENCE
objects. While for non-bulk allocations, the checks are skipped when we
allocate via KFENCE, for bulk allocations cache_alloc_debugcheck_after()
is called via cache_alloc_debugcheck_after_bulk().
Fix it by skipping cache_alloc_debugcheck_after() for KFENCE objects.
Link: https://lkml.kernel.org/r/20210304205256.2162309-1-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Andrey Konovalov <andreyknvl@google.com>
Cc: Jann Horn <jannh@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/kfence')
0 files changed, 0 insertions, 0 deletions