public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/15514] New: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes @ 2013-05-22 5:29 guenther at gmail dot com 2013-05-22 7:29 ` [Bug libc/15514] " schwab@linux-m68k.org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: guenther at gmail dot com @ 2013-05-22 5:29 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=15514 Bug #: 15514 Summary: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes Product: glibc Version: 2.17 Status: NEW Severity: critical Priority: P2 Component: libc AssignedTo: unassigned@sourceware.org ReportedBy: guenther@gmail.com CC: drepper.fsp@gmail.com Classification: Unclassified pathconf(_PC_NAME_MAX) is implemented on top of statfs(). The 32bit version therefore fails with the error EOVERFLOW if the filesystem that the path is on is so large that its block count cannot be returned by the non-LFS version of statfs(). Calls to statfs() that are completely internal to libc, such as this one, should use the LFS version, statfs64(). According to a quick scan of the glibc source, other calls that might be affected include posix_openpt() and (maybe) shm_open(). -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15514] pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes 2013-05-22 5:29 [Bug libc/15514] New: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes guenther at gmail dot com @ 2013-05-22 7:29 ` schwab@linux-m68k.org 2014-04-06 9:56 ` peter@peter-b.co.uk 2014-06-13 13:49 ` fweimer at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: schwab@linux-m68k.org @ 2013-05-22 7:29 UTC (permalink / raw) To: glibc-bugs http://sourceware.org/bugzilla/show_bug.cgi?id=15514 --- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2013-05-22 07:29:17 UTC --- Similar to bug 15333. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15514] pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes 2013-05-22 5:29 [Bug libc/15514] New: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes guenther at gmail dot com 2013-05-22 7:29 ` [Bug libc/15514] " schwab@linux-m68k.org @ 2014-04-06 9:56 ` peter@peter-b.co.uk 2014-06-13 13:49 ` fweimer at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: peter@peter-b.co.uk @ 2014-04-06 9:56 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=15514 Peter TB Brett <peter@peter-b.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |peter@peter-b.co.uk --- Comment #2 from Peter TB Brett <peter@peter-b.co.uk> --- Created attachment 7538 --> https://sourceware.org/bugzilla/attachment.cgi?id=7538&action=edit Proposed patch Something like the attached? Most of the pathconf queries use statvfs64(), so it didn't seem unreasonable to make _PC_NAME_MAX do the same. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/15514] pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes 2013-05-22 5:29 [Bug libc/15514] New: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes guenther at gmail dot com 2013-05-22 7:29 ` [Bug libc/15514] " schwab@linux-m68k.org 2014-04-06 9:56 ` peter@peter-b.co.uk @ 2014-06-13 13:49 ` fweimer at redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: fweimer at redhat dot com @ 2014-06-13 13:49 UTC (permalink / raw) To: glibc-bugs https://sourceware.org/bugzilla/show_bug.cgi?id=15514 Florian Weimer <fweimer at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |security- -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-06-13 13:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-05-22 5:29 [Bug libc/15514] New: pathconf(_PC_NAME_MAX) fails against large filesystems for 32bit processes guenther at gmail dot com 2013-05-22 7:29 ` [Bug libc/15514] " schwab@linux-m68k.org 2014-04-06 9:56 ` peter@peter-b.co.uk 2014-06-13 13:49 ` fweimer at redhat dot com
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).