[PATCH v4 3/4] arm64/ptrace: Support access to TPIDR2_EL0

Catalin Marinas catalin.marinas at arm.com
Fri Sep 16 05:01:31 PDT 2022


On Mon, Aug 29, 2022 at 04:49:20PM +0100, Mark Brown wrote:
> @@ -1392,7 +1407,7 @@ static const struct user_regset aarch64_regsets[] = {
>  	},
>  	[REGSET_TLS] = {
>  		.core_note_type = NT_ARM_TLS,
> -		.n = 1,
> +		.n = 2,
>  		.size = sizeof(void *),
>  		.align = sizeof(void *),
>  		.regset_get = tls_get,

Does this change confuse user-space? I presume an updated gdb would
check the iov.len to figure out whether a new register is available but
would existing debuggers complain of the new size of this regset?

-- 
Catalin



More information about the linux-arm-kernel mailing list