On Tue, Jan 1, 2013 at 2:52 PM, Philip Guenther <[email protected]> wrote:
> On Tue, Jan 1, 2013 at 10:52 AM, mxb <[email protected]> wrote:
>> objdump gets segfault the dumping kernel.
>> Any ideas?
>
> Works for me:
>
> $ objdump -d /bsd > o

Wrong option: it indeed segv's with the -D option.  The problem is
that the disassembler uses a fixed-size buffer for the operation
prefixes ("lock", "repz", etc).  When disassembling some non-text
section there's a sufficiently long string of bytes that would be
operation prefixes if it was executable such that it's overrunning the
buffer.

<shrug>
"Doctor, it hurts when I do this..."


Philip Guenther

Reply via email to