From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B61A3385022A; Thu, 9 Jun 2022 10:38:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B61A3385022A From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29235] Some tests crash in ELF_DYNAMIC_DO_RELR on powerpc64le Date: Thu, 09 Jun 2022 10:38:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: critical X-Bugzilla-Who: fweimer at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: security- 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: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jun 2022 10:38:43 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D29235 --- Comment #1 from Florian Weimer --- With hard-coded paths in tests, I get: (gdb) print where $3 =3D (Elf64_Addr *) 0x100255db8 which is in this read-only mapping: 100160000-100260000 r--p 00160000 08:03 2153963751=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 /builddir/build/BUILD/glibc-2.35.9000-583-gace9e3edbc/build-2/math/test-tgm= ath3-fma 0000000000255db8 appears in readelf -rW output, so I don't think ld.so's RE= LR implementation is at fault. It looks like page size issue, and the DT_RELR may be accidental. The system has 64K pages, but we have for the main executable: LOAD 0x160000 0x0000000000160000 0x0000000000160000 0x0f10a4 0x0f10a4 R 0x10000 LOAD 0x255db0 0x0000000000265db0 0x0000000000265db0 0x06a40c 0x06a988 RW 0x10000 [=E2=80=A6] GNU_RELRO 0x255db0 0x0000000000265db0 0x0000000000265db0 0x06a250 0x06a250 R 0x1 I'm not sure if this kind of layout is supposed to work with 64K pages. Note that as discussed elsewhere, ld.so rounds down 0x255db0 to the next multipl= e of 65,536. --=20 You are receiving this mail because: You are on the CC list for the bug.=