aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2015-02-28 21:24:48 +0000
committerJiri Kosina <[email protected]>2015-03-02 23:22:55 +0000
commitc064a0de1bfb07c34a3798822c7e1636eea866e8 (patch)
treed91896f9a004e5e36809262a85791d6aec85a89e /net/switchdev/switchdev.c
parentlivepatch: RCU protect struct klp_func all the time when used in klp_ftrace_h... (diff)
downloadkernel-c064a0de1bfb07c34a3798822c7e1636eea866e8.tar.gz
kernel-c064a0de1bfb07c34a3798822c7e1636eea866e8.zip
livepatch: fix RCU usage in klp_find_external_symbol()
While one must hold RCU-sched (aka. preempt_disable) for find_symbol() one must equally hold it over the use of the object returned. The moment you release the RCU-sched read lock, the object can be dead and gone. [[email protected]: change subject line to be aligned with other patches] Cc: Seth Jennings <[email protected]> Cc: Josh Poimboeuf <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Miroslav Benes <[email protected]> Cc: Petr Mladek <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: "Paul E. McKenney" <[email protected]> Cc: Rusty Russell <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Masami Hiramatsu <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Acked-by: Josh Poimboeuf <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions