Thread (17 messages) 17 messages, 3 authors, 2020-06-01

Re: arm64: Register modification during syscall entry/exit stop

From: Keno Fischer <hidden>
Date: 2020-06-01 09:23:42
Also in: lkml

On Mon, Jun 1, 2020 at 5:14 AM Dave Martin [off-list ref] wrote:
Can you explain why userspace would write a changed value for x7
but at the same time need that new to be thrown away?
The discarding behavior is the primary reason things aren't completely
broken at the moment. If it read the wrong x7 value and didn't know about
the Aarch64 quirk, it's often just trying to write that same wrong
value back during the next stop, so if that's just ignored,
that's probably fine in 99% of cases, since the value in the
tracee will be undisturbed.

I don't think there's a sane way to change the aarch64 NT_PRSTATUS
semantics without just completely removing the x7 behavior, but of course
people may be relying on that (I think somebody said upthread that strace does?)

Keno

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help