This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/24879] login: utmp alarm timer can arrive after lock acquisition
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 17 Jan 2020 14:02:18 +0000
- Subject: [Bug libc/24879] login: utmp alarm timer can arrive after lock acquisition
- Auto-submitted: auto-generated
- References: <bug-24879-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24879
--- Comment #3 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The release/2.30/master branch has been updated by Florian Weimer
<fw@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8baeebad9aa6eca0eba028a9c95cd0867b37aa2d
commit 8baeebad9aa6eca0eba028a9c95cd0867b37aa2d
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Aug 15 16:09:05 2019 +0200
login: Disarm timer after utmp lock acquisition [BZ #24879]
If the file processing takes a long time for some reason, SIGALRM can
arrive while the file is still being processed. At that point, file
access will fail with EINTR. Disarming the timer after lock
acquisition avoids that. (If there was a previous alarm, it is the
responsibility of the caller to deal with the EINTR error.)
(cherry picked from commit 628598be7e1bfaa04f34df71ef6678f2c5103dfd)
--
You are receiving this mail because:
You are on the CC list for the bug.