From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2178) id 7A8973858D1E; Thu, 22 Dec 2022 16:23:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A8973858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671726216; bh=gnb1w2Q96J9AVIgSlpwhn9h+S7tICsbhhpo9wdkxmc4=; h=From:To:Subject:Date:From; b=ZOYn9IPH9BTxwwjcdesBaIevyewGtZHSBjWb9tNeH6rVsSNQvDToc5arN5fEy73zs L3j2nv/oYadngA8TrrYPk8G1Fkx0mWIeplTl2CdmOVyL1zMYmg6u61hk429rYe1v8R XbwqqwdTrqP5GowuMwSXoHQ3qYjrlG/ALBCESWUE= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc] Linux: Pass size argument of epoll_create to the kernel X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/master X-Git-Oldrev: 9ffeabdf2e5078d8e8a4158e9b6be2ac2c616220 X-Git-Newrev: 3c66c9600e285a42f042dd596859664b1d1372a7 Message-Id: <20221222162336.7A8973858D1E@sourceware.org> Date: Thu, 22 Dec 2022 16:23:36 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3c66c9600e285a42f042dd596859664b1d1372a7 commit 3c66c9600e285a42f042dd596859664b1d1372a7 Author: Florian Weimer Date: Thu Dec 22 17:22:28 2022 +0100 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 Diff: --- sysdeps/unix/sysv/linux/epoll_create.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {