aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorThomas Gleixner <[email protected]>2021-10-13 16:55:43 +0200
committerBorislav Petkov <[email protected]>2021-10-21 09:32:41 +0200
commitf0cbc8b3cdf7d1c724155cd9cecffe329bb96119 (patch)
tree7a0ccb3d6ee636dbd3267b01c3d69946ae718d6c /tools/perf/scripts/python/sched-migration.py
parent2f27b5034244c4ebd70c90066defa771a99a5320 (diff)
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 <[email protected]> Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions