On Sat, Aug 09, 2008 at 09:10:05AM -0700, H. Peter Anvin wrote:Yes, fast handlers fall back to slow handlers in the interrupt context and don't touch FP/SSE and thus avoid the kernel nesting. hmm, in the padlock interrupt usage scenario(even though it doesn't touch FP/SSE registers), kernel_fpu_begin/end() will not solve the problem, as nesting of kernel_fpu_begin() is not ok, as we unconditionally do stts() in kernel_fpu_end(). So the proposed patch is not ok, as we end up corrupting first kernel FP usage. While the lazy allocation is not a big thing and can be pulled(with a very small patch), this has brought two existing security issues to light so far. one in lguest code(fixed now) and now in padlock usage. I think even in 2.6.25, padlock usage can easily can cause the FPU leakage as I mentioned in another response. Backing out lazy allocation is not just enough here. Let me think a little more on this. thanks, suresh -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Parag Warudkar | BUG: soft lockup - CPU#1 stuck for 15s! [swapper:0] |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
| David Miller | Re: [BUG] New Kernel Bugs |
