public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH -tip 0/2] x86/kprobes: Fix and cleanup can_boost()
@ 2021-03-25 10:08 Masami Hiramatsu
  2021-03-25 10:08 ` [PATCH -tip 1/2] x86/kprobes: Fix to check non boostable prefixes correctly Masami Hiramatsu
  2021-03-25 10:08 ` [PATCH -tip 2/2] x86/kprobes: Fix to identify indirect jmp and others using range case Masami Hiramatsu
  0 siblings, 2 replies; 5+ messages in thread
From: Masami Hiramatsu @ 2021-03-25 10:08 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar
  Cc: Thomas Gleixner, Ingo Molnar, Andy Lutomirski, Borislav Petkov,
	x86, H . Peter Anvin, Masami Hiramatsu, linux-kernel,
	kernel-janitors, Colin Ian King, dan.carpenter,
	Muhammad Usama Anjum

Hi,

Here are 2 bugfixes for the x86/kprobes, [1/2] fixes an old bug which tries to find
instruction prefixes in insn->opcode (which should be never found) and misusing
insn->attr. [2/2] fixes a new bug found by Coverity in the recent commit 6256e668b7
("x86/kprobes: Use int3 instead of debug trap for single-step").
To fix the 2nd one, [2/2] also cleanup the switch-case with range cases, because
that is much more clear what is not boostable.

Thank you,

---

Masami Hiramatsu (2):
      x86/kprobes: Fix to check non boostable prefixes correctly
      x86/kprobes: Fix to identify indirect jmp and others using range case


 arch/x86/kernel/kprobes/core.c |   57 +++++++++++++++++++++-------------------
 1 file changed, 30 insertions(+), 27 deletions(-)

--
Masami Hiramatsu (Linaro) <mhiramat@kernel.org>

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-25 11:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-25 10:08 [PATCH -tip 0/2] x86/kprobes: Fix and cleanup can_boost() Masami Hiramatsu
2021-03-25 10:08 ` [PATCH -tip 1/2] x86/kprobes: Fix to check non boostable prefixes correctly Masami Hiramatsu
2021-03-25 11:08   ` [tip: x86/core] " tip-bot2 for Masami Hiramatsu
2021-03-25 10:08 ` [PATCH -tip 2/2] x86/kprobes: Fix to identify indirect jmp and others using range case Masami Hiramatsu
2021-03-25 11:08   ` [tip: x86/core] " tip-bot2 for Masami Hiramatsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox