public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "nsz at gcc dot gnu.org" <sourceware-bugzilla@sourceware.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 [thread overview] Message-ID: <bug-26926-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=26926 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 /bin/busybox VmFlags: rd ex mr mw me dw bt fffff7d80000-fffff7edf000 r-xp 00000000 00:14 10759514 /lib64/libc-2.32.9000.so VmFlags: rd ex mr mw me fffff7ef7000-fffff7f0a000 r-xp 00000000 00:14 10759538 /lib64/libresolv-2.32.9000.so VmFlags: rd ex mr mw me fffff7f1e000-fffff7fb9000 r-xp 00000000 00:14 10759520 /lib64/libm-2.32.9000.so VmFlags: rd ex mr mw me fffff7fca000-fffff7fed000 r-xp 00000000 00:14 10759508 /lib64/ld-2.32.9000.so VmFlags: rd ex mr mw me dw bt fffff7ffc000-fffff7ffd000 r-xp 00000000 00:00 0 [vdso] VmFlags: rd ex mr mw me de bt -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2020-11-20 11:28 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-11-20 11:28 nsz at gcc dot gnu.org [this message] 2020-12-01 12:15 ` [Bug dynamic-link/26926] " nsz at gcc dot gnu.org 2020-12-11 15:19 ` cvs-commit at gcc dot gnu.org 2020-12-11 15:54 ` nsz at gcc dot gnu.org 2021-01-21 10:43 ` cvs-commit at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-26926-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).