1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:38:12 +00:00
serenity/Userland/Libraries/LibC/sys
Itamar a3360bcee8 LibC+DynamicLoader: Store the auxiliary vector address at startup
Previously, getauxval() got the address of the auxiliary vector by
traversing to the end of the `environ` pointer.

The assumption that the auxiliary vector comes after the environment
array is true at program startup, however the environment array may
be re-allocated and change its address during runtime which would cause
getauxval() to work with an incorrect auxiliary vector address.

To fix this, we now get the address of the auxiliary vector once in
__libc_init and store it in a libc-internal pointer which is then used
by getauxval().

Fixes #10087.
2021-09-20 18:32:09 +02:00
..
arch HackStudio: Enable building HackStudio on x86_64 2021-08-02 00:57:06 +02:00
cdefs.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
file.cpp Everywhere: Use my cool new @serenityos.org email address 2021-09-01 11:37:25 +04:30
file.h LibC: Implement flock(2) using fcntl's F_SETLK 2021-07-20 17:44:30 +04:30
internals.h LibC+DynamicLoader: Store the auxiliary vector address at startup 2021-09-20 18:32:09 +02:00
ioctl.h Kernel+LibC: Implement FIONREAD ioctl 2021-08-22 10:29:06 +02:00
ioctl_numbers.h Kernel: Implement ioctl for the SB16 to change sample rate 2021-08-27 23:35:27 +04:30
kcov.h Kernel: Add option to build with coverage instrumentation and KCOV 2021-07-26 17:40:28 +02:00
mman.cpp LibC: Fix negation overflow UB in sys/mman.cpp 2021-08-08 10:55:36 +02:00
mman.h Kernel+LibC: Share definitions for sys/mman.h 2021-08-14 19:58:11 +02:00
param.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
poll.h LibC: Add <sys/poll.h> as an alias for <poll.h> 2021-08-22 10:29:06 +02:00
prctl.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
prctl.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
prctl_numbers.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
ptrace.cpp Everywhere: Remove empty line after function body opening curly brace 2021-04-25 20:20:00 +02:00
ptrace.h Kernel+LibC: Share definitions for sys/ptrace.h 2021-08-14 19:58:11 +02:00
resource.h LibC: Define RLIM_NLIMITS constant 2021-09-10 00:00:03 +02:00
select.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
select.h LibC: Make sure the definition for struct timeval is available 2021-06-16 20:08:13 +02:00
socket.cpp Kernel+LibC: Pack SC_setsockopt_params struct tighter 2021-09-16 17:17:13 +02:00
socket.h Kernel+LibC: Share definitions for sys/socket.h and sys/un.h 2021-08-14 19:58:11 +02:00
stat.h Kernel+LibC: Share definitions for time.h and sys/stat.h 2021-08-14 19:58:11 +02:00
statvfs.cpp LibC: Add functions for the new statvfs syscalls 2021-05-19 21:33:29 +02:00
statvfs.h Kernel+LibC: Share definitions for sys/statvfs.h 2021-08-14 19:58:11 +02:00
sysmacros.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
time.h Kernel+LibC: Share definitions for sys/time.h 2021-08-14 19:58:11 +02:00
times.h Kernel+LibC: Share definitions for sys/times.h 2021-08-14 19:58:11 +02:00
ttydefaults.h LibC: Use \010 for erasing instead of \0177 2021-05-23 19:32:31 +02:00
types.h Kernel+LibC: Share definitions in fcntl.h and sys/types.h 2021-08-14 19:58:11 +02:00
uio.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
uio.h Kernel+LibC: Share definitions for sys/uio.h 2021-08-14 19:58:11 +02:00
un.h Kernel+LibC: Share definitions for sys/socket.h and sys/un.h 2021-08-14 19:58:11 +02:00
utsname.h Kernel+LibC: Share definitions for utsname.h 2021-08-14 19:58:11 +02:00
wait.cpp LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
wait.h Kernel+LibC: Share definitions for sys/wait.h 2021-08-14 19:58:11 +02:00
xattr.cpp LibC: Add stubs for several functions in xattr.h 2021-08-14 22:32:00 +01:00
xattr.h LibC: Add stubs for several functions in xattr.h 2021-08-14 22:32:00 +01:00