Re: [patch] x86, i387: fix ptrace leakage using init_fpu()

From: Ingo Molnar
Date: Tue Mar 04 2008 - 03:13:47 EST



* Suresh Siddha <suresh.b.siddha@xxxxxxxxx> wrote:

> This bug is introduced by the recent i387 merge.
>
> Current usage of unlazy_fpu() in ptrace specific routines is wrong.
> unlazy_fpu() will not init fpu if the task never used math. So the
> ptrace calls can expose the parent tasks FPU data in some cases.
>
> Replace it with the init_fpu() which will init the math state, if the
> task never used math before.

thanks Suresh, good catch! Applied to x86.git.

Ingo
--
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/