linux/arch/x86
Thomas Gleixner f0cbc8b3cd x86/fpu: Do not leak fpstate pointer on fork
If fork fails early then the copied task struct would carry the fpstate
pointer of the parent task.

Not a problem right now, but later when dynamically allocated buffers
are available, keeping the pointer might result in freeing the
parent's buffer. Set it to NULL which prevents that. If fork reaches
clone_thread(), the pointer will be correctly set to the new task
context.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145322.817101108@linutronix.de
2021-10-21 09:32:41 +02:00
..
boot Kbuild updates for v5.15 2021-09-03 15:33:47 -07:00
configs configs: remove the obsolete CONFIG_INPUT_POLLDEV 2021-09-08 11:50:28 -07:00
crypto crypto: x86/sm4 - Fix frame pointer stack corruption 2021-09-24 15:58:50 +08:00
entry compat: remove some compat entry points 2021-09-08 15:32:35 -07:00
events x86/pkru: Remove useless include 2021-10-20 15:27:25 +02:00
hyperv hyperv-fixes for 5.15 2021-10-07 09:44:48 -07:00
ia32 x86/fpu: Remove internal.h dependency from fpu/signal.h 2021-10-20 15:27:29 +02:00
include x86/fpu: Remove fpu::state 2021-10-20 23:58:29 +02:00
kernel x86/fpu: Do not leak fpstate pointer on fork 2021-10-21 09:32:41 +02:00
kvm x86/KVM: Convert to fpstate 2021-10-20 22:34:14 +02:00
lib Merge branch 'x86/urgent' into x86/fpu, to resolve a conflict 2021-10-16 15:17:46 +02:00
math-emu x86/math-emu: Convert to fpstate 2021-10-20 23:57:54 +02:00
mm x86/fpu: Provide a proper function for ex_handler_fprestore() 2021-10-20 15:27:29 +02:00
net Merge branch 'x86/urgent' into x86/fpu, to resolve a conflict 2021-10-16 15:17:46 +02:00
pci xen: branch for v5.15-rc5 2021-10-08 12:55:23 -07:00
platform - A FPU fix to properly handle invalid MXCSR values: 32-bit masks them 2021-10-10 10:00:51 -07:00
power x86/fpu: Replace the includes of fpu/internal.h 2021-10-20 15:27:29 +02:00
purgatory
ras
realmode memblock: make memblock_find_in_range method private 2021-09-03 09:58:17 -07:00
tools - Remove cc-option checks which are old and already supported by the 2021-08-30 13:27:16 -07:00
um um: fix stub location calculation 2021-08-26 22:28:03 +02:00
video
xen xen/x86: adjust data placement 2021-10-05 08:36:19 +02:00
.gitignore
Kbuild
Kconfig x86/Kconfig: Do not enable AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT automatically 2021-10-11 19:14:22 +02:00
Kconfig.assembler
Kconfig.cpu
Kconfig.debug tracing: Refactor TRACE_IRQFLAGS_SUPPORT in Kconfig 2021-08-16 11:37:21 -04:00
Makefile Kbuild updates for v5.15 2021-09-03 15:33:47 -07:00
Makefile.um
Makefile_32.cpu x86/build: Do not add -falign flags unconditionally for clang 2021-09-19 10:35:53 +09:00