From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 665BA385E019; Fri, 25 Mar 2022 11:17:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 665BA385E019 From: "evvers at ya dot ru" To: elfutils-devel@sourceware.org Subject: [Bug libelf/29000] Conditional jump or move depends on uninitialised value in elf_compress_gnu Date: Fri, 25 Mar 2022 11:17:52 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libelf X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: evvers at ya dot ru X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2022 11:17:52 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29000 --- Comment #1 from Evgeny Vereshchagin --- Created attachment 14036 --> https://sourceware.org/bugzilla/attachment.cgi?id=3D14036&action=3Ded= it file triggering issue in fuzz-libdwfl The same issue was found by fuzz-libdwfl. ``` make -C tests fuzz-libdwfl LD_LIBRARY_PATH=3D"$(pwd)/libelf;$(pwd)/libdw" DEBUGINFOD_URLS=3D valgrind --track-origins=3Dyes ./tests/fuzz-libdwfl ../clusterfuzz-testcase-minimized-fuzz-libdwfl-4725021634854912 ``` ``` Running: ../clusterfuzz-testcase-minimized-fuzz-libdwfl-4725021634854912 =3D=3D65641=3D=3D Conditional jump or move depends on uninitialised value(s) =3D=3D65641=3D=3D at 0x4868734: elf_compress_gnu (elf_compress_gnu.c:155) =3D=3D65641=3D=3D by 0x489EF0E: check_section (dwarf_begin_elf.c:210) =3D=3D65641=3D=3D by 0x489F6D2: global_read (dwarf_begin_elf.c:409) =3D=3D65641=3D=3D by 0x489F6D2: dwarf_begin_elf (dwarf_begin_elf.c:560) =3D=3D65641=3D=3D by 0x48C033C: load_dw (dwfl_module_getdwarf.c:1342) =3D=3D65641=3D=3D by 0x48C0500: find_dw (dwfl_module_getdwarf.c:1392) =3D=3D65641=3D=3D by 0x48C0500: dwfl_module_getdwarf (dwfl_module_getdwa= rf.c:1447) =3D=3D65641=3D=3D by 0x401512: LLVMFuzzerTestOneInput (fuzz-libdwfl.c:45) =3D=3D65641=3D=3D by 0x401248: main (fuzz-main.c:33) =3D=3D65641=3D=3D Uninitialised value was created by a heap allocation =3D=3D65641=3D=3D at 0x484486F: malloc (vg_replace_malloc.c:381) =3D=3D65641=3D=3D by 0x48606C6: convert_data (elf_getdata.c:168) =3D=3D65641=3D=3D by 0x48606C6: __libelf_set_data_list_rdlock (elf_getda= ta.c:457) =3D=3D65641=3D=3D by 0x48608C7: __elf_getdata_rdlock (elf_getdata.c:564) =3D=3D65641=3D=3D by 0x486870A: elf_compress_gnu (elf_compress_gnu.c:150) =3D=3D65641=3D=3D by 0x489EF0E: check_section (dwarf_begin_elf.c:210) =3D=3D65641=3D=3D by 0x489F6D2: global_read (dwarf_begin_elf.c:409) =3D=3D65641=3D=3D by 0x489F6D2: dwarf_begin_elf (dwarf_begin_elf.c:560) =3D=3D65641=3D=3D by 0x48C033C: load_dw (dwfl_module_getdwarf.c:1342) =3D=3D65641=3D=3D by 0x48C0500: find_dw (dwfl_module_getdwarf.c:1392) =3D=3D65641=3D=3D by 0x48C0500: dwfl_module_getdwarf (dwfl_module_getdwa= rf.c:1447) =3D=3D65641=3D=3D by 0x401512: LLVMFuzzerTestOneInput (fuzz-libdwfl.c:45) =3D=3D65641=3D=3D by 0x401248: main (fuzz-main.c:33) =3D=3D65641=3D=3D Done: ../clusterfuzz-testcase-minimized-fuzz-libdwfl-4725021634854912: (= 1087 bytes) ``` --=20 You are receiving this mail because: You are on the CC list for the bug.=