]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Bug 397012 - glibc ld.so uses arch_prctl on i386.
authorMark Wielaard <mark@klomp.org>
Tue, 31 Jul 2018 13:32:43 +0000 (15:32 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 6 Aug 2018 12:58:01 +0000 (14:58 +0200)
commit2eb2df759f51b15702934dee108f4c20c3db5fef
tree5fcaa9382dd19f9a8ddf9c4c891f973374239472
parente527a93204bc51ff16663fe0680c5a556912c128
Bug 397012 - glibc ld.so uses arch_prctl on i386.

arch_prctl used to be amd64 only. But since linux 4.12 it is also
implemented for i386. And since glibc 2.28 ld.so will use it to see
if the cpu/kernel provides CET support.

To prevent seeing:

WARNING: unhandled x86-linux syscall: 384
You may be able to write your own handler.
Read the file README_MISSING_SYSCALL_OR_IOCTL.
Nevertheless we consider this a bug.  Please report
it at http://valgrind.org/support/bug_reports.html.

on every program run under valgrind just make it explicitly
not implemented (ENOSYS). This is fine for the glibc usage.
It just indicates there is no CET support.
NEWS
coregrind/m_syswrap/syswrap-x86-linux.c