[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <AEF3FED8-BF58-4B9E-B36E-662A09636A70@gmail.com>
Date: Wed, 15 Feb 2023 10:07:33 +0200
From: Nadav Amit <nadav.amit@...il.com>
To: "Masami Hiramatsu (Google)" <mhiramat@...nel.org>
Cc: X86 ML <x86@...nel.org>, Borislav Petkov <bp@...en8.de>,
Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -tip v2] x86/kprobes: Remove unneeded casting from
immediate value
> On Feb 15, 2023, at 2:10 AM, Masami Hiramatsu (Google) <mhiramat@...nel.org> wrote:
>
> From: Masami Hiramatsu (Google) <mhiramat@...nel.org>
>
> Remove unneeded casting from immediate value assignments for relative
> jump offset. Since the immediate values in the 'insn' data structure are
> assigned from immediate bytes as a signed value to insn.immediate.value
> by insn_field_set(). Thus, if we need to access that value as a signed
> value (in this kprobe's case), we don't need to cast it.
> This is a kind of clean up (should not change behavior) follows Nadav's
> bugfix.
>
> Link: https://lore.kernel.org/all/20230208071708.4048-1-namit@vmware.com/
>
> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@...nel.org>
Thanks for incorporating my feedback.
Acked-by: Nadav Amit <namit@...are.com>
Powered by blists - more mailing lists