From patchwork Fri Feb 3 12:22:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcos Paulo de Souza X-Patchwork-Id: 52473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp809246wrn; Fri, 3 Feb 2023 04:27:03 -0800 (PST) X-Google-Smtp-Source: AK7set9VO55EO2Vy4fUakZ9K/zYxBNxE6aH8m2dvXs67KVX2s+E305BRGJvnpxDkArdizCyCziAH X-Received: by 2002:a05:6a00:1d89:b0:593:6e2f:b859 with SMTP id z9-20020a056a001d8900b005936e2fb859mr8739733pfw.4.1675427223579; Fri, 03 Feb 2023 04:27:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675427223; cv=none; d=google.com; s=arc-20160816; b=gWyjvtn4i1kVB26qO2XjryveLK/6rmSfXxSGgG6gZOBQNrI3WquRdOA6B0B6AG2gEg +8kCmaWKwNYngIKGZl+AJj3O9to28ZhcvIcybBFWghQ0G+wLdjDKUr8t8BZXKk8GeQ5l 1pplyFz3MjRytFNWlfrwpZ6qirSteusFSPU0JXAE09sWZcktZNMIxwgjsWqEiT9p03Z4 SSZzdAnh1obNoyacfTtIPo19kKRN//EXeS9iCfOLeXquw1lkbwPFDdl6XFRA61vw/jH2 8pkCDwX9zz/eT0Y3Y7p8SCBvUXG3Wf72IZhlMJY5bEgeBZwEiDtaVGPEXiBETWBOmaKy yTKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vUgcN+ube+bg4pZf/faXEMExTxepzrGeoVNQzvssGAU=; b=eEMIc6kZsXPADO2vs6XaJtVUbgP6v3YZKnnEooi9k4htEbNSLCCZxNERyQ+FSwZ612 uJXbiF2z+XbONKxrUcynyPJEFDe+kDph5vr5j9OfKEj/O9BnuhkKvwsq/ZpPOVo6p/Ep 7+KnumJ6dovSenEWKy7+yDry+FOIkTVCMM4jsvlQLky2e/Tkl0R+6CPuNVF7sZBQFeYg n7LFiZ4he1yKLWoS5OB6Rl798NVH2jg2zb8b/q6Xvg9l1vOEB3B/TNI1quxLSN1nUIKS KaJMpZkH/Pmrm047P0+TtQNxf1lcNvSXhnPHNYEn5OaS7sNi3wjCRADoyx4hKIcLXSS3 qpbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="BG4kWf/z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u4-20020a056a00158400b00593c99a9c87si2495070pfk.348.2023.02.03.04.26.51; Fri, 03 Feb 2023 04:27:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b="BG4kWf/z"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232834AbjBCMWz (ORCPT + 99 others); Fri, 3 Feb 2023 07:22:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232718AbjBCMWv (ORCPT ); Fri, 3 Feb 2023 07:22:51 -0500 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AED369DCB4; Fri, 3 Feb 2023 04:22:44 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 68925200D8; Fri, 3 Feb 2023 12:22:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1675426963; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vUgcN+ube+bg4pZf/faXEMExTxepzrGeoVNQzvssGAU=; b=BG4kWf/z5yUNK9bMNLhmRPQGJooquU4Yhx7k7qWzgSXXifnh/IrjU6C3qNlA6MDVVEvWmn 2MUq5NM4pgpBnkw0VPEdFFinRwd08BFa2t2kv2QhIMGpmVam2Mq8O+Uhb9tCJm1oQPkj/B sz4AhajxlT+nWxIX3ywzQL1sh8GaT/8= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7DC161358A; Fri, 3 Feb 2023 12:22:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id AKGOEZD83GNWZQAAMHmgww (envelope-from ); Fri, 03 Feb 2023 12:22:40 +0000 From: Marcos Paulo de Souza To: mcgrof@kernel.org, linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, linux-doc@vger.kernel.org, jpoimboe@kernel.org, mbenes@suse.cz, joe.lawrence@redhat.com, corbet@lwn.net, pmladek@suse.com Cc: Marcos Paulo de Souza Subject: [PATCH v2 2/2] Documentation: livepatch: module-elf-format: Remove local klp_modinfo definition Date: Fri, 3 Feb 2023 09:22:22 -0300 Message-Id: <20230203122222.1907-3-mpdesouza@suse.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230203122222.1907-1-mpdesouza@suse.com> References: <20230203122222.1907-1-mpdesouza@suse.com> MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756812776800351263?= X-GMAIL-MSGID: =?utf-8?q?1756812776800351263?= Refer to klp_modinfo declaration using kdoc. Signed-off-by: Marcos Paulo de Souza --- Documentation/livepatch/module-elf-format.rst | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Documentation/livepatch/module-elf-format.rst b/Documentation/livepatch/module-elf-format.rst index 72a072514581..2f2ee33539f7 100644 --- a/Documentation/livepatch/module-elf-format.rst +++ b/Documentation/livepatch/module-elf-format.rst @@ -334,12 +334,5 @@ A livepatch module's symbol table is accessible through module->symtab. Since apply_relocate_add() requires access to a module's section headers, symbol table, and relocation section indices, Elf information is preserved for livepatch modules and is made accessible by the module loader through -module->klp_info, which is a klp_modinfo struct. When a livepatch module loads, -this struct is filled in by the module loader. Its fields are documented below:: - - struct klp_modinfo { - Elf_Ehdr hdr; /* Elf header */ - Elf_Shdr *sechdrs; /* Section header table */ - char *secstrings; /* String table for the section headers */ - unsigned int symndx; /* The symbol table section index */ - }; +module->klp_info, which is a :c:type:`klp_modinfo` struct. When a livepatch module +loads, this struct is filled in by the module loader.