public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/26926] New: aarch64: library dependencies are not bti protected
@ 2020-11-20 11:28 nsz at gcc dot gnu.org
  2020-12-01 12:15 ` [Bug dynamic-link/26926] " nsz at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: nsz at gcc dot gnu.org @ 2020-11-20 11:28 UTC (permalink / raw)
  To: glibc-bugs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-01-21 10:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-20 11:28 [Bug dynamic-link/26926] New: aarch64: library dependencies are not bti protected nsz at gcc dot gnu.org
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

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).