Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3098621ybz; Mon, 27 Apr 2020 09:56:33 -0700 (PDT) X-Google-Smtp-Source: APiQypLMlcxocQRi2A/sEKTrF8IWj1QkAl86W83xPOCIvQBukXSMRrCCBFJe27z7wSrLPsS/sTZi X-Received: by 2002:a05:6402:1215:: with SMTP id c21mr19982180edw.128.1588006593177; Mon, 27 Apr 2020 09:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588006593; cv=none; d=google.com; s=arc-20160816; b=fYnHShwnG5j8d5skOwJe539ehX0gDH5KWW2KhD8kNh4OtljF2QFaYG3kJ05rFJs5hR Gq9AhNUwYiTVeDxAOn0TGMIf6UpS/oKALpc2mtADJ5e9zXA+w4V/QI0KRZAT6S0nVjpe fok6aa+vN7cRYr0Nm9hyFy34h8LSyvaT4FbNbfzPokQiWgmmuMxRFC0M9NLg1zccYNr5 hYxPVTx8zrvFPv5bv54wXUUl4Odkm7PZwymd3KURXDwgR9HEOxVxCfJnHabPG7kAjDTE 8VRxjPW/eLNDwdz6ULdanF+sixP3EEmqJr4t2yfE85yNkf/yJFT6Fgycf2FG85wZB/sf aC8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IeLFSaS8ezTi+2RJ/llDpWcAwPrT3k0KSS3uMh365gw=; b=E9T7Ge994gf+kJ8uOOXHpZJmp12WzaZXfzaKsKMdXFN/SbGHSfDpdEOCDHXWn7c4ws 0wDtO3OkeRjde27Za2TzbmAzG/rClzsAy5t//1/aOsCh66DT5XMnlQHg0cUIkjADkDtD fKQJgmcMWz23xbcICr1vskYvXj9eDG3q3k3TVRcn4nr1TxqpytRT/KiqAfsOUao6QPJU w52on6X/V37OWdjLtbj/C/V25fAPTIJJcSDjYDQc/YGbuuCENTa6Dz7VMsYLwj2eOr8R XVH7lnqpYapMUN9Qe78Kq+lZvjFkKU8onZa0LTEZAqEAw33XsxmCVtN3mdmq90Wi1dXY Xkvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=OIccgn8A; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c3si91023edv.205.2020.04.27.09.56.09; Mon, 27 Apr 2020 09:56:33 -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=@redhat.com header.s=mimecast20190719 header.b=OIccgn8A; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726244AbgD0Qwx (ORCPT + 99 others); Mon, 27 Apr 2020 12:52:53 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:35904 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726194AbgD0Qwx (ORCPT ); Mon, 27 Apr 2020 12:52:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588006372; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=IeLFSaS8ezTi+2RJ/llDpWcAwPrT3k0KSS3uMh365gw=; b=OIccgn8A2bskSU7FSxz/GuH9lmrAglDEfVnFbjRXbTjTcLkHoq92DSDwh0BtRGcrcRLCcF lDtlfVApbcoxQ7AKEkWZPhcgnQJA7boI6pjioeiRHEgG8tuxU7qvQvDvOgD1elm7OLBjQo ypJ6eWZrQN3j04EubY/fh0oEsV520pU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-420-Z16BndkVPJ6UJjzV3R1T-g-1; Mon, 27 Apr 2020 12:52:46 -0400 X-MC-Unique: Z16BndkVPJ6UJjzV3R1T-g-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id BF05D872FE0; Mon, 27 Apr 2020 16:52:45 +0000 (UTC) Received: from redhat.com (ovpn-112-171.phx2.redhat.com [10.3.112.171]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 20F015C1D4; Mon, 27 Apr 2020 16:52:45 +0000 (UTC) Date: Mon, 27 Apr 2020 12:52:43 -0400 From: Joe Lawrence To: Josh Poimboeuf , live-patching@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Jessica Yu Subject: Re: [PATCH v3 00/10] livepatch,module: Remove .klp.arch and module_disable_ro() Message-ID: <20200427165243.GA7222@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 27, 2020 at 08:22:03AM -0400, Joe Lawrence wrote: > On 4/25/20 7:07 AM, Josh Poimboeuf wrote: > > v3: > > - klp: split klp_write_relocations() into object/section specific > > functions [joe] > > - s390: fix plt/got writes [joe] > > - s390: remove text_mutex usage [mbenes] > > - x86: do text_poke_sync() before releasing text_mutex [peterz] > > - split x86 text_mutex changes into separate patch [mbenes] > > > > v2: > > - add vmlinux.ko check [peterz] > > - remove 'klp_object' forward declaration [mbenes] > > - use text_mutex [jeyu] > > - fix documentation TOC [jeyu] > > - fix s390 issues [mbenes] > > - upstream kpatch-build now supports this > > (though it's only enabled for Linux >= 5.8) > > > > These patches add simplifications and improvements for some issues Peter > > found six months ago, as part of his non-writable text code (W^X) > > cleanups. > > > > Highlights: > > > > - Remove the livepatch arch-specific .klp.arch sections, which were used > > to do paravirt patching and alternatives patching for livepatch > > replacement code. > > > > - Add support for jump labels in patched code. Nit: support for the hopefully common cases anyway: jump labels whose keys are not going to require late-module klp-relocation (defined in an unloaded module). > > > > - Remove the last module_disable_ro() usage. > > > > For more background, see this thread: > > > > https://lkml.kernel.org/r/20191021135312.jbbxsuipxldocdjk@treble > > > > This has been tested with kpatch-build integration tests and klp-convert > > selftests. > > > > Hi Josh, > > I've added some late module patching tests for klp-convert as well as > extended the existing ones. I'll put them on-top of v3 and give it some > test runs today (x86, ppc64le, s390x) and report back. Ok all three arches look good with the klp-convert WIP tests. For reference, I pushed the combined branch up to github [1] if anyone else wants to see the klp-relocations in action first hand. For the series: Acked-by: Joe Lawrence [1] https://github.com/joe-lawrence/linux/tree/jp-v3-klp-convert -- Joe