bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28055] New: Segment fault on nm-new -l


From: shaohua.li at inf dot ethz.ch
Subject: [Bug binutils/28055] New: Segment fault on nm-new -l
Date: Sun, 04 Jul 2021 22:13:03 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28055

            Bug ID: 28055
           Summary: Segment fault on nm-new -l
           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 13536
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13536&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:

==8695==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc
0x00000097d395 bp 0x000000000008 sp 0x7ffd8e175e40 T0)
==8695==The signal is caused by a READ memory access.
==8695==Hint: address points to the zero page.
    #0 0x97d395 in bpf_elf_generic_reloc
//shared/targets/nm-new/repo/bfd/elf64-bpf.c:651:7
    #1 0x10414f8 in bfd_perform_relocation
//shared/targets/nm-new/repo/bfd/reloc.c:711:14
    #2 0x1044646 in bfd_generic_get_relocated_section_contents
//shared/targets/nm-new/repo/bfd/reloc.c:8463:10
    #3 0x1045a35 in bfd_simple_get_relocated_section_contents
//shared/targets/nm-new/repo/bfd/simple.c:298:14
    #4 0x62f126 in read_section
//shared/targets/nm-new/repo/bfd/./dwarf2.c:582:7
    #5 0x62c867 in _bfd_dwarf2_slurp_debug_info
//shared/targets/nm-new/repo/bfd/./dwarf2.c:4740:13
    #6 0x635cdd in _bfd_dwarf2_find_nearest_line
//shared/targets/nm-new/repo/bfd/./dwarf2.c:4988:9
    #7 0x59692a in _bfd_elf_find_line
//shared/targets/nm-new/repo/bfd/elf.c:9241:10
    #8 0x4cea5a in print_symbol
//shared/targets/nm-new/repo/binutils/nm.c:1071:9
    #9 0x4ccfed in print_symbols
//shared/targets/nm-new/repo/binutils/nm.c:1152:7
    #10 0x4ccfed in display_rel_file
//shared/targets/nm-new/repo/binutils/nm.c:1279:5
    #11 0x4c94ea in display_file
//shared/targets/nm-new/repo/binutils/nm.c:1446:7
    #12 0x4c8add in main //shared/targets/nm-new/repo/binutils/nm.c:1965:12
    #13 0x7f07677b5bf6 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x21bf6)
    #14 0x41c149 in _start (/out_bin/nm-new+0x41c149)

AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV
//shared/targets/nm-new/repo/bfd/elf64-bpf.c:651:7 in bpf_elf_generic_reloc
==8695==ABORTING

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]