aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-12-22 17:22:28 +0100
committerFlorian Weimer <fweimer@redhat.com>2022-12-22 17:23:23 +0100
commit3c66c9600e285a42f042dd596859664b1d1372a7 (patch)
tree74b427376b43ff5a5b500f4695cd4954f7415409
parent9ffeabdf2e5078d8e8a4158e9b6be2ac2c616220 (diff)
downloadglibc-3c66c9600e285a42f042dd596859664b1d1372a7.tar
glibc-3c66c9600e285a42f042dd596859664b1d1372a7.tar.gz
glibc-3c66c9600e285a42f042dd596859664b1d1372a7.tar.bz2
glibc-3c66c9600e285a42f042dd596859664b1d1372a7.zip
Linux: Pass size argument of epoll_create to the kernel
The kernel actually verifies it, and a garbage value in the register causes improper system call failures. Fixes commit c1c0dea38833751f36a145c32 ("Linux: Remove epoll_create, inotify_init from syscalls.list") and commit d1d23b134244d59c4d6ef2295 ("Lninux: consolidate epoll_create implementation"). Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-rw-r--r--sysdeps/unix/sysv/linux/epoll_create.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/epoll_create.c b/sysdeps/unix/sysv/linux/epoll_create.c
index afb1921637..cb6a67e602 100644
--- a/sysdeps/unix/sysv/linux/epoll_create.c
+++ b/sysdeps/unix/sysv/linux/epoll_create.c
@@ -25,7 +25,7 @@ int
epoll_create (int size)
{
#ifdef __NR_epoll_create
- return INLINE_SYSCALL_CALL (epoll_create);
+ return INLINE_SYSCALL_CALL (epoll_create, size);
#else
if (size <= 0)
{