[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28307] New: nm-new: SEGV caused by a WRITE memory access
From: |
shaohua.li at inf dot ethz.ch |
Subject: |
[Bug binutils/28307] New: nm-new: SEGV caused by a WRITE memory access |
Date: |
Fri, 03 Sep 2021 19:48:38 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28307
Bug ID: 28307
Summary: nm-new: SEGV caused by a WRITE memory access
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 13651
--> https://sourceware.org/bugzilla/attachment.cgi?id=13651&action=edit
poc
Hi there,
I crashed `nm-new -l` with a fuzzer.
- Compiler: clang12
- Platform: Ubuntu 18.04.5 LTS, x86_64
- Reproduce: run `nm-new -l poc`
AddressSanitizer report:
==2960==ERROR: AddressSanitizer: SEGV on unknown address 0x60b0000303e0 (pc
0x000000504f40 bp 0x7ffebd457c30 sp 0x7ffebd457b90 T0)
==2960==The signal is caused by a WRITE memory access.
#0 0x504f40 in bfd_putl64 /binutils_latest/repo/bfd/libbfd.c:896:11
#1 0xaa3f3f in ppc64_elf_toc64_reloc
/binutils_latest/repo/bfd/elf64-ppc.c:1663:3
#2 0x154b6b7 in bfd_perform_relocation
/binutils_latest/repo/bfd/reloc.c:711:14
#3 0x154f66f in bfd_generic_get_relocated_section_contents
/binutils_latest/repo/bfd/reloc.c:8463:10
#4 0x4eaa6f in bfd_get_relocated_section_contents
/binutils_latest/repo/bfd/bfd.c:2166:10
#5 0x1551708 in bfd_simple_get_relocated_section_contents
/binutils_latest/repo/bfd/simple.c:298:14
#6 0x6aa68c in read_section /binutils_latest/repo/bfd/./dwarf2.c:582:7
#7 0x6a7327 in _bfd_dwarf2_slurp_debug_info
/binutils_latest/repo/bfd/./dwarf2.c:4737:13
#8 0x6ab8b1 in _bfd_dwarf2_find_nearest_line
/binutils_latest/repo/bfd/./dwarf2.c:4985:9
#9 0x5d0226 in _bfd_elf_find_line /binutils_latest/repo/bfd/elf.c:9234:10
#10 0x4d1ba0 in print_symbol /binutils_latest/repo/binutils/nm.c:1071:9
#11 0x4ceaeb in print_symbols /binutils_latest/repo/binutils/nm.c:1152:7
#12 0x4cd23c in display_rel_file /binutils_latest/repo/binutils/nm.c:1279:5
#13 0x4c97dd in display_file /binutils_latest/repo/binutils/nm.c:1446:7
#14 0x4c90db in main /binutils_latest/repo/binutils/nm.c:1965:12
#15 0x7f25b583f0b2 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#16 0x41c55d in _start (/out_bin/nm-new+0x41c55d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /binutils_latest/repo/bfd/libbfd.c:896:11 in
bfd_putl64
==2960==ABORTING
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28307] New: nm-new: SEGV caused by a WRITE memory access,
shaohua.li at inf dot ethz.ch <=