From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E5BF3396D83E; Fri, 20 Nov 2020 11:28:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E5BF3396D83E From: "nsz at gcc dot gnu.org" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/26926] New: aarch64: library dependencies are not bti protected Date: Fri, 20 Nov 2020 11:28:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: 2.32 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: nsz at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Fri, 20 Nov 2020 11:28:36 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26926 Bug ID: 26926 Summary: aarch64: library dependencies are not bti protected Product: glibc Version: 2.32 Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: nsz at gcc dot gnu.org Target Milestone: --- dl_open_check is only called on dlopened libraries not on theirs dependencies, same for rtld_main_check: dependencies are not checked. the aarch64 backend *_check adds bti protection but it only considers the passed linkmap, not its dependencies, so bti protection is missing on those. the bt VmFlag in /proc/self/smaps indicates bti protection, on a bti enabled system it should be on all exec pages, but i see: cat /proc/self/smaps |grep -E '(r-xp|VmFlags.*ex)' 00400000-004ff000 r-xp 00000000 00:14 10783380=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 /bin/busybox VmFlags: rd ex mr mw me dw bt fffff7d80000-fffff7edf000 r-xp 00000000 00:14 10759514=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 /lib64/libc-2.32.9000.so VmFlags: rd ex mr mw me fffff7ef7000-fffff7f0a000 r-xp 00000000 00:14 10759538=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 /lib64/libresolv-2.32.9000.so VmFlags: rd ex mr mw me fffff7f1e000-fffff7fb9000 r-xp 00000000 00:14 10759520=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 /lib64/libm-2.32.9000.so VmFlags: rd ex mr mw me fffff7fca000-fffff7fed000 r-xp 00000000 00:14 10759508=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20 /lib64/ld-2.32.9000.so VmFlags: rd ex mr mw me dw bt fffff7ffc000-fffff7ffd000 r-xp 00000000 00:00 0 [v= dso] VmFlags: rd ex mr mw me de bt --=20 You are receiving this mail because: You are on the CC list for the bug.=