Re: [PATCH v2 1/2] kasan/hw-tags: introduce kasan.store_only option
From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2025-08-15 11:19:39
Also in:
linux-doc, linux-mm, lkml, workflows
From: Catalin Marinas <catalin.marinas@arm.com>
Date: 2025-08-15 11:19:39
Also in:
linux-doc, linux-mm, lkml, workflows
On Thu, Aug 14, 2025 at 07:03:35AM +0200, Andrey Konovalov wrote:
On Wed, Aug 13, 2025 at 7:53 PM Yeoreum Yun [off-list ref] wrote:quoted
Since Armv8.9, FEATURE_MTE_STORE_ONLY feature is introduced to restrict raise of tag check fault on store operation only. Introcude KASAN store only mode based on this feature. KASAN store only mode restricts KASAN checks operation for store only and omits the checks for fetch/read operation when accessing memory. So it might be used not only debugging enviroment but also normal enviroment to check memory safty. This features can be controlled with "kasan.store_only" arguments. When "kasan.store_only=on", KASAN checks store only mode otherwise KASAN checks all operations.I'm thinking if we should name this "kasan.write_only" instead of "kasan.store_only". This would align the terms with the "kasan.fault=panic_on_write" parameter we already have. But then it would be different from "FEATURE_MTE_STORE_ONLY", which is what Arm documentation uses (right?).
"write_only" works for me, kasan is meant to be generic even though it currently closely follows the arm nomenclature. -- Catalin