diff options
author | 2021-07-23 15:50:11 -0700 | |
---|---|---|
committer | 2021-07-23 17:43:28 -0700 | |
commit | 235a85cb32bb123854ad31de46fdbf04c1d57cda (patch) | |
tree | 20de2e4c1293425ab5f2566e1525ef70e2981e20 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kfence: defer kfence_test_init to ensure that kunit debugfs is created (diff) | |
download | wireguard-linux-235a85cb32bb123854ad31de46fdbf04c1d57cda.tar.xz wireguard-linux-235a85cb32bb123854ad31de46fdbf04c1d57cda.zip |
kfence: move the size check to the beginning of __kfence_alloc()
Check the allocation size before toggling kfence_allocation_gate.
This way allocations that can't be served by KFENCE will not result in
waiting for another CONFIG_KFENCE_SAMPLE_INTERVAL without allocating
anything.
Link: https://lkml.kernel.org/r/20210714092222.1890268-1-glider@google.com
Signed-off-by: Alexander Potapenko <glider@google.com>
Suggested-by: Marco Elver <elver@google.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: <stable@vger.kernel.org> [5.12+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions