lkml.org 
[lkml]   [2019]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 15/16] module: Move where we mark modules RO,X
On Wed, Oct 23, 2019 at 05:16:54PM +0200, Peter Zijlstra wrote:
> @@ -157,6 +158,14 @@ static int __apply_relocate_add(Elf64_Sh
>
> val = sym->st_value + rel[i].r_addend;
>
> + /*
> + * .klp.rela.* sections should only contain module
> + * related RELAs. All core-kernel RELAs should be in
> + * normal .rela.* sections and be applied when loading
> + * the patch module itself.
> + */
> + WARN_ON_ONCE(klp && core_kernel_text(val));
> +

This isn't quite true, we also use .klp.rela sections to access
unexported vmlinux symbols.

--
Josh

\
 
 \ /
  Last update: 2019-10-23 19:16    [W:0.170 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site