Re: [PATCH] x86_64,entry: Fix RCX for traced syscalls

From: Andy Lutomirski
Date: Thu Jun 26 2014 - 16:48:00 EST


On Thu, Jun 26, 2014 at 1:12 PM, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
> The real question is if we care that sysret and iter don't match. On 32 bits the situation is even more complex.

At least for 64 bits, iret vs sysret is purely a kernel implementation
detail (except where a tracer modifies things that are inaccessible to
sysret), so ISTM it's worth one instruction to make them match.

I noticed this thing while fiddling with moving some of the syscall
tracing logic to C. This isn't a real problem, but it at least made
me scratch my head.

--Andy
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/