Re: [PATCH v2 19/53] objtool/klp: Fix pointer comparisons for rodata objects

Miroslav Benes <[email protected]>
Newsgroups org.kernel.vger.live-patching,org.kernel.vger.linux-kernel
Message-ID <177797425477.9921.11351979996126617832.b4-review@b4>
On Thu, 30 Apr 2026 21:08:07 -0700, Josh Poimboeuf <[email protected]> wrote:
> klp-diff treats all rodata as uncorrelated, so any reference to it uses
> a duplicated copy rather than using a KLP reloc.
> 
> For the contents of the data itself, a duplicated copy is fine.
> However, pointer comparisons (e.g., f->f_op == &foo_ops) are broken.
> 
> Fix it by correlating non-anonymous rodata objects.
> 
> [...]

Reviewed-by: Miroslav Benes <[email protected]>

-- 
Miroslav
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.