Re: ia32_sysenter_target does not preserve EFLAGS

From: Denys Vlasenko
Date: Sat Mar 28 2015 - 07:02:10 EST


On Sat, Mar 28, 2015 at 1:39 AM, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
> What part of "don't leak kernel data" did you have trouble understanding?
>
> IOW, this is a *security* issue. Stop arguing for crazy shit.

We can zero the registers instead of saving/restoring them.
push/pop pair takes 1-2 cycles at best, whereas
on four-issue CPUs "xor reg,reg" has throughput of four
instructions at a time, often even not requiring
an execution unit.
--
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/