public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/28993] New: closefrom() iterates until max int if no access to /proc/self/fd/
@ 2022-03-23 14:11 arekm at maven dot pl
2022-04-05 11:37 ` [Bug libc/28993] " adhemerval.zanella at linaro dot org
0 siblings, 1 reply; 2+ messages in thread
From: arekm at maven dot pl @ 2022-03-23 14:11 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28993
Bug ID: 28993
Summary: closefrom() iterates until max int if no access to
/proc/self/fd/
Product: glibc
Version: 2.35
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: arekm at maven dot pl
CC: drepper.fsp at gmail dot com
Target Milestone: ---
pure-authd and pure-certd (both part of pure-ftpd) use closefrom(3) when built
on glibc 2.35.
If there is no access to /proc/self/fd/ (due to apparmor policy for example)
closefrom(3) will iterate for ages (until max int I guess) causing these
programs to be "stuck" for long time.
openat(AT_FDCWD, "/proc/self/fd/", O_RDONLY|O_DIRECTORY) = -1 EACCES (Brak
dostępu) <0.000035>
and then it will iterate over all fds:
[...]
close(31665557) = -1 EBADF (Błędny deskryptor pliku) <0.000008>
[...]
>From irc #glibc: __closefrom_fallback probably should handle EACCES just like
it does with ENOENT (abort() process)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libc/28993] closefrom() iterates until max int if no access to /proc/self/fd/
2022-03-23 14:11 [Bug libc/28993] New: closefrom() iterates until max int if no access to /proc/self/fd/ arekm at maven dot pl
@ 2022-04-05 11:37 ` adhemerval.zanella at linaro dot org
0 siblings, 0 replies; 2+ messages in thread
From: adhemerval.zanella at linaro dot org @ 2022-04-05 11:37 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=28993
Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adhemerval.zanella at linaro dot o
| |rg
Target Milestone|--- |2.36
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
Fixed on 2.36.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-05 11:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-23 14:11 [Bug libc/28993] New: closefrom() iterates until max int if no access to /proc/self/fd/ arekm at maven dot pl
2022-04-05 11:37 ` [Bug libc/28993] " adhemerval.zanella at linaro dot org
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).