public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug stdio/27842] New: Race condition in _IO_FLAGS2_NEED_LOCK optimization
@ 2021-05-10 19:24 fweimer at redhat dot com
2022-06-10 12:38 ` [Bug stdio/27842] " cvs-commit at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: fweimer at redhat dot com @ 2021-05-10 19:24 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27842
Bug ID: 27842
Summary: Race condition in _IO_FLAGS2_NEED_LOCK optimization
Product: glibc
Version: 2.34
Status: NEW
Severity: minor
Priority: P3
Component: stdio
Assignee: unassigned at sourceware dot org
Reporter: fweimer at redhat dot com
Target Milestone: ---
Flags: security-
flockfile uses a read-modify-write operation on _flags2 outside a lock region,
which can potentially clobber concurrent _flags2 updates performed under the
lock.
Found via code review, no reproducer known.
--
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 stdio/27842] Race condition in _IO_FLAGS2_NEED_LOCK optimization
2021-05-10 19:24 [Bug stdio/27842] New: Race condition in _IO_FLAGS2_NEED_LOCK optimization fweimer at redhat dot com
@ 2022-06-10 12:38 ` cvs-commit at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-06-10 12:38 UTC (permalink / raw)
To: glibc-bugs
https://sourceware.org/bugzilla/show_bug.cgi?id=27842
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Wilco Dijkstra <wilco@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f107b7b30d815f191181617e2c14f21e6af4ddcf
commit f107b7b30d815f191181617e2c14f21e6af4ddcf
Author: Wilco Dijkstra <wilco.dijkstra@arm.com>
Date: Fri Jun 10 13:33:26 2022 +0100
libio: Avoid RMW of flags2 outside lock (BZ #27842)
Remove an unconditional RMW on flags2 in flockfile - we don't need to
change
_IO_FLAGS2_NEED_LOCK since it isn't used in flockfile or funlockfile.
This fixes BZ #27842.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
--
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-06-10 12:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 19:24 [Bug stdio/27842] New: Race condition in _IO_FLAGS2_NEED_LOCK optimization fweimer at redhat dot com
2022-06-10 12:38 ` [Bug stdio/27842] " cvs-commit at gcc dot gnu.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).