linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 0/2] x86: Fix missing core serialization on migration
@ 2017-11-10 21:12 Mathieu Desnoyers
       [not found] ` <20171110211249.10742-1-mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org>
  0 siblings, 1 reply; 26+ messages in thread
From: Mathieu Desnoyers @ 2017-11-10 21:12 UTC (permalink / raw)
  To: Andy Lutomirski
  Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	linux-api-u79uwXL29TY76Z2rM5mHXA, Peter Zijlstra,
	Paul E . McKenney, Boqun Feng, Andrew Hunter, Maged Michael,
	Avi Kivity, Benjamin Herrenschmidt, Paul Mackerras,
	Michael Ellerman, Dave Watson, Thomas Gleixner, Ingo Molnar,
	H . Peter Anvin, Andrea Parri, Russell King, Greg Hackmann,
	Will Deacon, David Sehr, Linus

x86 can return to user-space through sysexit and sysretq, which are not
core serializing. This breaks expectations from user-space about
sequential consistency from a single-threaded self-modifying program
point of view in specific migration patterns.

Feedback is welcome,

Thanks,

Mathieu

Mathieu Desnoyers (2):
  x86: Introduce sync_core_before_usermode
  Fix: x86: Add missing core serializing instruction on migration

 arch/x86/Kconfig                 |  1 +
 arch/x86/include/asm/processor.h | 10 ++++++++++
 include/linux/processor.h        |  6 ++++++
 kernel/sched/core.c              |  7 +++++++
 kernel/sched/sched.h             |  1 +
 5 files changed, 25 insertions(+)

-- 
2.11.0

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2017-11-14 18:24 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 21:12 [RFC PATCH 0/2] x86: Fix missing core serialization on migration Mathieu Desnoyers
     [not found] ` <20171110211249.10742-1-mathieu.desnoyers-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org>
2017-11-10 21:12   ` [RFC PATCH 1/2] x86: Introduce sync_core_before_usermode Mathieu Desnoyers
2017-11-10 21:12   ` [RFC PATCH 2/2] Fix: x86: Add missing core serializing instruction on migration Mathieu Desnoyers
2017-11-10 21:36   ` [RFC PATCH 0/2] x86: Fix missing core serialization " Linus Torvalds
     [not found]     ` <CA+55aFzbroWqi+FTdYhRVSwUZ-M0wDVxjXqDbh40JEnXc2LdgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-10 21:57       ` Mathieu Desnoyers
     [not found]         ` <885227610.13045.1510351034488.JavaMail.zimbra-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org>
2017-11-10 22:12           ` Linus Torvalds
2017-11-13 16:56           ` Mathieu Desnoyers
     [not found]             ` <617343212.13932.1510592207202.JavaMail.zimbra-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org>
2017-11-13 17:14               ` Linus Torvalds
2017-11-14 14:53               ` Avi Kivity
     [not found]                 ` <4d47fbb8-8f99-19d3-a9cf-66841aeffac3-VrcmuVmyx1hWk0Htik3J/w@public.gmane.org>
2017-11-14 15:17                   ` Mathieu Desnoyers
     [not found]                     ` <4431530.14831.1510672632887.JavaMail.zimbra-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org>
2017-11-14 15:42                       ` Avi Kivity
2017-11-14 16:05                       ` Peter Zijlstra
     [not found]                         ` <20171114160541.GC3165-IIpfhp3q70x9+YH6RuovlLjjLBE8jN/0@public.gmane.org>
2017-11-14 16:08                           ` Peter Zijlstra
2017-11-14 16:49                             ` Mathieu Desnoyers
2017-11-14 17:03                               ` Avi Kivity
     [not found]                                 ` <98b50de6-4cb1-9c43-4353-9ee7135dc63f-VrcmuVmyx1hWk0Htik3J/w@public.gmane.org>
2017-11-14 17:10                                   ` Mathieu Desnoyers
     [not found]                                     ` <1216732828.15017.1510679404571.JavaMail.zimbra-vg+e7yoeK/dWk0Htik3J/w@public.gmane.org>
2017-11-14 17:31                                       ` Linus Torvalds
2017-11-14 16:10                           ` Andy Lutomirski
     [not found]                             ` <CALCETrVpBocmrd+R5-R-d+QBvp6h8iZkjo7Xjy6V6x1rPfh25w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-14 16:13                               ` Thomas Gleixner
2017-11-14 16:16                                 ` Andy Lutomirski
     [not found]                                   ` <CALCETrXpR7ai047pHtdQe5J+FpuFO5ekeeEqLUt1wVLopyNt_Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-14 16:31                                     ` Peter Zijlstra
     [not found]                                       ` <20171114163159.GD3165-IIpfhp3q70x9+YH6RuovlLjjLBE8jN/0@public.gmane.org>
2017-11-14 17:17                                         ` Daniel Bristot de Oliveira
     [not found]                                           ` <6f9f57fa-8057-cdbe-231b-20920b3b3670-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-14 17:40                                             ` Peter Zijlstra
     [not found]                                               ` <20171114174049.GF3165-IIpfhp3q70x9+YH6RuovlLjjLBE8jN/0@public.gmane.org>
2017-11-14 18:01                                                 ` Daniel Bristot de Oliveira
     [not found]                                                   ` <ada6faaf-9e94-439f-57f2-3b9179cb4bea-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-11-14 18:17                                                     ` Peter Zijlstra
     [not found]                                                       ` <20171114181732.bwahj6woik27trou-Nxj+rRp3nVydTX5a5knrm8zTDFooKrT+cvkQGrU6aU0@public.gmane.org>
2017-11-14 18:24                                                         ` Daniel Bristot de Oliveira

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).