Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp593247ybj; Thu, 7 May 2020 03:05:59 -0700 (PDT) X-Google-Smtp-Source: APiQypIRStD3z6S/Q926WuciI/SCASIJiNUj7SFetAR/uKnf3U9hXNLXAi2kuQ02bvIOyQcmxUgW X-Received: by 2002:a05:6402:17ef:: with SMTP id t15mr10964047edy.10.1588845959691; Thu, 07 May 2020 03:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588845959; cv=none; d=google.com; s=arc-20160816; b=mHZNk4Eo1jhhE6C/l9NMco8lZHOb+OnZeFRFUmlJ5RGxOC8o1JUx17YfTE9wW9uUBo aHYNQbokBgiuzA9+Md+Z9/X0MDUh4ip3zzEnbmtWBNnz288nqiJk4e8n13IzBjEYElgS DfAEcJQEaH5UvO+UGpctRgtzhlURnJmtw8Yv/DZ1vi6aRuMhy0pc9yJF2rByfDPc+CZY gTeiLykPw9KgaQxBpbOY/YtJR2yzx1EYViC+F3Feigg8Mgd3CXQAdulQ8W3FrCmO+03+ 0X4ruL7Tp+wTAMSXFALAdgO0tNYO5QNgUo7QKvIrAl7VnEshERBvCNuv81ogwll7jJpZ chEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=sZqB50DXOMOVc/ZsrwGFgT1+i8GTgRDwE0gMTywdiPw=; b=JCtMjm3wkXtvd64BTFvX1EpxsMzwKa+PquRSsyFlblcxFJ77jZUsTAqPazl6UKx2q3 z5/ygdD23NFz0LTjN/xVAvmEF3KDc01S47YstHPZKo0P33/rCumjils65x3GspwNgf6x NqxLOV3RMitaGUzgipJP9KSZyPJDEGbu+mVR4Wv1qn5tDrw4qS0x6feDOoZOGEPchcTd KusQjiQQYCQ9ayWKUz3CEgaHgEVS37j9W6yqa43oTOBwvczJmMhVsLDMDxzstGSX/Hg1 ND9G4TmHXacPqBG4zeCMbWXTDxX0cxdmfRQBL90XVPwk0fq6EVNTIX9MV+leLEjJByEV jr1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JjsIhurg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df17si1110855edb.553.2020.05.07.03.05.35; Thu, 07 May 2020 03:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JjsIhurg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbgEGKAk (ORCPT + 99 others); Thu, 7 May 2020 06:00:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:38930 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726222AbgEGKAS (ORCPT ); Thu, 7 May 2020 06:00:18 -0400 Received: from pobox.suse.cz (nat1.prg.suse.com [195.250.132.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A814C21473; Thu, 7 May 2020 10:00:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1588845617; bh=bcDuPlK5Eisv/i5AZHvazLLY9XdRx5lz+/uXpfp9JV0=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=JjsIhurgsHOjFr9qWqQvkxxcy4ipTQLatYA569lhQObBh7lN947EJYsDjpAkEAPIa DEd0T3Jgb+mzWPee30GaH8plLJnVLwybi9eLGgyaqYjQlqzle0e8UabNznG975H/3X 3xHy2ae0ORM+laxQcVbParXO5zgCRycV6E8D8dpM= Date: Thu, 7 May 2020 12:00:13 +0200 (CEST) From: Jiri Kosina To: Josh Poimboeuf cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Jessica Yu , Joe Lawrence , Miroslav Benes , linux-s390@vger.kernel.org, Heiko Carstens , Gerald Schaefer , Christian Borntraeger Subject: Re: [PATCH v4 06/11] s390/module: Use s390_kernel_write() for late relocations In-Reply-To: <4710f82c960ff5f8b0dd7dba6aafde5bea275cfa.1588173720.git.jpoimboe@redhat.com> Message-ID: References: <4710f82c960ff5f8b0dd7dba6aafde5bea275cfa.1588173720.git.jpoimboe@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 29 Apr 2020, Josh Poimboeuf wrote: > From: Peter Zijlstra > > Because of late module patching, a livepatch module needs to be able to > apply some of its relocations well after it has been loaded. Instead of > playing games with module_{dis,en}able_ro(), use existing text poking > mechanisms to apply relocations after module loading. > > So far only x86, s390 and Power have HAVE_LIVEPATCH but only the first > two also have STRICT_MODULE_RWX. > > This will allow removal of the last module_disable_ro() usage in > livepatch. The ultimate goal is to completely disallow making > executable mappings writable. > > [ jpoimboe: Split up patches. Use mod state to determine whether > memcpy() can be used. Test and add fixes. ] > > Cc: linux-s390@vger.kernel.org > Cc: Heiko Carstens > Cc: Gerald Schaefer > Cc: Christian Borntraeger > Suggested-by: Josh Poimboeuf > Signed-off-by: Peter Zijlstra (Intel) > Signed-off-by: Josh Poimboeuf > Acked-by: Peter Zijlstra (Intel) > Acked-by: Joe Lawrence > Acked-by: Miroslav Benes Could we please get an Ack / Reviewed-by: for this patch from s390 folks? Thanks, -- Jiri Kosina SUSE Labs