Re: [PATCH v3 3/4] arm64/kernel: support store-only mte tag check
From: Catalin Marinas
Date: Fri May 02 2025 - 13:50:48 EST
On Thu, Apr 10, 2025 at 09:07:22AM +0100, Yeoreum Yun wrote:
> Introduce new flag -- MTE_CTRL_STORE_ONLY used to set store-only tag check.
> This flag isn't overrided by prefered tcf flag setting but set together
Nit: s/overrided/overridden/
> with prefered setting of way to report tag check fault.
The preferred mode set via sysfs is about whether we want synchronous or
asynchronous tag check faults for reads/writes (or asymmetric). The
store-only checking can be combined with sync/async, so they are
slightly complementary. The question is whether one wants some global
knob to turn on store-only in combination with sync/async. We could add
more strings for sysfs like "(a)sync+storeonly"
It would be good to hear Peter's opinion from an Android perspective.
--
Catalin