https://bugzilla.kernel.org/show_bug.cgi?id=217049
Bug ID: 217049
Summary: KASAN: unify kasan_arch_is_ready with kasan_enabled
Product: Memory Management
Version: 2.5
Kernel Version: upstream
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Sanitizers
Assignee:
mm_san...@kernel-bugs.kernel.org
Reporter:
andre...@gmail.com
CC:
kasa...@googlegroups.com
Regression: No
From [1]:
Both functions seem to be serving a similar purpose: for example this
patch adds kasan_arch_is_ready into __kasan_poison_vmalloc, which is
called by kasan_poison_vmalloc when kasan_enabled returns true.
The kasan_enabled is only implemented for HW_TAGS right now, but it
should be easy enough to make it work other cases by
kasan_flag_enabled into common.c and adding __wrappers for
shadow-related functions into include/linux/kasan.h. This way
architectures won't need to define their own static key and duplicate
the functionality.
[1]
https://lore.kernel.org/linux-mm/CA+fCnZcnwN-FGbteoMwFeHrG...@mail.gmail.com/
--
You may reply to this email to add a comment.
You are receiving this mail because:
You are on the CC list for the bug.