Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5802034ybg; Tue, 22 Oct 2019 08:34:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqDejbqkK2Lpe71MSRgx0YF5lGJiWULTAeP9m8jHKOKgNnZoVpZxO+4ODym6eg2RnTis7s X-Received: by 2002:aa7:d304:: with SMTP id p4mr31694546edq.224.1571758486766; Tue, 22 Oct 2019 08:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571758486; cv=none; d=google.com; s=arc-20160816; b=YylMlK77rLEABSmjP406osK37WZnrNqmvVJdxo1GzcHWHKuY9zo8IDV12ZS8q6uA0D VUgRsZk2W1i/1ftHOqlPWMv6ya/zbDTyB3NuhS2AVjB37xZHX7S44cGuHVQBjtcLjSQP o6I1rFPlKQlWQxNq7g5HhYJfSu+SE9sU7s+OUwvawfPo6C3phYlskDp4xa3EQvSTSbWK ZGfdXZbeN+eK0AQr0JIEefqAoJVuTlcXbogZXAirBnnvWhZ3zQ7j5seQMvV4MG0cxYaT l0/LKi2z+udWtoNNX31nOhDLA0/wRfh6uG0Kq/2Ik+eot96I15Q7R0cfE24tOJUmH7+W /M4A== 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=cbzjBRCNu064oPbnxwV51wPz82f0A4UhuT/lsEJ7sU4=; b=mLDFLmsqP/I8YPLsrQ1cc6ivboyhg9M1CQe7FeHhUN9tM47AIGFvwLCeglU0OlcdBx NCGT5Dl5B1I9rrWERxWcUyhA8wTZKSGIaYKv233V6Cn0KB6XH+Wt6XuK4A6TloH+XRcf ZO3+mxT6zLa0bynGne+Rem4zPm2NI9XVPcNLiBTCuXCSiYS8UL1VqCmCWJRaKEDGhpsk piiFwrphLD2WNKG1mSRRSp2FLheoeOnDRumzKhEoUZZ8NauGgByFpkYsYDwc6ci+uKWU hotfbKTtvKVUNqCxRnx6zmxNYmFBhlmIbmd7zH309Ca0AgG8HypTX7BB+2jMJPLrTNqG 0oqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=A8DP0T8H; 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 y61si2114080ede.24.2019.10.22.08.34.22; Tue, 22 Oct 2019 08:34:46 -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=A8DP0T8H; 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 S2388349AbfJVMbj (ORCPT + 99 others); Tue, 22 Oct 2019 08:31:39 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38194 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388066AbfJVMbj (ORCPT ); Tue, 22 Oct 2019 08:31:39 -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=cbzjBRCNu064oPbnxwV51wPz82f0A4UhuT/lsEJ7sU4=; b=A8DP0T8HXpZ8QWEfSqsuG6Ova F76pB1qsAY0tM7KHGTfJwIRVFa9StYYpj95znyoyLDLI9O/v8gL9TJ0XkF70eO1krOrP6GXCCYvTb d6kk4YTnmtFrSBWQZ8XtgtfLSIUAiSgYATA82WeupbmoawGtMerU+REv2V8LTK72UEsTuzfRYSqPq M2yc8lLtZLPYhfhBQekUuWuR5Norwc2zaTrLJ13PNb4IBNmYwox279jsZsyy3GPRSiDx67kPcfInK tP1L+MpRF60+GTtc8zfS9e1h3rDux0Zd0bzlG34rgLlshFAB1Mh2egzjU95RvoQEdw+k21y/JLoFj x0WMEvoog==; 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 1iMtJj-000478-Tc; Tue, 22 Oct 2019 12:31: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 D188D300F29; Tue, 22 Oct 2019 14:30:14 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 6BF1C2042087F; Tue, 22 Oct 2019 14:31:12 +0200 (CEST) Date: Tue, 22 Oct 2019 14:31:12 +0200 From: Peter Zijlstra To: Heiko Carstens 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 Subject: Re: [PATCH v4 15/16] module: Move where we mark modules RO,X Message-ID: <20191022123112.GI1800@hirez.programming.kicks-ass.net> References: <20191018073525.768931536@infradead.org> <20191018074634.801435443@infradead.org> <20191021135312.jbbxsuipxldocdjk@treble> <20191021141402.GI1817@hirez.programming.kicks-ass.net> <20191021153425.GB19358@hirez.programming.kicks-ass.net> <20191021161135.GD19358@hirez.programming.kicks-ass.net> <20191022113116.GA8574@osiris> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191022113116.GA8574@osiris> 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, Oct 22, 2019 at 01:31:16PM +0200, Heiko Carstens wrote: > On Mon, Oct 21, 2019 at 06:11:35PM +0200, Peter Zijlstra wrote: > > On Mon, Oct 21, 2019 at 05:34:25PM +0200, Peter Zijlstra wrote: > > > On Mon, Oct 21, 2019 at 04:14:02PM +0200, Peter Zijlstra wrote: > > > > > So On IRC Josh suggested we use text_poke() for RELA. Since KLP is only > > > available on Power and x86, and Power does not have STRICT_MODULE_RWX, > > > the below should be sufficient. > > > > > > Completely untested... > > > > And because s390 also has: HAVE_LIVEPATCH and STRICT_MODULE_RWX the even > > less tested s390 bits included below. > > > > Heiko, apologies if I completely wrecked it. > > > > The purpose is to remove module_disable_ro()/module_enable_ro() from > > livepatch/core.c such that: > > > > - nothing relies on where in the module loading path module text goes RX. > > - nothing ever has writable text > > Given that Steven reported a crash, I assume I can wait until you > repost a new version of the series, which also includes s390 bits? His crash is somewhat orthogonal, but yes, I will repost once sorted.