diff options
author | Stephen Boyd <swboyd@chromium.org> | 2020-08-15 02:40:27 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2020-09-24 21:56:25 +0200 |
commit | f9e62f318fd706a54b7ce9b28e5c7e49bbde8788 (patch) | |
tree | 6c94a6e2e3fae032ac087c0a5857fe3c81cc295d /kernel/rcu/update.c | |
parent | debugobjects: Allow debug_obj_descr to be const (diff) | |
download | linux-f9e62f318fd706a54b7ce9b28e5c7e49bbde8788.tar.xz linux-f9e62f318fd706a54b7ce9b28e5c7e49bbde8788.zip |
treewide: Make all debug_obj_descriptors const
This should make it harder for the kernel to corrupt the debug object
descriptor, used to call functions to fixup state and track debug objects,
by moving the structure to read-only memory.
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20200815004027.2046113-3-swboyd@chromium.org
Diffstat (limited to 'kernel/rcu/update.c')
-rw-r--r-- | kernel/rcu/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/update.c b/kernel/rcu/update.c index 2de49b5d8dd2..3e0f4bcb558f 100644 --- a/kernel/rcu/update.c +++ b/kernel/rcu/update.c @@ -469,7 +469,7 @@ void destroy_rcu_head_on_stack(struct rcu_head *head) } EXPORT_SYMBOL_GPL(destroy_rcu_head_on_stack); -struct debug_obj_descr rcuhead_debug_descr = { +const struct debug_obj_descr rcuhead_debug_descr = { .name = "rcu_head", .is_static_object = rcuhead_is_static_object, }; |