]> git.baikalelectronics.ru Git - kernel.git/commit
x86/entry: Fix AC assertion
authorPeter Zijlstra <peterz@infradead.org>
Wed, 2 Sep 2020 13:25:50 +0000 (15:25 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Sep 2020 13:09:29 +0000 (15:09 +0200)
commit8183a55d805152506b37160914de61a4209ea565
tree8e261b7b2011e4e669c066528dc8aba50a715960
parent251fdbc3387cab5df15b2e8bd54edead7ec35cb7
x86/entry: Fix AC assertion

The WARN added in commit a42c4c2609bd ("x86/entry, selftests: Further
improve user entry sanity checks") unconditionally triggers on a IVB
machine because it does not support SMAP.

For !SMAP hardware the CLAC/STAC instructions are patched out and thus if
userspace sets AC, it is still have set after entry.

Fixes: a42c4c2609bd ("x86/entry, selftests: Further improve user entry sanity checks")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Andy Lutomirski <luto@kernel.org>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20200902133200.666781610@infradead.org
arch/x86/include/asm/entry-common.h