[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z8EZm2CXB6yVRoue@archie.me>
Date: Fri, 28 Feb 2025 09:04:11 +0700
From: Bagas Sanjaya <bagasdotme@...il.com>
To: Vincenzo MEZZELA <vincenzo.mezzela@...e.com>,
live-patching@...r.kernel.org, linux-doc@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: jpoimboe@...nel.org, jikos@...nel.org, mbenes@...e.cz, pmladek@...e.com,
joe.lawrence@...hat.com, corbet@....net
Subject: Re: [PATCH v2] docs: livepatch: move text out of code block
On Thu, Feb 27, 2025 at 05:39:29PM +0100, Vincenzo MEZZELA wrote:
> diff --git a/Documentation/livepatch/module-elf-format.rst b/Documentation/livepatch/module-elf-format.rst
> index a03ed02ec57e..5d48778d4dfc 100644
> --- a/Documentation/livepatch/module-elf-format.rst
> +++ b/Documentation/livepatch/module-elf-format.rst
> @@ -217,16 +217,19 @@ livepatch relocation section refer to their respective symbols with their symbol
> indices, and the original symbol indices (and thus the symtab ordering) must be
> preserved in order for apply_relocate_add() to find the right symbol.
>
> -For example, take this particular rela from a livepatch module:::
> +For example, take this particular rela from a livepatch module::
>
> Relocation section '.klp.rela.btrfs.text.btrfs_feature_attr_show' at offset 0x2ba0 contains 4 entries:
> Offset Info Type Symbol's Value Symbol's Name + Addend
> 000000000000001f 0000005e00000002 R_X86_64_PC32 0000000000000000 .klp.sym.vmlinux.printk,0 - 4
>
> - This rela refers to the symbol '.klp.sym.vmlinux.printk,0', and the symbol index is encoded
> - in 'Info'. Here its symbol index is 0x5e, which is 94 in decimal, which refers to the
> - symbol index 94.
> - And in this patch module's corresponding symbol table, symbol index 94 refers to that very symbol:
> +This rela refers to the symbol '.klp.sym.vmlinux.printk,0', and the symbol
> +index is encoded in 'Info'. Here its symbol index is 0x5e, which is 94 in
> +decimal, which refers to the symbol index 94.
> +
> +And in this patch module's corresponding symbol table, symbol index 94 refers
> +to that very symbol::
> +
> [ snip ]
> 94: 0000000000000000 0 NOTYPE GLOBAL DEFAULT OS [0xff20] .klp.sym.vmlinux.printk,0
> [ snip ]
LGTM, thanks!
Reviewed-by: Bagas Sanjaya <bagasdotme@...il.com>
--
An old man doll... just what I always wanted! - Clara
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists