[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b903e4ce-83c9-4fa0-ac95-8378c436d846@sirena.org.uk>
Date: Wed, 16 Aug 2023 15:31:57 +0100
From: Mark Brown <broonie@...nel.org>
To: Will Deacon <will@...nel.org>
Cc: Catalin Marinas <catalin.marinas@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
David Spickett <David.Spickett@....com>
Subject: Re: [PATCH] arm64/ptrace: Ensure that the task sees ZT writes on
first use
On Wed, Aug 16, 2023 at 03:22:19PM +0100, Will Deacon wrote:
> On Mon, Aug 14, 2023 at 10:27:51PM +0100, Mark Brown wrote:
> > @@ -1182,6 +1187,8 @@ static int zt_set(struct task_struct *target,
> > if (ret == 0)
> > target->thread.svcr |= SVCR_ZA_MASK;
> >
> > + set_tsk_thread_flag(target, TIF_SME);
> Hmm, this is now weirdly inconsistent with za_set(), which doesn't touch
> the thread flag unless the regset copy succeeds. Is that intentional?
Not particularly, it's just a product of the more complex parsing that
ZA needs due to the variable size and optional payload. Either way is
fine so long as we allocated the storage but it would be better if they
were consistent, I'll update this to match what ZA does.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists