Re: [PATCH 0/2] arm64: gcs: Return -EPERM when changes are prevented by locking

From: Bill Roberts

Date: Tue Oct 06 2026 - 16:40:39 EST



On 10/6/26 11:31 AM, Mark Brown wrote:
On Thu, Sep 24, 2026 at 03:49:14PM -0500, Bill Roberts wrote:
On 10/6/26 10:15 AM, Mark Brown wrote:
I was intending to do something soon to pull more of this code out into
some shared place since especially for RISC-V and arm64 where they're
using the prctl() rather than arch_prctl() interface so there's less
reason for things to be duplicated.
Bear in mind that I do have patches out there, for x86 that enable prctl
for them as well. I looked into doing the lock check in the prctl call path
before
it gets dispatched to the arch specific backend, it does require a common
interface
into the threads feature bits that each arch would need to, trivially,
implement.
Yeah, it'd be great if that could land and we could hopefully eventually
end up with a shared interface for userspace. We'd still need some arch
hooks no matter what, but the userspace experience would be much more
pleasant.
OK let me clean the patches up, and ill send em when I can. Does anyone
know how can I test the risc-v path?