public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Florian Weimer <fw@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] Linux: Pass size argument of epoll_create to the kernel Date: Thu, 22 Dec 2022 16:23:36 +0000 (GMT) [thread overview] Message-ID: <20221222162336.7A8973858D1E@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3c66c9600e285a42f042dd596859664b1d1372a7 commit 3c66c9600e285a42f042dd596859664b1d1372a7 Author: Florian Weimer <fweimer@redhat.com> 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 <carlos@redhat.com> 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) {
reply other threads:[~2022-12-22 16:23 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221222162336.7A8973858D1E@sourceware.org \ --to=fw@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).