lkml.org 
[lkml]   [2022]   [Sep]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] x86/kprobes: Fix kprobes instruction boudary check with CONFIG_RETHUNK
On Wed, Sep 07, 2022 at 09:55:21AM +0900, Masami Hiramatsu (Google) wrote:

> if (!kallsyms_lookup_size_offset(paddr, NULL, &offset))
> return 0;
>

One more thing:

https://lkml.kernel.org/r/20220902130951.853460809@infradead.org

can result in negative offsets. The expression:

'paddr - offset'

will still get you to +0, but I might not have fully considered things
when I wrote that patch.

\
 
 \ /
  Last update: 2022-09-07 14:57    [W:0.307 / U:0.552 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site