mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Josh Poimboeuf <jpoimboe@kernel.org>
To: Longjun Luo <luolongjuna@gmail.com>
Cc: peterz@infradead.org, mbenes@suse.cz, pmladek@suse.com,
	 joe.lawrence@redhat.com, song@kernel.org, puranjay@kernel.org,
	nathan@kernel.org,  ndesaulniers@google.com, morbo@google.com,
	justinstitt@google.com,  live-patching@vger.kernel.org,
	llvm@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [RFC PATCH v2 00/11] objtool/klp: DWARF-based cross-build symbol correlation
Date: Thu, 12 Nov 2026 18:35:42 -0800	[thread overview]
Message-ID: <avZ20mdxRnzTPY4c@jpoimboe> (raw)
In-Reply-To: <20261104133158.3187525-1-luolongjuna@gmail.com>

On Wed, Nov 04, 2026 at 09:31:46PM +0800, Longjun Luo wrote:
> Responses to v1 Review (Guide)
> ------------------------------
> 
> Thanks to Josh for reviewing v1. v2 responds as follows:
> 
> 1. `CONFIG_DEBUG_INFO` and split/reduced DWARF: as suggested, `klp-build`
>    now requires `CONFIG_DEBUG_INFO` and uses Kbuild's debug flags
>    (Patch 6). Reduced and split DWARF are supported (Patch 5). See
>    "Compatibility Limits and Build Requirements".
> 
> 2. Repeated macro statics and the one-line test: building on the
>    referencing-function idea, unchanged-function references resolve
>    repeated statics (Patch 9). The tree-wide test reduces v1's
>    `no correlation` warnings from 682/764 to zero (GCC/Clang). See
>    "Evaluation and Performance Overhead".
> 
> 3. Upgrading `no correlation` to an error and explicit annotations:
>    following this direction, v2 rejects ambiguous data references and
>    allows verified new data (Patch 10). See Case D for the
>    state-inheritance boundary, its kernel-wide impact, and proposed
>    annotations.
> 
> 4. Referencing functions, ThinLTO naming flags, and Full LTO: in ELF, the
>    referencing function only approximates the defining scope, and
>    `STT_FILE` and `.llvm.<hash>` suffixes only approximate the defining
>    TU. Definition identity distinguishes inlined helpers' state and
>    survives LTO renaming and `STT_FILE` merging; see Cases A-B.
> 
> 5. Toolchain reliability and performance: v2 cross-checks DWARF against
>    ELF and measures checksum/diff costs, including a separate memory
>    prototype. See "Design Overview", "Evaluation and Performance
>    Overhead", and "Open Questions and Next Steps".
 
Going forward, please reply directly to the review comments (including
sashiko reviews), as threaded emails are much easier to follow/discuss
than a summary like the above.

-- 
Josh

  parent reply	other threads:[~2026-11-13  2:35 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-04 13:31 Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 01/11] objtool/klp: Fix checksums and copying of wide strings Longjun Luo
2026-11-13  2:42   ` Josh Poimboeuf
2026-11-13  4:32     ` Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 02/11] objtool/klp: Hash compound literals by content Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 03/11] objtool/klp: Preserve identifier digits when stripping suffixes Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 04/11] objtool/klp: Read symbol identities from DWARF Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 05/11] objtool/klp: Support reduced and split DWARF Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 06/11] klp-build: Require CONFIG_DEBUG_INFO Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 07/11] objtool/klp: Correlate symbols using DWARF identities Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 08/11] objtool/klp: Include symbol identities in reference checksums Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 09/11] objtool/klp: Extend twins through unchanged function references Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 10/11] objtool/klp: Check unmatched data references Longjun Luo
2026-11-04 13:31 ` [RFC PATCH v2 11/11] objtool/klp: Test symbol identity and state preservation Longjun Luo
2026-11-13  2:35 ` Josh Poimboeuf [this message]
2026-11-13  3:25   ` [RFC PATCH v2 00/11] objtool/klp: DWARF-based cross-build symbol correlation Longjun Luo
2026-11-13  3:26 ` Josh Poimboeuf
2026-11-13  3:58   ` Longjun Luo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=avZ20mdxRnzTPY4c@jpoimboe \
    --to=jpoimboe@kernel.org \
    --cc=joe.lawrence@redhat.com \
    --cc=justinstitt@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=live-patching@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=luolongjuna@gmail.com \
    --cc=mbenes@suse.cz \
    --cc=morbo@google.com \
    --cc=nathan@kernel.org \
    --cc=ndesaulniers@google.com \
    --cc=peterz@infradead.org \
    --cc=pmladek@suse.com \
    --cc=puranjay@kernel.org \
    --cc=song@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®