From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D81E63858C2C; Mon, 3 Jan 2022 23:42:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D81E63858C2C From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/28720] UBSan: member access within misaligned address 0x7f6e8d80f142 for type 'struct Elf32_Phdr', which requires 4 byte alignment Date: Mon, 03 Jan 2022 23:42:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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: Mon, 03 Jan 2022 23:42:21 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28720 --- Comment #7 from Mark Wielaard --- (In reply to Evgeny Vereshchagin from comment #5) > Created attachment 13875 [details] > File triggering "member access within misaligned address" Thanks. afl++ also found this (but only after 8 days...) I pushed: commit 9f70a762ab88ceebb8a48a7c9c3ce39ff7f205af Author: Mark Wielaard Date: Fri Dec 24 02:01:32 2021 +0100 libdwfl: Calculate addr to read by hand in link_map.c read_addrs. The gcc undefined sanitizer doesn't like the trick we use to calculate the (possibly) unaligned addresses to read. So calculate them by hand as unsigned char pointers. https://sourceware.org/bugzilla/show_bug.cgi?id=3D28720 Signed-off-by: Mark Wielaard Which should this particular issue. --=20 You are receiving this mail because: You are on the CC list for the bug.=