Re: [PATCH v2] tracefs: Annotate tracefs_ops with __ro_after_init

From: Kees Cook
Date: Mon Jul 30 2018 - 20:25:12 EST

On Wed, Jul 25, 2018 at 11:00 AM, Kees Cook <keescook@xxxxxxxxxxxx> wrote:
> On Wed, Jul 25, 2018 at 10:19 AM, Zubin Mithra <zsm@xxxxxxxxxxxx> wrote:
>> tracefs_ops is initialized inside tracefs_create_instance_dir and not
>> modified after. tracefs_create_instance_dir allows for initialization
>> only once, and is called from create_trace_instances(marked __init),
>> which is called from tracer_init_tracefs(marked __init). Also, mark
>> tracefs_create_instance_dir as __init.
>> Signed-off-by: Zubin Mithra <zsm@xxxxxxxxxxxx>
> Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

Steve, do you have a tree for this or should we rope akpm in? :)


Kees Cook
Pixel Security