diff --git a/glibc-rh2155825.patch b/glibc-rh2155825.patch new file mode 100644 index 0000000..5bc2336 --- /dev/null +++ b/glibc-rh2155825.patch @@ -0,0 +1,21 @@ +Author: Florian Weimer +Date: Thu Dec 22 15:42:20 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. + +diff --git a/sysdeps/unix/sysv/linux/epoll_create.c b/sysdeps/unix/sysv/linux/epoll_create.c +index afb1921637c25013..cb6a67e602494018 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) + { diff --git a/glibc.spec b/glibc.spec index 14cb817..236bfc7 100644 --- a/glibc.spec +++ b/glibc.spec @@ -159,7 +159,7 @@ Version: %{glibcversion} # - It allows using the Release number without the %%dist tag in the dependency # generator to make the generated requires interchangeable between Rawhide # and ELN (.elnYY < .fcXX). -%global baserelease 18 +%global baserelease 19 Release: %{baserelease}%{?dist} # In general, GPLv2+ is used by programs, LGPLv2+ is used for @@ -230,6 +230,7 @@ Patch9: glibc-rh827510.patch Patch13: glibc-fedora-localedata-rh61908.patch Patch17: glibc-cs-path.patch Patch23: glibc-python3.patch +Patch24: glibc-rh2155825.patch ############################################################################## # Continued list of core "glibc" package information: @@ -2193,6 +2194,9 @@ update_gconv_modules_cache () %files -f compat-libpthread-nonshared.filelist -n compat-libpthread-nonshared %changelog +* Thu Dec 22 2022 Florian Weimer - 2.36.9000-19 +- Fix epoll_create regression (#2155825) + * Mon Dec 19 2022 Florian Weimer - 2.36.9000-18 - Auto-sync with upstream branch master, commit c1c0dea38833751f36a145c322ce53c9a08332e1: