[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28517] New: objdump SEGV
From: |
shaohua.li at inf dot ethz.ch |
Subject: |
[Bug binutils/28517] New: objdump SEGV |
Date: |
Fri, 29 Oct 2021 14:46:17 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28517
Bug ID: 28517
Summary: objdump SEGV
Product: binutils
Version: 2.38 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: shaohua.li at inf dot ethz.ch
Target Milestone: ---
Created attachment 13744
--> https://sourceware.org/bugzilla/attachment.cgi?id=13744&action=edit
poc_segv
Hi there,
I found a SEGV on `objdump -S` with a fuzzer.
- Compiler:
- Platform: Ubuntu 20.04.3 LTS, x86_64
- Reproduce: run `objdump -S poc_segv`
AddressSanitize report:
==242==ERROR: AddressSanitizer: SEGV on unknown address 0x60e000e60131 (pc
0x000000ea089a bp 0x0000043d1158 sp 0x7ffd7d0eb440 T0)
==242==The signal is caused by a READ memory access.
#0 0xea089a in bfd_getl16 /objdump/repo/clang13-O3/bfd/libbfd.c:633:11
#1 0x185d802 in _bfd_mips_elf_reloc_unshuffle
/objdump/repo/clang13-O3/bfd/elfxx-mips.c:2359:11
#2 0x1663743 in _bfd_mips_elf32_gprel16_reloc
/objdump/repo/clang13-O3/bfd/elf32-mips.c:1795:3
#3 0x30a4210 in bfd_perform_relocation
/objdump/repo/clang13-O3/bfd/reloc.c:711:14
#4 0x191eee7 in _bfd_elf_mips_get_relocated_section_contents
/objdump/repo/clang13-O3/bfd/elfxx-mips.c:13362:10
#5 0xeb5c91 in bfd_simple_get_relocated_section_contents
/objdump/repo/clang13-O3/bfd/simple.c:298:14
#6 0x120d6a5 in read_section /objdump/repo/clang13-O3/bfd/./dwarf2.c:582:7
#7 0x1205f63 in _bfd_dwarf2_slurp_debug_info
/objdump/repo/clang13-O3/bfd/./dwarf2.c:4737:13
#8 0x121291d in _bfd_dwarf2_find_nearest_line
/objdump/repo/clang13-O3/bfd/./dwarf2.c:4985:9
#9 0x104536c in _bfd_elf_find_nearest_line
/objdump/repo/clang13-O3/bfd/elf.c:9192:7
#10 0x4f616b in show_line
/objdump/repo/clang13-O3/binutils/./objdump.c:1784:9
#11 0x4f616b in disassemble_bytes
/objdump/repo/clang13-O3/binutils/./objdump.c:2770:6
#12 0x4ec60a in disassemble_section
/objdump/repo/clang13-O3/binutils/./objdump.c:3455:4
#13 0xeb382b in bfd_map_over_sections
/objdump/repo/clang13-O3/bfd/section.c:1383:5
#14 0x4d5c97 in disassemble_data
/objdump/repo/clang13-O3/binutils/./objdump.c:3599:3
#15 0x4d5c97 in dump_bfd
/objdump/repo/clang13-O3/binutils/./objdump.c:5010:5
#16 0x4d09c2 in display_object_bfd
/objdump/repo/clang13-O3/binutils/./objdump.c
#17 0x4d09c2 in display_any_bfd
/objdump/repo/clang13-O3/binutils/./objdump.c:5162:5
#18 0x4cede5 in display_file
/objdump/repo/clang13-O3/binutils/./objdump.c:5183:3
#19 0x4cede5 in main /objdump/repo/clang13-O3/binutils/./objdump.c:5533:6
#20 0x7f91b92ea0b2 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#21 0x41d5ad in _start (/objdump/repo/clang13-O3/binutils/objdump+0x41d5ad)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /objdump/repo/clang13-O3/bfd/libbfd.c:633:11 in
bfd_getl16
==242==ABORTING
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug binutils/28517] New: objdump SEGV,
shaohua.li at inf dot ethz.ch <=