]> git.baikalelectronics.ru Git - kernel.git/commit
livepatch: RCU protect struct klp_func all the time when used in klp_ftrace_handler()
authorPetr Mladek <pmladek@suse.cz>
Wed, 18 Feb 2015 17:02:13 +0000 (18:02 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 22 Feb 2015 22:02:56 +0000 (23:02 +0100)
commitb803a12b09bce9f40a678ee433ec983117aeb838
tree1e7f1cc23c34e21a0238926df348a1d22f4f0cca
parentfcf4a38db2455112eb3633ebc7ddf1a0ddc78f52
livepatch: RCU protect struct klp_func all the time when used in klp_ftrace_handler()

func->new_func has been accessed after rcu_read_unlock() in klp_ftrace_handler()
and therefore the access was not protected.

Signed-off-by: Petr Mladek <pmladek@suse.cz>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
kernel/livepatch/core.c