Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp604207ybz; Wed, 15 Apr 2020 15:00:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKEjixVPz0MkWXlUZLUJemaXt4KoWVzl8ektEHGVXkDsp0qfRWSjNxHIStX/zH5oIato2yC X-Received: by 2002:a17:906:cec5:: with SMTP id si5mr6960809ejb.267.1586988003063; Wed, 15 Apr 2020 15:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586988003; cv=none; d=google.com; s=arc-20160816; b=d5AdbPHXerNOpO0W1ai1GNdFjSpq/fudNK2OTmcOGq85Ml6B+c1QIlGQawjFrUugH5 rNHaC6cWqTCXAUD7wSgpcVkRQ0OTEY8tnoIN5POJTzCbA8DD4q/DPQwhrQcGg+F993Jh 0IX24yxGIqWjCW/4hlIA1WIBR5NbIDaH8grCLfDMaSp3gvPFEVk3UIlj4lNo1B7BQTe7 dsu/m2um8veiGCtAyFUYRCExFAFcDydF0s7VyVb+SUDQ6JrtwNbJdZmXt8RhfgAUbDMX iHZ634nx6kBekVSRQlkE+IupgnjzaN1Bp4A8nb2MYdTr5d24mXMw4f4fgelmL/czOetx j8BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=INu02MFWkvXpu23KW+Iy6RseGgVn0wutAQ1sHDlj8rA=; b=JfjL8owMrque/Qi6IcFYFRGSdg51ydQ0Uy15vLIAeAJeLkCHMY2pYRoAfLhjk3dTwk eedGrjNWeQ7AcwyyW/a51OVbzNstxucPyi8lNlDGPoyv/zxvWbTCoWWGD2D6F3u4SbVS eW0bwcovliooczR/NQ31hJq+Yxawvkjw2iQyyPGKX9n8u5smxTANthaIN8BDUiI148Xb zuoTm/HcxvTLNt9aZGr6hKQepTX4CCNOzKleKLt6nGfvwqIgNXNQ3EStuyp/TB2EdsN/ jMgu00bs+E8Cn2/UWO6so/fOsu7IAdquyYrQSiPIb/byASLgXqXyahPJgRHU/sPMsf4F IA6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Eb5X25fg; 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 p3si1339177edr.391.2020.04.15.14.59.39; Wed, 15 Apr 2020 15:00:03 -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=Eb5X25fg; 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 S1733260AbgDOA51 (ORCPT + 99 others); Tue, 14 Apr 2020 20:57:27 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:50900 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1733242AbgDOA50 (ORCPT ); Tue, 14 Apr 2020 20:57:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1586912243; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=INu02MFWkvXpu23KW+Iy6RseGgVn0wutAQ1sHDlj8rA=; b=Eb5X25fg2qPjpqtyALLvAqdGjBP05473TZLWsVOJf3/MRM/Acyggy82IAug4WUOv8ytFT+ ASneXL5Ao6JOPqXq4saSb0IRIezcEKyxHC13W3hxhWvO2Hl+MqjVWDquoKB/bGR/KHiDuZ AwuY0haM+B+BfK7q6sxOyA6gDK2DpN4= 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-318-J6xstRbGMJC1mcBzvi2yPw-1; Tue, 14 Apr 2020 20:57:18 -0400 X-MC-Unique: J6xstRbGMJC1mcBzvi2yPw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C8FB58017F5; Wed, 15 Apr 2020 00:57:17 +0000 (UTC) Received: from [10.3.112.171] (ovpn-112-171.phx2.redhat.com [10.3.112.171]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3FB8760BE0; Wed, 15 Apr 2020 00:57:17 +0000 (UTC) Subject: Re: [PATCH 0/7] livepatch,module: Remove .klp.arch and module_disable_ro() To: Josh Poimboeuf , live-patching@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Jessica Yu References: From: Joe Lawrence Message-ID: <187a2ccd-1d04-54db-2fd3-8c4ca6872830@redhat.com> Date: Tue, 14 Apr 2020 20:57:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/14/20 12:28 PM, Josh Poimboeuf wrote: > Better late than never, 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. Re: jump labels and late-module patching support... Is there still an issue of a non-exported static key defined in a to-be-patched module referenced and resolved via klp-relocation when the livepatch module is loaded first? (Basically the same case I asked Petr about in his split livepatch module PoC. [1]) Or should we declare this an invalid klp-relocation use case and force the livepatch author to use static_key_enabled()? [1] https://lore.kernel.org/lkml/20200407205740.GA17061@redhat.com/ -- Joe