]> 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)
commit71a5b9d1680eb58c7242a229ceca697f1d252926
tree5a74a240467e3e89ecba483f2b0cff5c813ac29e
parent7ba40f10678f29cff760fb3654df24fed3d1e804
s390/ftrace: verify opcode before applying patch

commit ae67da61ee63 ("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