diff options
| author | Andrey Konovalov <[email protected]> | 2022-09-05 23:05:26 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-10-03 14:02:58 -0700 |
| commit | 284f8590a1dfbe1c33b50bf6e8f8dc714e61bfd3 (patch) | |
| tree | 74be3b66761d656f58efbd6625d158adce0973b7 /tools/perf/scripts/python/bin | |
| parent | 2f3568017268fc34eb0b6b4b3163c0f2e619fde6 (diff) | |
kasan: introduce kasan_requires_meta
Add a kasan_requires_meta() helper that indicates whether the enabled
KASAN mode requires per-object metadata and use this helper in the common
code.
Also hide kasan_init_object_meta() under CONFIG_KASAN_GENERIC ifdef check,
as Generic is the only mode that uses per-object metadata.
To allow for a potential future change that makes Generic KASAN support
the kasan.stacktrace command-line parameter, let kasan_requires_meta()
return kasan_stack_collection_enabled() instead of simply returning true.
Link: https://lkml.kernel.org/r/cf837e9996246aaaeebf704ccf8ec26a34fcf64f.1662411799.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Reviewed-by: Marco Elver <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Evgenii Stepanov <[email protected]>
Cc: Peter Collingbourne <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions