Re: [PATCH] bug: Use normal relative pointers in 'struct bug_entry'

From: Catalin Marinas
Date: Tue May 10 2022 - 06:38:31 EST


On Thu, May 05, 2022 at 06:09:45PM -0700, Josh Poimboeuf wrote:
> With CONFIG_GENERIC_BUG_RELATIVE_POINTERS, the addr/file relative
> pointers are calculated weirdly: based on the beginning of the bug_entry
> struct address, rather than their respective pointer addresses.
>
> Make the relative pointers less surprising to both humans and tools by
> calculating them the normal way.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
> ---
> arch/arm64/include/asm/asm-bug.h | 4 ++--

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>