From: Borislav Petkov <bp@suse.de>
To: Can Sun <cansun@arista.com>
Cc: Kevin Mitchell <kevmitch@arista.com>,
Ivan Delalande <colona@arista.com>,
weidonghui <weidonghui@allwinnertech.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] scripts/decodecode: add the ability to find code sequence
Date: Fri, 5 Aug 2022 11:42:03 +0200 [thread overview]
Message-ID: <Yuzl64bME7GUWo10@zn.tnic> (raw)
In-Reply-To: <20220804214616.71419-1-cansun@arista.com>
On Thu, Aug 04, 2022 at 04:46:16PM -0500, Can Sun wrote:
> It adds a tool to search code sequence from vmlinux. If additional
> parameters (vmlinux and kernel build path) are provided to decodecode
> command, it will try to search the code sequence in the binary, and
> provide a code block surrounding the target.
The use case being?
objdump -d vmlinux and searching for the rIP is too much typing?
Besides, with the kernel being more and more runtime-patched and
rewritten, the live code differs more and more from the actual compiled
opcode bytes in vmlinux, as you noticed yourself with restoredcode
below.
So maybe I'm missing some important use case but right now this looks
pointless to me.
Thx.
--
Regards/Gruss,
Boris.
SUSE Software Solutions Germany GmbH
GF: Ivo Totev, Andrew Myers, Andrew McDonald, Martje Boudien Moerman
(HRB 36809, AG Nürnberg)
prev parent reply other threads:[~2022-08-05 9:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-04 21:46 Can Sun
2022-08-05 9:42 ` Borislav Petkov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yuzl64bME7GUWo10@zn.tnic \
--to=bp@suse.de \
--cc=akpm@linux-foundation.org \
--cc=cansun@arista.com \
--cc=colona@arista.com \
--cc=kevmitch@arista.com \
--cc=linux-kernel@vger.kernel.org \
--cc=weidonghui@allwinnertech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®