summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2019-11-20 15:02:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-29 10:09:58 +0100
commite74c494a20df1fbd096d3fa60e39bc3f06863bd6 (patch)
tree26af2149053870bce870c8965b18957d952cf79a /tools
parent778226c41e6a146f13bd6bd09390a9dd3f946f32 (diff)
x86/entry/32: Fix NMI vs ESPFIX
commit 895429076512e9d1cf5428181076299c90713159 upstream. When the NMI lands on an ESPFIX_SS, we are on the entry stack and must swizzle, otherwise we'll run do_nmi() on the entry stack, which is BAD. Also, similar to the normal exception path, we need to correct the ESPFIX magic before leaving the entry stack, otherwise pt_regs will present a non-flat stack pointer. Tested by running sigreturn_32 concurrent with perf-record. Fixes: e5862d0515ad ("x86/entry/32: Leave the kernel via trampoline stack") Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Andy Lutomirski <luto@kernel.org> Cc: stable@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions