Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752797AbcD2US1 (ORCPT ); Fri, 29 Apr 2016 16:18:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:51352 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750875AbcD2USZ (ORCPT ); Fri, 29 Apr 2016 16:18:25 -0400 Date: Fri, 29 Apr 2016 15:18:22 -0500 From: Josh Poimboeuf To: Andy Lutomirski Cc: Jessica Yu , Jiri Kosina , Miroslav Benes , Ingo Molnar , Peter Zijlstra , Michael Ellerman , Heiko Carstens , live-patching@vger.kernel.org, "linux-kernel@vger.kernel.org" , X86 ML , linuxppc-dev@lists.ozlabs.org, "linux-s390@vger.kernel.org" , Vojtech Pavlik , Jiri Slaby , Petr Mladek , Chris J Arges , Andy Lutomirski Subject: Re: [RFC PATCH v2 09/18] livepatch/x86: add TIF_PATCH_PENDING thread flag Message-ID: <20160429201822.rj5hbkfkjgrdxlz6@treble> References: <6360fe5cab85aad424600518f645a9ac773cc72e.1461875890.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0.1 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 771 Lines: 19 On Fri, Apr 29, 2016 at 11:08:04AM -0700, Andy Lutomirski wrote: > On Thu, Apr 28, 2016 at 1:44 PM, Josh Poimboeuf wrote: > > Add the TIF_PATCH_PENDING thread flag to enable the new livepatch > > per-task consistency model for x86_64. The bit getting set indicates > > the thread has a pending patch which needs to be applied when the thread > > exits the kernel. > > > > The bit is placed in the least-significant word of the thread_info flags > > NAK to that part. > > The least-significant word thing is a huge hack that has gotten out of > control. Please add the thing explicitly to all relevant masks. Yeah, it is quite dangerous. I'll make it explicit, and make all the other _TIF_ALLWORK_MASK flags explicit while I'm at it. -- Josh