[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220802105230.43bb6079@gandalf.local.home>
Date: Tue, 2 Aug 2022 10:52:30 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: "Masami Hiramatsu (Google)" <mhiramat@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...nel.org>, bpf <bpf@...r.kernel.org>,
Kernel Team <kernel-team@...com>, linux-kernel@...r.kernel.org,
Andy Lutomirski <luto@...nel.org>,
Daniel Müller <deso@...teo.net>
Subject: Re: [PATCH] x86/kprobes: Fix to update kcb status flag after
singlestepping
On Tue, 2 Aug 2022 15:04:16 +0900
"Masami Hiramatsu (Google)" <mhiramat@...nel.org> wrote:
> From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
>
> Fix kprobes to update kcb (kprobes control block) status flag to
> KPROBE_HIT_SSDONE even if the kp->post_handler is not set.
> This may cause a kernel panic if another int3 user runs right
> after kprobes because kprobe_int3_handler() misunderstands the
> int3 is kprobe's single stepping int3.
>
> Fixes: 6256e668b7af ("x86/kprobes: Use int3 instead of debug trap for single-step")
> Reported-by: Daniel Müller <deso@...teo.net>
> Tested-by: Daniel Müller <deso@...teo.net>
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@...nel.org>
> Cc: stable@...r.kernel.org
> Link: https://lore.kernel.org/all/20220727210136.jjgc3lpqeq42yr3m@muellerd-fedora-PC2BDTX9
> ---
Acked-by: Steven Rostedt (Google) <rostedt@...dmis.org>
I guess this will go through the tip tree?
-- Steve
Powered by blists - more mailing lists