]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/fpu/xstate: Use fpstate for os_xsave()
authorThomas Gleixner <tglx@linutronix.de>
Wed, 13 Oct 2021 14:55:49 +0000 (16:55 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 5 May 2022 07:14:15 +0000 (09:14 +0200)
commit9ed4d94032121e48ca2a87559b7caf663ea273f2
tree56a14d4bd9275f0190b2a5efa4b517a490477bd8
parent1a3fb8afbd1c1754844989aff61100f06b8201c0
x86/fpu/xstate: Use fpstate for os_xsave()

BugLink: https://bugs.launchpad.net/bugs/1967750
With variable feature sets XSAVE[S] requires to know the feature set for
which the buffer is valid. Retrieve it from fpstate.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20211013145323.025695590@linutronix.de
(cherry picked from commit 073e627a4537e682c43a1e8df659ce24cbced40c)
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
arch/x86/kernel/fpu/core.c
arch/x86/kernel/fpu/signal.c
arch/x86/kernel/fpu/xstate.h