Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5585869imu; Mon, 26 Nov 2018 02:33:56 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vy3d5mHEHT75YPAv7fFDnDJEj/g9BnaOFrKLJPpo2Hn9//KoxAZBeOpmbryihPYc9beoje X-Received: by 2002:a17:902:4523:: with SMTP id m32mr26909241pld.53.1543228436144; Mon, 26 Nov 2018 02:33:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543228436; cv=none; d=google.com; s=arc-20160816; b=G7fBedg2Q+p2d0DbCk/TMpav0kOHr+GiwtemyXP5BPP8OaRUdZ6+Ux8IBpUvyt1rkh ffkCVEnx1gZkY7e/loGeBpNA3nDVRHoKWIvWFhif3iYjJLOXoJQPlYdWC4ArCf8TRBMJ 4qJPjSyojXGGO6EwIukSsBxE+ZJGEg46p54+qsgSbt6Ap8W0vKoirJjRgkwoPOpP1bXG HiNn5LMSgp10QTaxBynFnSPy7mcwskaM4ngK8uZ6LcmIU67Zr/BZJVW+PTMiSINNtvzs 5SO68Wnp4Ryj/DS+WmytoEk3aivsCRLKVqD7GycXmTFHURXZvfR8BjJ13zWV2bI0mIl6 E8JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9X0NPtRA2mZHhq5+nlCgto6J/8C/LZqji/77rk+JepE=; b=MSsxXmKPiKz32a7vPGmL0bYqPQ3pubROLs0ZLDFJTtd9zp2U929UEz2jplQ1rEKPQz AIe7/5VTKiAnDCJiNg9TGO4B8gqkEV4Ufsmayml7cYUQ6/wJevQDjUAwYSw7u8B3Zz68 ZM4uQ9dgI5AYmTdgOPUgWiGid6Vkdx3rV8vrIcD9QPKUF3SzgkNEIawXuJtVEFOem137 f3r8WVb8ZaqNcEeAyDBH5ZgAd8oRo5yJfcD+YV8vA7nHx+g+wyRyM6hgfcpc2oH++qvY MjBQbOz3RttOyBIB9qPkWhh5ml8O0l0VnuxDQjnIGEgYmjuaEreRgi8jMVf3dPvxnO2L Pp2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dUdUjZ1D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z86si52226539pfl.209.2018.11.26.02.33.39; Mon, 26 Nov 2018 02:33:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dUdUjZ1D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726237AbeKZV0p (ORCPT + 99 others); Mon, 26 Nov 2018 16:26:45 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:50458 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726105AbeKZV0p (ORCPT ); Mon, 26 Nov 2018 16:26:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9X0NPtRA2mZHhq5+nlCgto6J/8C/LZqji/77rk+JepE=; b=dUdUjZ1DKg80MbHGMBXp7o6Lg zXup2CddZs3UyistsdelIdd8ublfS6AUj1on3bI2MzHlJJcUfuxMihFAzzfztf8sR99BTBuCuVRce NjjlJJ2QMHMIJH9+B7Rnx8FHFcBzBPgAds5J2oDrFmDh5vys0vTJdogAlISXZNtLPnPixpJKRWUNR xw5A/6ZaRMHJ0qjHHdUMvRmBbhMQI7uh/Nk4t/36Xer34IPqDVXgErmywInBnydMikPPvTChdW60a FMduXXpC1IPJEdv9OHs0yds03sJB+oQPuGJAc87H3p8FGstu+r3Uooo6Tal5NUez//Tuau5AluTeq DUAqJfpPg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRECF-0004xY-4y; Mon, 26 Nov 2018 10:32:55 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AC5522029FD58; Mon, 26 Nov 2018 11:32:52 +0100 (CET) Date: Mon, 26 Nov 2018 11:32:52 +0100 From: Peter Zijlstra To: Nadav Amit Cc: Ingo Molnar , linux-kernel@vger.kernel.org, x86@kernel.org, "H. Peter Anvin" , Thomas Gleixner , Borislav Petkov , Dave Hansen , linux_dti@icloud.com, linux-integrity@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH v6 00/10] x86/alternative: text_poke() fixes Message-ID: <20181126103252.GN2113@hirez.programming.kicks-ass.net> References: <20181120203545.34928-1-namit@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181120203545.34928-1-namit@vmware.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 20, 2018 at 12:35:35PM -0800, Nadav Amit wrote: > Nadav Amit (9): > Fix "x86/alternatives: Lockdep-enforce text_mutex in text_poke*()" > x86/jump_label: Use text_poke_early() during early init > fork: provide a function for copying init_mm > x86/alternative: initializing temporary mm for patching > x86/alternative: use temporary mm for text poking > x86/kgdb: avoid redundant comparison of patched code > x86: avoid W^X being broken during modules loading > x86/jump-label: remove support for custom poker > x86/alternative: remove the return value of text_poke_*() > > arch/x86/include/asm/fixmap.h | 2 - > arch/x86/include/asm/mmu_context.h | 32 +++++ > arch/x86/include/asm/pgtable.h | 3 + > arch/x86/include/asm/text-patching.h | 7 +- > arch/x86/kernel/alternative.c | 197 ++++++++++++++++++++------- > arch/x86/kernel/jump_label.c | 19 ++- > arch/x86/kernel/kgdb.c | 25 +--- > arch/x86/kernel/module.c | 2 +- > arch/x86/mm/init_64.c | 35 +++++ > arch/x86/xen/mmu_pv.c | 2 - > include/linux/filter.h | 6 + > include/linux/sched/task.h | 1 + > init/main.c | 3 + > kernel/fork.c | 24 +++- > kernel/module.c | 10 ++ > 15 files changed, 279 insertions(+), 89 deletions(-) Thanks Nadav! Acked-by: Peter Zijlstra (Intel)