Re: [PATCH v5 19/25] arm64: mte: Add PTRACE_{PEEK,POKE}MTETAGS support

From
Catalin Marinas <catalin.marinas@arm.com>
Date
2020-07-01 17:16:17
Also in
linux-arch, linux-mm
Reply to
Luis Machado, 2020-06-25
Hi Luis,

On Thu, Jun 25, 2020 at 02:10:10PM -0300, Luis Machado wrote:
I have one point below I wanted to clarify regarding
PEEKMTETAGS/POKEMTETAGS.

But before that, I've pushed v2 of the MTE series for GDB here:

https://sourceware.org/git/?p=binutils-gdb.git;a=shortlog;h=refs/heads/users/luisgpm/aarch64-mte-v2

That series adds sctlr and gcr registers to the NT_ARM_MTE (still using a
dummy value of 0x407) register set. It would be nice if the Linux Kernel and
the debuggers were in sync in terms of supporting this new register set. GDB
assumes the register set exists if HWCAP2_MTE is there.

So, if we want to adjust the register set, we should probably consider doing
that now. That prevents the situation where debuggers would need to do
another check to confirm NT_ARM_MTE is exported. I'd rather avoid that.
I'm happy to do this before merging, though we need to agree on the
semantics.

Do you need both read and write access? Also wondering whether the
prctl() value would be a better option than the raw register bits (well,
not entirely raw, masking out the irrelevant part).

-- 
Catalin

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (46 messages) 46 messages, 6 authors, last reply 2020-07-03
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help