Re: [PATCH v3 1/3] module: Prepare for addition of new ro_after_init sections

From: Miroslav Benes
Date: Thu Apr 11 2019 - 04:32:28 EST


On Wed, 10 Apr 2019, Joel Fernandes (Google) wrote:

> For the purposes of hardening modules by adding sections to
> ro_after_init sections, prepare for addition of new ro_after_init
> entries which we do in future patches. Create a table to which new
> entries could be added later. This makes it less error prone and reduce
> code duplication.
>
> Cc: paulmck@xxxxxxxxxxxxxxxxxx
> Cc: rostedt@xxxxxxxxxxx
> Cc: mathieu.desnoyers@xxxxxxxxxxxx
> Cc: rcu@xxxxxxxxxxxxxxx
> Cc: kernel-hardening@xxxxxxxxxxxxxxxxxx
> Cc: kernel-team@xxxxxxxxxxx
> Suggested-by: keescook@xxxxxxxxxxxx
> Reviewed-by: keescook@xxxxxxxxxxxx
> Acked-by: rostedt@xxxxxxxxxxx
> Signed-off-by: Joel Fernandes (Google) <joel@xxxxxxxxxxxxxxxxx>

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>

M