mbox series

[v2,0/2] kprobes: Fix issues related to optkprobe

Message ID 20230216034247.32348-1-yangjihong1@huawei.com (mailing list archive)
Headers show
Series kprobes: Fix issues related to optkprobe | expand

Message

Yang Jihong Feb. 16, 2023, 3:42 a.m. UTC
Fixed optkprobe issues, mainly related to the x86 architecture.

Yang Jihong (2):
  x86/kprobes: Fix __recover_optprobed_insn check optimizing logic
  x86/kprobes: Fix arch_check_optimized_kprobe check within
    optimized_kprobe range

 arch/x86/kernel/kprobes/opt.c | 6 +++---
 include/linux/kprobes.h       | 2 ++
 kernel/kprobes.c              | 4 ++--
 3 files changed, 7 insertions(+), 5 deletions(-)

Comments

Masami Hiramatsu (Google) Feb. 16, 2023, 2:12 p.m. UTC | #1
On Thu, 16 Feb 2023 11:42:45 +0800
Yang Jihong <yangjihong1@huawei.com> wrote:

> Fixed optkprobe issues, mainly related to the x86 architecture.
> 
> Yang Jihong (2):
>   x86/kprobes: Fix __recover_optprobed_insn check optimizing logic
>   x86/kprobes: Fix arch_check_optimized_kprobe check within
>     optimized_kprobe range
> 
>  arch/x86/kernel/kprobes/opt.c | 6 +++---
>  include/linux/kprobes.h       | 2 ++
>  kernel/kprobes.c              | 4 ++--
>  3 files changed, 7 insertions(+), 5 deletions(-)

Thanks for updating! These look good to me! 

Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>

Thank you,


> 
> -- 
> 
> Changes since v1:
>   - Remove patch1 since there is already a fix patch.
>   - Add "cc stable" and modify comment for patch2.
>   - Use "kprobe_disarmed" instead of "kprobe_disabled" for patch3.
>   - Add fix commmit and "cc stable" for patch3.
> 
> 2.30.GIT
>