diff options
author | Andy Lutomirski <luto@kernel.org> | 2019-11-24 19:50:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-29 12:10:00 +0300 |
commit | 95443fc0d77695e011fb4c6a326183dea40b4d6f (patch) | |
tree | 9b5dfd0b550ef8665af57579350a518926bfaea3 /block/blk-ioc.c | |
parent | cd923d2b574ab48659e2c6aa12677a7600f4ab03 (diff) | |
download | linux-95443fc0d77695e011fb4c6a326183dea40b4d6f.tar.xz |
x86/entry/32: Fix FIXUP_ESPFIX_STACK with user CR3
commit 4a13b0e3e10996b9aa0b45a764ecfe49f6fcd360 upstream.
UNWIND_ESPFIX_STACK needs to read the GDT, and the GDT mapping that
can be accessed via %fs is not mapped in the user pagetables. Use
SGDT to find the cpu_entry_area mapping and read the espfix offset
from that instead.
Reported-and-tested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'block/blk-ioc.c')
0 files changed, 0 insertions, 0 deletions