about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/netrose
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-11-07 18:15:18 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-11-07 23:09:39 +0100
commitbe6b16d975683e6cca57852cd4cfe715b2a9d8b1 (patch)
tree040b7e45c4ee621e604da6e4072686b83a305505 /sysdeps/unix/sysv/linux/netrose
parent4f4bb489e0ddd2f24b2a5d352bb39f8dcdb38050 (diff)
downloadglibc-be6b16d975683e6cca57852cd4cfe715b2a9d8b1.tar.gz
glibc-be6b16d975683e6cca57852cd4cfe715b2a9d8b1.tar.xz
glibc-be6b16d975683e6cca57852cd4cfe715b2a9d8b1.zip
login: Acquire write lock early in pututline [BZ #24882]
It has been reported that due to lack of fairness in POSIX file
locking, the current reader-to-writer lock upgrade can result in
lack of forward progress.  Acquiring the write lock directly
hopefully avoids this issue if there are only writers.

This also fixes bug 24882 due to the cache revalidation in
__libc_pututline.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Change-Id: I57e31ae30719e609a53505a0924dda101d46372e
Diffstat (limited to 'sysdeps/unix/sysv/linux/netrose')
0 files changed, 0 insertions, 0 deletions