Re: 2.6.26-git: NULL pointer deref in __switch_to

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rusty Russell <rusty@...>
Cc: Siddha, Suresh B <suresh.b.siddha@...>, Simon Holm <odie@...>, Vegard Nossum <vegard.nossum@...>, Patrick McHardy <kaber@...>, Linux Kernel Mailinglist <linux-kernel@...>, Chuck Ebbert <cebbert@...>, x86@kernel.org <x86@...>
Date: Wednesday, June 18, 2008 - 2:23 am

hi Rusty,

On Tue, Jun 17, 2008 at 10:34:23PM -0700, Rusty Russell wrote:

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
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Fri Jun 13, 1:42 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Rafael J. Wysocki, (Fri Jun 13, 4:10 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Sat Jun 14, 3:33 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Vegard Nossum, (Fri Jun 13, 2:24 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Suresh Siddha, (Fri Jun 13, 6:47 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Simon Holm , (Mon Jun 16, 6:15 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Suresh Siddha, (Mon Jun 16, 1:49 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Simon Holm , (Mon Jun 16, 5:21 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Suresh Siddha, (Tue Jun 17, 7:50 pm)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Simon Holm , (Wed Jun 18, 9:57 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Wed Jun 18, 4:42 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Rusty Russell, (Wed Jun 18, 1:34 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Suresh Siddha, (Wed Jun 18, 2:23 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Rusty Russell, (Wed Jun 18, 8:19 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Mon Jun 16, 6:29 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Mon Jun 16, 8:10 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Sat Jun 14, 3:36 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Ingo Molnar, (Sat Jun 14, 2:20 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Jens Axboe, (Mon Jun 16, 7:06 am)
Re: 2.6.26-git: NULL pointer deref in __switch_to, Patrick McHardy, (Sat Jun 14, 3:39 am)