From: Peter Zijlstra Subject: Re: [PATCH v2 0/6] x86/alternatives: text_poke() fixes Date: Thu, 6 Sep 2018 20:31:57 +0200 Message-ID: <20180906183157.GK24106@hirez.programming.kicks-ass.net> References: <20180902173224.30606-1-namit@vmware.com> <20180905185617.GC24082@hirez.programming.kicks-ass.net> <8D3CE999-6D3A-4984-934A-634BDD8AC25A@vmware.com> <6B256AB7-0158-47DF-B2D5-4C835579F3A3@vmware.com> <20180906081300.GF24082@hirez.programming.kicks-ass.net> <20180906101641.GG24142@hirez.programming.kicks-ass.net> <6703CD9F-2D84-4449-A423-A4DC24677673@vmware.com> <20180906171754.GJ24106@hirez.programming.kicks-ass.net> <9AF220A3-D783-442E-8E5B-AD0150628347@vmware.com> <32902EEE-FF64-4C12-A043-1848CC927C88@amacapital.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <32902EEE-FF64-4C12-A043-1848CC927C88@amacapital.net> Sender: linux-kernel-owner@vger.kernel.org To: Andy Lutomirski Cc: Nadav Amit , Thomas Gleixner , LKML , Ingo Molnar , X86 ML , Arnd Bergmann , linux-arch , Dave Hansen , Jiri Kosina , Andy Lutomirski , Masami Hiramatsu , Kees Cook List-Id: linux-arch.vger.kernel.org On Thu, Sep 06, 2018 at 11:09:23AM -0700, Andy Lutomirski wrote: > > On Sep 6, 2018, at 10:58 AM, Nadav Amit wrote: > > It depends what security you want. Some may consider even the short > > time-window in which the kernel code is writable from other cores as > > insufficient for security. > > > > In addition, the set removes the need for remote TLB shootdowns that > > text_poke() - with this fix - requires. > > > > I’m personally in favor of not needing a global broadcast flush to install kprobes. That's fine. But at that point its an optimization, not a correctness issue.