]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/ftrace: Use get/copy_from_kernel_nofault consistently
authorVasily Gorbik <gor@linux.ibm.com>
Wed, 28 Aug 2024 17:06:58 +0000 (19:06 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 29 Aug 2024 20:56:34 +0000 (22:56 +0200)
commit5200614080cd7a0fca7424b711cab503dfe6bdca
tree6364f04eb84a89fad8330075d605710c189faa88
parentefd9cd019e95d399e27be8dfbfc1df91517c0813
s390/ftrace: Use get/copy_from_kernel_nofault consistently

Use get/copy_from_kernel_nofault to access the kernel text consistently.
Replace memcmp() in ftrace_init_nop() to ensure that in case of
inconsistencies in the 'mcount' table, the kernel reports a failure
instead of potentially crashing.

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