Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753060AbcLHS2E (ORCPT ); Thu, 8 Dec 2016 13:28:04 -0500 Received: from mail-ua0-f170.google.com ([209.85.217.170]:33860 "EHLO mail-ua0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752035AbcLHS2C (ORCPT ); Thu, 8 Dec 2016 13:28:02 -0500 MIME-Version: 1.0 In-Reply-To: References: From: Andy Lutomirski Date: Thu, 8 Dec 2016 10:27:40 -0800 Message-ID: Subject: Re: [PATCH v3 04/15] livepatch/x86: add TIF_PATCH_PENDING thread flag To: Josh Poimboeuf Cc: Jessica Yu , Jiri Kosina , Miroslav Benes , Petr Mladek , "linux-kernel@vger.kernel.org" , live-patching@vger.kernel.org, Michael Ellerman , Heiko Carstens , X86 ML , linuxppc-dev , "linux-s390@vger.kernel.org" , Vojtech Pavlik , Jiri Slaby , Chris J Arges , Andy Lutomirski , Ingo Molnar , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 558 Lines: 12 On Thu, Dec 8, 2016 at 10:08 AM, 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 _TIF_ALLWORK_MASK macro, which results in > exit_to_usermode_loop() calling klp_update_patch_state() when it's set. > > Signed-off-by: Josh Poimboeuf Acked-by: Andy Lutomirski