]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: kprobes: Remove unneeded RODATA check
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 12 Feb 2019 15:43:51 +0000 (00:43 +0900)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 19 Mar 2019 12:43:09 +0000 (12:43 +0000)
commit3cc80db55fdc4b3953ded1575d16b56bd25c3ca9
tree6da613aaa8218efaafd775fb358c99b77cc271cf
parent56cc2fccd16beeb1291d4bb2c071926b06ffb47f
arm64: kprobes: Remove unneeded RODATA check

Remove unneeded RODATA check from arch_prepare_kprobe().

Since check_kprobe_address_safe() already ensured that
the probe address is in kernel text, we don't need to
check whether the address in RODATA or not. That must
be always false.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/probes/kprobes.c