Re: [PATCH v5 1/2] module: Overwrite st_size instead of st_info

From: Miroslav Benes
Date: Thu Dec 06 2018 - 04:45:55 EST


On Tue, 4 Dec 2018, Vincent Whitchurch wrote:

> st_info is currently overwritten after relocation and used to store the
> elf_type(). However, we're going to need it fix kallsyms on ARM's
> Thumb-2 kernels, so preserve st_info and overwrite the st_size field
> instead. st_size is neither used by the module core nor by any
> architecture.
>
> Reviewed-by: Dave Martin <Dave.Martin@xxxxxxx>
> Signed-off-by: Vincent Whitchurch <vincent.whitchurch@xxxxxxxx>

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>

M