Bug 29441

Summary: pgrep: cannot allocate if stack size limit is unlimited
Product: Mageia Reporter: Chris Denice <eatdirt>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: andrewsfarm, davidwhodgins, eatdirt, herman.viaene, sysadmin-bugs
Version: 8Keywords: advisory, validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard: MGA8-64-OK
Source RPM: procps-ng-3.3.16-2.mga8.src.rpm CVE:
Status comment:

Description Chris Denice 2021-09-06 09:30:37 CEST
The program pgred returns a pid from a running process. Check what is running with top for instance, and enter:

pgrep systemd

The normal output is a list of pids.

Now, in a terminal, set the stacksize to unlimited:

ulimit -s unlimited

and try the same:

pgrep systemd
pgrep: cannot allocate 4611686018427387903 bytes

Bug is known and has been fixed upstream, as well as in Cauldron.
Comment 1 Chris Denice 2021-09-06 09:38:54 CEST
Here we go, procps-ng version 3.3.17 landing in updates_testing. To test, reproduce the steps mentioned in the bug report. This version should work even if ulimit -s unlimited has been set before.





Suggested advisory:
========================

Updated procps-ng package fixing a fatal issue preventing pgrep to run on unlimited stack size.

========================

Updated packages in core/updates_testing:
========================
lib(64)procps8-3.3.17-1.mga8
lib(64)procps-devel-3.3.17-1.mga8
procps-ng-3.3.17-1.mga8

Source RPMs: 
procps-ng-3.3.17-1.mga8.src.rpm

Assignee: bugsquad => qa-bugs
CC: (none) => eatdirt

Comment 2 Herman Viaene 2021-09-13 14:55:26 CEST
MGA8-64 Plasma on Lenovo B50
No installation issues.
$ pgrep systemd
1
523
565
1221
3198
$ ulimit -s unlimited
$ pgrep systemd
1
523
565
1221
3198
16574

So update is OK.

Whiteboard: (none) => MGA8-64-OK
CC: (none) => herman.viaene

Comment 3 Thomas Andrews 2021-09-14 02:47:49 CEST
Validating. Advisory in Comment 1.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Dave Hodgins 2021-09-23 00:02:39 CEST

Keywords: (none) => advisory
CC: (none) => davidwhodgins

Comment 4 Mageia Robot 2021-09-23 06:51:32 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2021-0189.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED