Bug 2190057 - psacct programs like lastcomm and dump-acct abort with "buffer overflow detected"
Summary: psacct programs like lastcomm and dump-acct abort with "buffer overflow detec...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: psacct
Version: 38
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Jan Rybar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-27 01:55 UTC by Norman Gaywood
Modified: 2023-05-07 01:20 UTC (History)
2 users (show)

Fixed In Version: psacct-6.6.4-15.fc38.2
Clone Of:
Environment:
Last Closed: 2023-05-07 01:20:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Norman Gaywood 2023-04-27 01:55:18 UTC
With psacct enabled, running lastcomm (and other programs in psacct package) print some information then abort. Example:
# lastcomm
[snip]
readlink               root     __         0.00 secs Thu Apr 27 11:49
systemd-coredum  S     root     __         0.02 secs Thu Apr 27 11:49
*** buffer overflow detected ***: terminated
Aborted (core dumped)




Reproducible: Always

Steps to Reproduce:
1. dnf install psacct
2. systemctl enable --now psacct.service
3. lastcomm
Actual Results:  
lastcomm aborts with:
*** buffer overflow detected ***: terminated
Aborted (core dumped)

Expected Results:  
lastcomm should not abort

Comment 1 Jan Rybar 2023-05-02 06:58:41 UTC
A bug caused by new FORTIFY_SOURCE_3.  
Looking into it.

Comment 2 Jan Rybar 2023-05-02 08:00:06 UTC
(In reply to Jan Rybar from comment #1)
> A bug caused by new FORTIFY_SOURCE_3.  
> Looking into it.

EDIT: "caused by" -> "pointed at by"

Comment 3 Fedora Update System 2023-05-02 14:33:48 UTC
FEDORA-2023-0e2de87c99 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-0e2de87c99

Comment 4 Fedora Update System 2023-05-03 01:23:37 UTC
FEDORA-2023-0e2de87c99 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-0e2de87c99`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-0e2de87c99

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2023-05-07 01:20:34 UTC
FEDORA-2023-0e2de87c99 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.