Files
linux/arch/x86/include/asm
Andy Lutomirski 618683abc9 x86/ldt: Make modify_ldt synchronous
commit 37868fe113 upstream.

modify_ldt() has questionable locking and does not synchronize
threads.  Improve it: redesign the locking and synchronize all
threads' LDTs using an IPI on all modifications.

This will dramatically slow down modify_ldt in multithreaded
programs, but there shouldn't be any multithreaded programs that
care about modify_ldt's performance in the first place.

This fixes some fallout from the CVE-2015-5157 fixes.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: security@kernel.org <security@kernel.org>
Cc: xen-devel <xen-devel@lists.xen.org>
Link: http://lkml.kernel.org/r/4c6978476782160600471bd865b318db34c7b628.1438291540.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-09-21 10:05:25 -07:00
..
2009-01-29 14:16:51 +01:00
2015-09-21 10:05:25 -07:00
2014-12-11 11:35:02 +01:00
2015-04-14 16:49:06 -07:00
2014-05-02 11:34:17 -07:00
2012-03-28 18:11:12 +01:00
2014-03-04 21:47:51 +01:00
2011-04-18 09:26:48 -07:00
2014-05-08 08:15:34 +02:00
2013-02-03 18:16:27 -05:00
2009-08-27 00:35:56 +02:00
2010-10-26 16:52:08 -07:00
2012-06-25 13:48:30 +02:00
2014-09-22 13:35:52 +02:00
2009-06-13 15:37:30 +02:00
2010-06-09 11:12:36 +02:00
2015-09-21 10:05:25 -07:00
2014-02-27 08:07:39 -08:00
2014-11-18 00:58:54 +01:00
2014-09-01 10:15:31 +02:00
2014-10-28 10:47:56 +01:00
2011-03-15 15:34:15 -07:00
2015-09-13 09:07:44 -07:00
2012-02-20 12:52:05 -08:00
2014-06-06 16:08:11 -07:00
2015-02-23 13:44:14 +01:00
2014-06-04 16:53:57 -07:00
2014-04-18 14:20:46 +02:00
2015-01-13 15:22:59 +02:00
2015-01-30 09:39:54 +01:00