[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-738f48cb5fdd5878d11934f1898aa2bcf1578289@git.kernel.org>
Date: Tue, 26 Sep 2017 01:37:53 -0700
From: tip-bot for Eric Biggers <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: dvyukov@...gle.com, keescook@...omium.org, haokexin@...il.com,
akpm@...ux-foundation.org, fenghua.yu@...el.com, luto@...nel.org,
bp@...en8.de, peterz@...radead.org, ebiggers3@...il.com,
dave.hansen@...ux.intel.com, mhalcrow@...gle.com,
torvalds@...ux-foundation.org, riel@...hat.com,
ebiggers@...gle.com, linux-kernel@...r.kernel.org,
mingo@...nel.org, wanpeng.li@...mail.com, hpa@...or.com,
tglx@...utronix.de, yu-cheng.yu@...el.com, luto@...capital.net,
oleg@...hat.com
Subject: [tip:x86/fpu] x86/fpu: Use using_compacted_format() instead of open
coded X86_FEATURE_XSAVES
Commit-ID: 738f48cb5fdd5878d11934f1898aa2bcf1578289
Gitweb: http://git.kernel.org/tip/738f48cb5fdd5878d11934f1898aa2bcf1578289
Author: Eric Biggers <ebiggers@...gle.com>
AuthorDate: Sun, 24 Sep 2017 12:59:13 +0200
Committer: Ingo Molnar <mingo@...nel.org>
CommitDate: Tue, 26 Sep 2017 09:43:48 +0200
x86/fpu: Use using_compacted_format() instead of open coded X86_FEATURE_XSAVES
This is the canonical method to use.
Signed-off-by: Eric Biggers <ebiggers@...gle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>
Cc: Andy Lutomirski <luto@...capital.net>
Cc: Andy Lutomirski <luto@...nel.org>
Cc: Borislav Petkov <bp@...en8.de>
Cc: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Dmitry Vyukov <dvyukov@...gle.com>
Cc: Eric Biggers <ebiggers3@...il.com>
Cc: Fenghua Yu <fenghua.yu@...el.com>
Cc: Kees Cook <keescook@...omium.org>
Cc: Kevin Hao <haokexin@...il.com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Michael Halcrow <mhalcrow@...gle.com>
Cc: Oleg Nesterov <oleg@...hat.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Rik van Riel <riel@...hat.com>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Wanpeng Li <wanpeng.li@...mail.com>
Cc: Yu-cheng Yu <yu-cheng.yu@...el.com>
Cc: kernel-hardening@...ts.openwall.com
Link: http://lkml.kernel.org/r/20170924105913.9157-11-mingo@kernel.org
Signed-off-by: Ingo Molnar <mingo@...nel.org>
---
arch/x86/kernel/fpu/regset.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/fpu/regset.c b/arch/x86/kernel/fpu/regset.c
index b831d5b..3ea1513 100644
--- a/arch/x86/kernel/fpu/regset.c
+++ b/arch/x86/kernel/fpu/regset.c
@@ -134,7 +134,7 @@ int xstateregs_set(struct task_struct *target, const struct user_regset *regset,
fpu__prepare_write(fpu);
- if (boot_cpu_has(X86_FEATURE_XSAVES)) {
+ if (using_compacted_format()) {
if (kbuf)
ret = copy_kernel_to_xstate(xsave, kbuf);
else
Powered by blists - more mailing lists