Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp711729ybz; Wed, 15 Apr 2020 17:16:21 -0700 (PDT) X-Google-Smtp-Source: APiQypJb4i+xWDZcXkQ4lW7AJiBPpXMVxahqwRJjJ46kqYiUZsuaCpZmzHlhYjMtCdmjhtfowAEp X-Received: by 2002:aa7:dc17:: with SMTP id b23mr27142017edu.321.1586996180959; Wed, 15 Apr 2020 17:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586996180; cv=none; d=google.com; s=arc-20160816; b=ZLnxuE+HxgnvhiDw3uEueN8Z/3YmQbABR9xBREfmGwXx0Al1qw/atypcXEV3xfSl0c Tt3j2zWPAdaZKou1iKU7nbxcdWk9wxubdtHWneQgE3SbpJW8Ci5PzblSvW8MtYMMabfF u8oygGV77Zfcjw14JfSHCje0iiX1B2PxI82MTaI2ttFd4fSnnLNXBWt4Yg8GiM+fDrCS EauQlNg6naqOtvZNsJqS551Ui6l/5d/kTzX885EBgmgGPzf1xhxbQDAMjwclLlSm1Ac9 cVK39vZ7qbGgk8F+NM6ToklQ3VCqorT9hroAf3HSCjKG+sBIY3n0IS7sTEb6uIFGEnbY VXGw== 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=atmMfN8GPD3mOA+vx0ui5PNLbTIXmfac7XHvojLJZwE=; b=TZdLV+oS/DcbmboOESgMoJMcf+zmgIBiy09qi4YOeVRHVfcePnIHlG3MA3fLPp7jG7 qXh1bJNgnUTeXJCZrF8UiZUjNb0znroQ3Oy6MdoBfhtOqT36+0qvw2NoLk3gq6RrD+nH dSuZ6iqWI5YbcL+gqeWocnb226qihmGcHDYQ0rLwxz4dlU/7gY9aJVOlLABuNXU8CEzZ 5gQOUwhuBHM76HEQTJWPlzfMdkwFv3QbDNyaY1q3cgRVVlwDPiYdN27gjjR73MxLAJn4 3M6DQ3AD600y9e+CRO3n3AXq+sDy7Pw4GzvZeCLYX0L0eNsn9W+xvqs1td0RbodFaRPf YsQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CzRRiIHr; 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 f12si11884930ejk.406.2020.04.15.17.15.57; Wed, 15 Apr 2020 17:16:20 -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=CzRRiIHr; 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 S1414648AbgDOPSh (ORCPT + 99 others); Wed, 15 Apr 2020 11:18:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:34322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1414618AbgDOPSb (ORCPT ); Wed, 15 Apr 2020 11:18:31 -0400 Received: from linux-8ccs.fritz.box (p3EE2C7AC.dip0.t-ipconnect.de [62.226.199.172]) (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 036222078B; Wed, 15 Apr 2020 15:18:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586963910; bh=hfI1YAAeH1YLsyJL8AT3fmW+XOyfksoJnz+ksoISptA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CzRRiIHrXJVUaxJE1LN1SoTAInBxGPM/shexq+6nTJhWCl5TtWc9fz+RP4yZpTO5I m4BW0njHHuENU3tpoL2BIKMq3p1CEJVBdoNbYON16d5r5iAuuJBrooZgk6yK7O6gYu BQI2Hu3fwte/2jdJB5jUC1zQjqBYzqvcG6Kv2lJw= Date: Wed, 15 Apr 2020 17:18:26 +0200 From: Jessica Yu To: Josh Poimboeuf Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra Subject: Re: [PATCH 2/7] livepatch: Remove .klp.arch Message-ID: <20200415151825.GB6164@linux-8ccs.fritz.box> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: X-OS: Linux linux-8ccs 4.12.14-lp150.12.61-default x86_64 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 +++ Josh Poimboeuf [14/04/20 11:28 -0500]: [snip] >diff --git a/Documentation/livepatch/module-elf-format.rst b/Documentation/livepatch/module-elf-format.rst >index 2a591e6f8e6c..629ef7ffb6cf 100644 >--- a/Documentation/livepatch/module-elf-format.rst >+++ b/Documentation/livepatch/module-elf-format.rst >@@ -298,17 +298,7 @@ Examples: > Note that the 'Ndx' (Section index) for these symbols is SHN_LIVEPATCH (0xff20). > "OS" means OS-specific. > >-5. Architecture-specific sections >-================================= >-Architectures may override arch_klp_init_object_loaded() to perform >-additional arch-specific tasks when a target module loads, such as applying >-arch-specific sections. On x86 for example, we must apply per-object >-.altinstructions and .parainstructions sections when a target module loads. >-These sections must be prefixed with ".klp.arch.$objname." so that they can >-be easily identified when iterating through a patch module's Elf sections >-(See arch/x86/kernel/livepatch.c for a complete example). >- >-6. Symbol table and Elf section access >+5. Symbol table and Elf section access Nit: I think we need to fix the numbering in the Table of Contents too.