Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state changes

From: Herbert Xu
Date: Sat Aug 09 2008 - 21:41:12 EST


On Sat, Aug 09, 2008 at 10:59:40AM -0700, Suresh Siddha wrote:
>
> 0. CPU's TS flag is set
>
> 1. kernel using FPU in some optimized copy routine and while doing
> kernel_fpu_begin() takes an interrupt just before doing clts()
>
> 2. Takes an interrupt and ipsec uses padlock instruction. And we
> take a DNA fault as TS flag is still set.

Right, we could've fixed this by doing the clts before checking
TS_USEDFPU in kernel_fpu_begin. However, I admit that taking a
fault in the general case for the PadLock is stupid anyway so we
should definitely fix this in the ways that you suggested.

Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--
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/