Re: [PATCH v2 7/8] jump_label: annotate entries that operate on __init code earlier

2018-07-02 Thread Kees Cook
On Mon, Jul 2, 2018 at 11:11 AM, Ard Biesheuvel wrote: > Jump table entries are mostly read-only, with the exception of the > init and module loader code that defuses entries that point into init > code when the code being referred to is freed. > > For robustness, it would be better to move these

[PATCH v2 7/8] jump_label: annotate entries that operate on __init code earlier

2018-07-02 Thread Ard Biesheuvel
Jump table entries are mostly read-only, with the exception of the init and module loader code that defuses entries that point into init code when the code being referred to is freed. For robustness, it would be better to move these entries into the ro_after_init section, but clearing the 'code' m