Linux: Pass size argument of epoll_create to the kernel
authorFlorian Weimer <fweimer@redhat.com>
Thu, 22 Dec 2022 16:22:28 +0000 (17:22 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Thu, 22 Dec 2022 16:23:23 +0000 (17:23 +0100)
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>
sysdeps/unix/sysv/linux/epoll_create.c

index afb1921..cb6a67e 100644 (file)
@@ -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)
     {