[Bug 217049] New: KASAN: unify kasan_arch_is_ready with kasan_enabled

0 views
Skip to first unread message

bugzill...@kernel.org

unread,
Feb 17, 2023, 4:42:36 AM2/17/23
to kasa...@googlegroups.com
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.

bugzill...@kernel.org

unread,
Jul 30, 2023, 9:19:25 PM7/30/23
to kasa...@googlegroups.com

bugzill...@kernel.org

unread,
Apr 10, 2024, 4:57:08 AM4/10/24
to kasa...@googlegroups.com

bugzill...@kernel.org

unread,
Jun 25, 2025, 5:55:03 AMJun 25
to kasa...@googlegroups.com
https://bugzilla.kernel.org/show_bug.cgi?id=217049

Sabyrzhan Tasbolatov (snov...@gmail.com) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |snov...@gmail.com

--- Comment #3 from Sabyrzhan Tasbolatov (snov...@gmail.com) ---
Hello, I have sent the patch series:

https://lore.kernel.org/all/20250625095224.1...@gmail.com/

bugzill...@kernel.org

unread,
Oct 9, 2025, 12:08:25 PM (5 days ago) Oct 9
to kasa...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages