Received: by 2002:a25:730a:0:0:0:0:0 with SMTP id o10csp4145808ybc; Fri, 25 Oct 2019 15:29:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFHRBbTvIU/mRMMkG95y+dLaqJUAFSegcgM79Mz1waHoxJjQ9h5HFN8Fn+eqBKOx/7S2uU X-Received: by 2002:a17:906:e2c4:: with SMTP id gr4mr5886989ejb.260.1572042561175; Fri, 25 Oct 2019 15:29:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572042561; cv=none; d=google.com; s=arc-20160816; b=UKUQMoTVADxUofnskC4WS7B4kD4yDoh96J7/TrK0wKNMnB0z5DppMPbEJY+SS5gb4H HkhKZ1s6XuoQ59R7GLMB6D23SdFQ5yp2JQxaFaXqzjFQWKMsAm6fHD2w45ccatoDqR66 9ae69q8iqXouOcferTyBE1gfpdWQSmT27fSrxX1VWB5rWHbXr039JTvKwE5RXcA50z16 zNnhvbKabzk94l8qujNLv/C3bQ3NT0tUFglvC9oTp9x0IPU5D5/p7rCH/4opfX17SpE2 531f+SCtQqahIeF4jnK18dBRU+iUMtMq5y6hVPZJMLAq5x5dYAnSTINNlmoHnZPI8Oaj lvpw== 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=q6FFczL57RhsN1t0BzhzZVDPDAgimSM0qYSWHe2kb80=; b=TEisO4myHSRf2XS6udhqWCUT9gtOKck28sqNapTOjST1TWrBbsziyd81RxrIiUHxoy VvkxqV+kItD+S4vAbGIQ6rqDevuXmOE6XQfAM76rxVKxm6+ghUnkc7kHH94klH2tBV3o Fz39wx88WdVOHsbPBAIuUfoYH4Sr9G2lnhU6kC9CYFzgnqpL4oJ9z7t8eVF9gPdYTWc9 fk5J0OcwwPeUfA9/MaWARmeFRRdjtyg38aOljcm1gOL5hwlijlSD0I+IDeWFScwE/BY/ M7TLwEYFSow6lY78A/SabN8lbta85/U6Uk81cd+qgVMHmOpEGU2mr7WpP4oNUN+Ui9Qw jXTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b="BdoOO1x/"; 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 b27si2301962ede.233.2019.10.25.15.28.58; Fri, 25 Oct 2019 15:29:21 -0700 (PDT) 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=merlin.20170209 header.b="BdoOO1x/"; 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 S2439406AbfJYKGi (ORCPT + 99 others); Fri, 25 Oct 2019 06:06:38 -0400 Received: from merlin.infradead.org ([205.233.59.134]:36584 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438337AbfJYKGi (ORCPT ); Fri, 25 Oct 2019 06:06:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.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=q6FFczL57RhsN1t0BzhzZVDPDAgimSM0qYSWHe2kb80=; b=BdoOO1x/Mx78pKJns8iGGvn8w MwPIkb/Rp8dGTlpmX4DcXhYJAkdz2yLZTMpQsJcQKxGgODLRU+HVbE+GJ59s7JpWFTiXH1Ywy/SmE pFaBsx+s0NNpL6bsKdjio5Owv1HsmkuzcvVrnm4xeoHr8O7QWvjb7yOm3+aiHWw5zP4kIix8ju4Ko RgfnyjuBFfIRqLGVhG9Ks/gadccoul6ccLW9HLDnTsRM/GvWbazOZkLAIn/m4ps5apiXqySAMkziY pBYjP221fSvKCP36RK+34I7FvVuY7dDKYaHpjbNbhENpgx6ph2fuvtK1CuvTJIW49AuJGgOUq3QpS fnQRDNPew==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iNwU4-0002JW-Ha; Fri, 25 Oct 2019 10:06:16 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id D87D230314F; Fri, 25 Oct 2019 12:05:13 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id AA12E203C086A; Fri, 25 Oct 2019 12:06:12 +0200 (CEST) Date: Fri, 25 Oct 2019 12:06:12 +0200 From: Peter Zijlstra To: Petr Mladek Cc: Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org, mhiramat@kernel.org, bristot@redhat.com, jbaron@akamai.com, torvalds@linux-foundation.org, tglx@linutronix.de, mingo@kernel.org, namit@vmware.com, hpa@zytor.com, luto@kernel.org, ard.biesheuvel@linaro.org, jeyu@kernel.org, live-patching@vger.kernel.org, Mark Rutland Subject: Re: [PATCH v4 15/16] module: Move where we mark modules RO,X Message-ID: <20191025100612.GB5671@hirez.programming.kicks-ass.net> References: <20191018073525.768931536@infradead.org> <20191018074634.801435443@infradead.org> <20191021135312.jbbxsuipxldocdjk@treble> <20191021141402.GI1817@hirez.programming.kicks-ass.net> <20191023114835.GT1817@hirez.programming.kicks-ass.net> <20191023170025.f34g3vxaqr4f5gqh@treble> <20191024131634.GC4131@hirez.programming.kicks-ass.net> <20191025064456.6jjrngm4m3mspaxw@pathway.suse.cz> <20191025084300.GG4131@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191025084300.GG4131@hirez.programming.kicks-ass.net> 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 Fri, Oct 25, 2019 at 10:43:00AM +0200, Peter Zijlstra wrote: > But none of that explains why apply_alternatives() is also delayed. > > So I'm very tempted to just revert that patchset for doing it all > wrong. And I've done just that. This includes Josh's validation patch, the revert and my klp_appy_relocations_add() patches with the removal of module_disable_ro(). Josh, can you test or give me clue on how to test? I need to run a few errands today, but I'll try and have a poke either tonight or tomorrow. git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git x86/rwx After this it is waiting for Mark's argh64 patches to land: https://lkml.kernel.org/r/20191021163426.9408-5-mark.rutland@arm.com And then we can go and delete module_disable_ro() entirely -- hooray!