Skip to content

x86/fpu: Fix irq_fpu_usable() to return false during CPU onlining

Eric Biggers linux-crypto linux-pm lkml oe-lkp 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 1 replyIn review
  2. v21 patch 0 repliesSuperseded
  3. v11 patch 9 repliesSuperseded

Changes in v3 from the cover letter

- Split into two patches, as requested by Ingo.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/fpu: Replace in_kernel_fpu with kernel_fpu_allowedarch/x86/kernel/fpu/core.c+8 -60 replies
2/2x86/fpu: Fix irq_fpu_usable() to return false during CPU onliningarch/x86/include/asm/fpu/api.h arch/x86/kernel/fpu/core.c arch/x86/kernel/fpu/init.c +2 more+37 -91 reply

Reviews trailers per patch

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

PatchAyush Jain
1/2
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/2] x86/fpu: Fix irq_fpu_usable() to return false during CPU onlining

This series fixes a crash in the SHA-256 code during hotplug CPU onlining.

Changed in v3:
- Split into two patches, as requested by Ingo.
Changed in v2:
- Add WARN_ON_FPU when kernel_fpu_allowed has unexpected value in fpu__init_cpu() or cpu_disable_common(). Since WARN_ON_FPU is defined in fpu/internal.h which should not be included by smpboot.c, made cpu_disable_common() call a new function fpu__disable_cpu().
- Added Tested-by.

Eric Biggers (2):
x86/fpu: Replace in_kernel_fpu with kernel_fpu_allowed x86/fpu: Fix irq_fpu_usable() to return false during CPU onlining

 arch/x86/include/asm/fpu/api.h |  1 +
 arch/x86/kernel/fpu/core.c     | 34 +++++++++++++++++++++-------------
 arch/x86/kernel/fpu/init.c     | 13 +++++++++++++
 arch/x86/kernel/fpu/internal.h |  2 ++
 arch/x86/kernel/smpboot.c      |  6 ++++++
 5 files changed, 43 insertions(+), 13 deletions(-)

base-commit: 3ee84e3dd88e39b55b534e17a7b9a181f1d46809

Signature · 1 line
2.49.0