Bug 1749439
Summary: | glibc: Repeating pututxline() on EINTR/EAGAIN causes stale utmp entries | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Carlos O'Donell <codonell> |
Component: | glibc | Assignee: | Florian Weimer <fweimer> |
Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
Severity: | medium | Docs Contact: | Zuzana Zoubkova <zzoubkov> |
Priority: | medium | ||
Version: | 8.2 | CC: | ashankar, codonell, dj, fweimer, mnewsome, olysonek, otikhomi, pfrankli, qe-baseos-tools-bugs, skolosov, thozza |
Target Milestone: | rc | Keywords: | Patch, Triaged |
Target Release: | 8.2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | glibc-2.28-90.el8 | Doc Type: | Bug Fix |
Doc Text: |
.Repeated `pututxline` calls following `EINTR` or `EAGAIN` error no longer corrupt the `utmp` file
When the `pututxline` function tries to acquire a lock and does not succeed in time, the function returns with `EINTR` or `EAGAIN` error code. Previously in this situation, if `pututxline` was called immediately again and managed to obtain the lock, it did not use an already-allocated matching slot in the `utmp` file, but added another entry instead. As a consequence, these unused entries increased the size of the `utmp` file substantially. This update fixes the issue, and the entries are added to the `utmp` file correctly now.
|
Story Points: | --- |
Clone Of: | 1734791 | Environment: | |
Last Closed: | 2020-04-28 16:50:19 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1741515, 1746918 |
Description
Carlos O'Donell
2019-09-05 15:45:26 UTC
Please also check that these are also backported in Fedora (30+). Upstream backports are not required. *** Bug 1741516 has been marked as a duplicate of this bug. *** Verified with glibc tests: login/tst-pututxline-cache, login/tst-updwtmpx, login/tst-pututxline-lockfail Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:1828 |