glibc/sysdeps/unix
Adhemerval Zanella 053fe27343 linux: Fix __closefrom_fallback iterates until max int (BZ#28993)
The __closefrom_fallback tries to get a available file descriptor
if the initial open ("/proc/self/fd/", ...) fails.  It assumes the
failure would be only if procfs is not mount (ENOENT), however if
the the proc file is not accessible (due some other kernel filtering
such apparmor) it will iterate over a potentially large file set
issuing close calls.

It should only try the close fallback if open returns EMFILE,
ENFILE, or ENOMEM.

Checked on x86_64-linux-gnu.
2022-04-05 08:08:19 -03:00
..
alpha Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
arm Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
bsd posix: Add terminal control setting support for posix_spawn 2022-01-25 14:07:53 -03:00
i386 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
inet Remove obsolete, never-implemented XSI STREAMS declarations 2019-03-14 15:44:15 +01:00
mips Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
powerpc Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sh Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
sysv/linux linux: Fix __closefrom_fallback iterates until max int (BZ#28993) 2022-04-05 08:08:19 -03:00
x86_64 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
confstr.h
get_child_max.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getlogin_r.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getlogin.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
grantpt.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
ifreq.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Implies
make-syscalls.sh Add SYSCALL_ULONG_ARG_[12] to pass long to syscall [BZ #25810] 2020-04-29 05:35:34 -07:00
Makefile Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
setxid.h Update. 2004-11-12 01:27:04 +00:00
sockatmark.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
syscall-template.S Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
syscall.S Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
syscalls.list misc: Add time64 alias for ioctl 2021-07-21 11:58:09 +02:00
sysdep.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00