x86/jump-label: Add safety checks to jump label conversions
authorSteven Rostedt <srostedt@redhat.com>
Thu, 26 Jan 2012 23:38:07 +0000 (18:38 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 7 Aug 2013 01:43:20 +0000 (21:43 -0400)
commit9c85f3bdf400665eecf62658a9106501f6a77a13
tree75de123db1e0deecaa0743c5dcd17bd6db81f261
parent11570da1c5b1dee1dc1439159e967ee44214a78b
x86/jump-label: Add safety checks to jump label conversions

As with all modifying of kernel text, we need to be very paranoid.

When converting the jump label locations to and from nops to jumps
a check has been added to make sure what we are replacing is what we
expect, otherwise we bug.

Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Jason Baron <jbaron@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/x86/kernel/jump_label.c