aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>2012-04-04 20:15:49 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-04-05 11:17:35 -0400
commit21e61079f261671c2d3de09306ca5e81687c5578 (patch)
tree65b11f4836b95fba20a83be435dec6d305c41f14 /arch/x86/kernel
parente0fbfa89efab2630550f39a4d65be772a1af350f (diff)
UBUNTU: SAUCE: (no-up) Reinstate missing hunk from nx emulation
Recently with kernel 3.0.0-18.31, we started to get several bug reports of userspace crashes on launchpad, happening on i386 installs. After reproducing the issue and doing a bisect, we detected that the breakage started with commit 1d43fea ("i387: do not preload FPU state at task switch time"). Looking at that commit, turns out that our application of that change accidentaly removed one piece of i386 NX emulation patch, added with commit 775e6e8 ("UBUNTU: ubuntu: nx-emu - i386: NX emulation"). This adds back the section of code wrongly removed, verified here it fixes the bug as well. BugLink: http://bugs.launchpad.net/bugs/972821 Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> Acked-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/process_32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
index 98f78e8408d..2d73f7dfa30 100644
--- a/arch/x86/kernel/process_32.c
+++ b/arch/x86/kernel/process_32.c
@@ -307,6 +307,9 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p)
307 307
308 fpu = switch_fpu_prepare(prev_p, next_p); 308 fpu = switch_fpu_prepare(prev_p, next_p);
309 309
310 if (next_p->mm)
311 load_user_cs_desc(cpu, next_p->mm);
312
310 /* 313 /*
311 * Reload esp0. 314 * Reload esp0.
312 */ 315 */