public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
@ 2013-04-12 5:22 roche+kml2 at exalead dot com
2013-04-12 5:25 ` [Bug libc/15361] " roche+kml2 at exalead dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: roche+kml2 at exalead dot com @ 2013-04-12 5:22 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15361
Bug #: 15361
Summary: aio_fsync() should not check file descriptor for "open
for writing" mode and return EBADF
Product: glibc
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: libc
AssignedTo: unassigned@sourceware.org
ReportedBy: roche+kml2@exalead.com
CC: drepper.fsp@gmail.com
Classification: Unclassified
As suggested by Roland McGrath, I'm opening a request regarding the aio_fsync()
function returning EBADF when using a file descriptor not "open for writing".
This is actually a minor inconsistency fixed POSIX:
<http://austingroupbugs.net/view.php?id=671>
The suggested change is not to check anymore the file descriptor flags.
--
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] 7+ messages in thread
* [Bug libc/15361] aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
@ 2013-04-12 5:25 ` roche+kml2 at exalead dot com
2013-04-12 5:26 ` roche+kml2 at exalead dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: roche+kml2 at exalead dot com @ 2013-04-12 5:25 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15361
--- Comment #1 from Xavier Roche <roche+kml2 at exalead dot com> 2013-04-12 05:25:08 UTC ---
Created attachment 6977
--> http://sourceware.org/bugzilla/attachment.cgi?id=6977
Suggested patch for sysdeps/pthread/aio_fsync.c
This is a suggested patch for the sysdeps/pthread/aio_fsync.c file. It just
replaces the O_RDONLY flag check by a F_GETFL fd check (to ensure the file
descriptor is valid) to accommodate the new specification.
--
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] 7+ messages in thread
* [Bug libc/15361] aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
2013-04-12 5:25 ` [Bug libc/15361] " roche+kml2 at exalead dot com
@ 2013-04-12 5:26 ` roche+kml2 at exalead dot com
2013-04-12 5:39 ` roche+kml2 at exalead dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: roche+kml2 at exalead dot com @ 2013-04-12 5:26 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15361
Xavier Roche <roche+kml2 at exalead dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://austingroupbugs.net/
| |view.php?id=671
--
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] 7+ messages in thread
* [Bug libc/15361] aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
2013-04-12 5:25 ` [Bug libc/15361] " roche+kml2 at exalead dot com
2013-04-12 5:26 ` roche+kml2 at exalead dot com
@ 2013-04-12 5:39 ` roche+kml2 at exalead dot com
2013-04-12 5:58 ` roche+kml2 at exalead dot com
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: roche+kml2 at exalead dot com @ 2013-04-12 5:39 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15361
--- Comment #2 from Xavier Roche <roche+kml2 at exalead dot com> 2013-04-12 05:39:10 UTC ---
Created attachment 6978
--> http://sourceware.org/bugzilla/attachment.cgi?id=6978
Suggested patch for manual/llio.texi
Suggested patch for the manual.
--
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] 7+ messages in thread
* [Bug libc/15361] aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
` (2 preceding siblings ...)
2013-04-12 5:39 ` roche+kml2 at exalead dot com
@ 2013-04-12 5:58 ` roche+kml2 at exalead dot com
2013-04-12 20:11 ` roland at gnu dot org
2014-06-13 18:27 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: roche+kml2 at exalead dot com @ 2013-04-12 5:58 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15361
--- Comment #3 from Xavier Roche <roche+kml2 at exalead dot com> 2013-04-12 05:58:03 UTC ---
Please see also:
* the related discussion on austin-group-l
http://comments.gmane.org/gmane.comp.standards.posix.austin.general/6952
* the libc-alpha@sourceware.org discussion:
http://sourceware.org/ml/libc-alpha/2013-04/msg00213.html
--
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] 7+ messages in thread
* [Bug libc/15361] aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
` (3 preceding siblings ...)
2013-04-12 5:58 ` roche+kml2 at exalead dot com
@ 2013-04-12 20:11 ` roland at gnu dot org
2014-06-13 18:27 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: roland at gnu dot org @ 2013-04-12 20:11 UTC (permalink / raw)
To: glibc-bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=15361
Roland McGrath <roland at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |roland at gnu dot org
Resolution| |FIXED
--- Comment #4 from Roland McGrath <roland at gnu dot org> 2013-04-12 20:11:54 UTC ---
Fixed on trunk.
--
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] 7+ messages in thread
* [Bug libc/15361] aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
` (4 preceding siblings ...)
2013-04-12 20:11 ` roland at gnu dot org
@ 2014-06-13 18:27 ` fweimer at redhat dot com
5 siblings, 0 replies; 7+ messages in thread
From: fweimer at redhat dot com @ 2014-06-13 18:27 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=15361
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] 7+ messages in thread
end of thread, other threads:[~2014-06-13 18:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-12 5:22 [Bug libc/15361] New: aio_fsync() should not check file descriptor for "open for writing" mode and return EBADF roche+kml2 at exalead dot com
2013-04-12 5:25 ` [Bug libc/15361] " roche+kml2 at exalead dot com
2013-04-12 5:26 ` roche+kml2 at exalead dot com
2013-04-12 5:39 ` roche+kml2 at exalead dot com
2013-04-12 5:58 ` roche+kml2 at exalead dot com
2013-04-12 20:11 ` roland at gnu dot org
2014-06-13 18:27 ` 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).