[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080618062357.GC23370@linux-os.sc.intel.com>
Date: Tue, 17 Jun 2008 23:23:57 -0700
From: Suresh Siddha <suresh.b.siddha@...el.com>
To: Rusty Russell <rusty@...tcorp.com.au>
Cc: "Siddha, Suresh B" <suresh.b.siddha@...el.com>,
Simon Holm Thøgersen <odie@...aau.dk>,
Vegard Nossum <vegard.nossum@...il.com>,
Patrick McHardy <kaber@...sh.net>,
Linux Kernel Mailinglist <linux-kernel@...r.kernel.org>,
Chuck Ebbert <cebbert@...hat.com>,
"x86@...nel.org" <x86@...nel.org>
Subject: Re: 2.6.26-git: NULL pointer deref in __switch_to
hi Rusty,
On Tue, Jun 17, 2008 at 10:34:23PM -0700, Rusty Russell wrote:
> Firstly, thanks for figuring this out. But math_state_restore() has nasty
> semantics now. Currently lguest will work, because no code path following
> this call relies on being on the same CPU.
>
> So, this patch is fine, but I wonder if I should just be forcing fpu
> allocation earlier for lguest tasks, so I can avoid this altogether?
Even with force fpu allocation, we need these fixes(except for the SYSENTER
hunk)
Just to clarify, dynamic fpu allocation didn't create these problems.
Some of these problems were there before aswell, and would show up as
fpu corruption for some of the tasks inside the lguest. With the
dynamic fpu allocation, it showed up as host kernel oops.
In future, if lguest driver code ever has a code path which relies
on running on the same cpu after math_state_restore(), yes they
can force allocate, by doing early math_state_restore() before
the guest starts.
But the current usage of lguest_set_ts() is clearly broken and violates
certain behavior expected by the fpu context switch handling routines.
thanks,
suresh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists