Skip to content

i387: stable kernel backport

Linus Torvalds lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 44 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5i387: math_state_restore() isn't called from asmarch/x86/include/asm/i387.h arch/x86/kernel/traps.c+4 -40 replies
2/5i387: make irq_fpu_usable() tests more robustarch/x86/include/asm/i387.h+46 -80 replies
3/5i387: fix x86-64 preemption-unsafe user stack save/restorearch/x86/include/asm/i387.h arch/x86/kernel/xsave.c+45 -70 replies
4/5i387: move TS_USEDFPU clearing out of __save_init_fpu and into callersarch/x86/include/asm/i387.h+6 -30 replies
5/5i387: move TS_USEDFPU flag from thread_info to task_structarch/x86/include/asm/i387.h arch/x86/include/asm/processor.h arch/x86/include/asm/thread_info.h +3 more+63 -310 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by.

PatchRaphael PrevostSuresh SiddhaPeter Anvin
SeriesReported-and-tested-by Acked-and-tested-by T-b
1/5
2/5
3/5
4/5
5/5Reported-and-tested-by Acked-and-tested-by T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/5] i387: stable kernel backport

This is a reasonably minimal backport of the i387 state save/restore bug.

A few of the commits are just minimal "make it easier to backport" commits that don't necessarily fix anything on their own. And a few of the others are combinations of what is two commits in the development tree, because it turned out to be easier and cleaner that way.

The last one is the one that fixes the x86-32 bug, but the preemption fixes are real fixes too, although they are probably not something that anybody has necessarily ever hit in reality because the race window is so small. Even so, if the fix itself isn't that important, the "make it easier to backport the main one" would still be a big argument for it.

I *really* hope that the people who could reproduce this bug will test the back-port series too, since I never actually saw the bug personally to begin with. And again, big thanks to Raphael who helped pinpoint and debug this.

Linus

---
Linus Torvalds (5):
i387: math_state_restore() isn't called from asm
i387: make irq_fpu_usable() tests more robust
i387: fix x86-64 preemption-unsafe user stack save/restore
i387: move TS_USEDFPU clearing out of __save_init_fpu and into callers
i387: move TS_USEDFPU flag from thread_info to task_struct

 arch/x86/include/asm/i387.h        |  158 +++++++++++++++++++++++++++++++-----
 arch/x86/include/asm/processor.h   |    1 +
 arch/x86/include/asm/thread_info.h |    2 -
 arch/x86/kernel/traps.c            |   14 ++--
 arch/x86/kernel/xsave.c            |   12 +--
 arch/x86/kvm/vmx.c                 |    2 +-
 6 files changed, 150 insertions(+), 39 deletions(-)
Signature · 1 line
1.7.9.188.g12766.dirty