]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ftrace: verify opcode before applying patch
authorSven Schnelle <svens@linux.ibm.com>
Sun, 23 Jan 2022 19:20:09 +0000 (20:20 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Sun, 6 Feb 2022 22:31:29 +0000 (23:31 +0100)
commitf54da3f6bbeed5be96ff04b036c11ffada66d9d6
tree5a74a240467e3e89ecba483f2b0cff5c813ac29e
parentf8b7f4b72b3699c874b5470c11f8287d46705fdf
s390/ftrace: verify opcode before applying patch

commit e099573c11e6 ("scripts: ftrace - move the
sort-processing in ftrace_init") had the unexpected
side effect that wrong code locations were patched.
To prevent this from happening again, verify the
opcode before patching it.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/ftrace.c