Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5645299ybg; Tue, 22 Oct 2019 06:25:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQgAA86bbQlQZryhmeJCstkPzKDC90jAN2d3xPZ8RZQ86hI706eJclTXwxBV2BDpMVkzqG X-Received: by 2002:aa7:dd03:: with SMTP id i3mr9706164edv.145.1571750725125; Tue, 22 Oct 2019 06:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571750725; cv=none; d=google.com; s=arc-20160816; b=zp5pL3tjiMH5/KskWG3zheQGmVDUXAaybgoJ7e3yd5KzktDfMeq0UvSgeL4Zo5+xai ww5waHMzam1uDAhNZ4bbBmEoCqXGK9Zx0KP9tYBekI9JDqGr/kJMhRJ6IPpVpI0TB1Cl VIMX+qgiOK3oS0xD/v/vCe5mdD7AHGGtClmBEVsbvWa97jJPhJLrV3TL1OYN383X2/0o sIKRo1q/iiBubjX+zGeE38yX3ZYLqJ/B70Ap1MG65qf6rKMHdtkKABmoUkWTrmbUN9ki prcFfsOgyyiW7C6/IPkAXZZUXUWXC4e5hfe6N1DNFTfwyZZaBSuHGBnSpgnz0+bIhnf9 qHDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:in-reply-to :content-disposition:mime-version:references:subject:cc:to:from:date; bh=sOosFJ5CJvqwwpYucWQB+QMPhH3PLACxnr8uwvU9YDg=; b=mPaBO3rYKGrZNplmJ9DQhJ+mmA5uDkquzR5IX981GRnauVoHCUmA117lii5ZbEuG/G BkecHEfPtojRZd7MgLJ4s6tHM20RYq4YCuV4OyGAaaFYM6q3mrXT4GJTXyp0g2JvXb4V n0YXu2nvZO3iqwWxzkinD9pFmP05M0CFugSmUxCRlTFTlLvvofRVdSlfketDY5GX58rd Kq01SyW5RYiix4wbdkPQMWWDnjvH4NsmhG0aLBZzzbZwi3F6shij76gESir1bos7SPAo B27k3IC+UihMSO7VHIW9ckYb4abJzuwGHePqqlVmxLjVimJ5N7DFr+x/E0+WFA+wgRKG nB/g== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u11si2073228eda.235.2019.10.22.06.25.00; Tue, 22 Oct 2019 06:25:25 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731059AbfJVLb1 (ORCPT + 99 others); Tue, 22 Oct 2019 07:31:27 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:7844 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730515AbfJVLb0 (ORCPT ); Tue, 22 Oct 2019 07:31:26 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x9MBRjMC019380 for ; Tue, 22 Oct 2019 07:31:25 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2vsy8m435y-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 22 Oct 2019 07:31:25 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 22 Oct 2019 12:31:23 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 22 Oct 2019 12:31:19 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x9MBVI8658917008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 22 Oct 2019 11:31:18 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 34B93AE057; Tue, 22 Oct 2019 11:31:18 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B2A07AE059; Tue, 22 Oct 2019 11:31:17 +0000 (GMT) Received: from osiris (unknown [9.152.212.85]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 22 Oct 2019 11:31:17 +0000 (GMT) Date: Tue, 22 Oct 2019 13:31:16 +0200 From: Heiko Carstens To: Peter Zijlstra 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 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191021161135.GD19358@hirez.programming.kicks-ass.net> X-TM-AS-GCONF: 00 x-cbid: 19102211-0028-0000-0000-000003AD6D69 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19102211-0029-0000-0000-0000246F97D3 Message-Id: <20191022113116.GA8574@osiris> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-10-22_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=837 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1910220105 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?