]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1912abdf09688f2fb5d6a1124ac75a29fe804903
tree75de123db1e0deecaa0743c5dcd17bd6db81f261
parent40606294b4fab2acaaa74680f56a18963ba5b926
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