RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1905582 - core ulimit set to infinity, should be 0 for disabled to align with RHEL 7
Summary: core ulimit set to infinity, should be 0 for disabled to align with RHEL 7
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.4
Hardware: All
OS: Linux
unspecified
low
Target Milestone: rc
: 8.0
Assignee: David Tardon
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
: 1989447 (view as bug list)
Depends On:
Blocks: 1969483 2010330
TreeView+ depends on / blocked
 
Reported: 2020-12-08 15:37 UTC by Anthony Zone
Modified: 2024-12-20 19:27 UTC (History)
6 users (show)

Fixed In Version: systemd-239-50.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2010330 (view as bug list)
Environment:
Last Closed: 2021-11-09 19:54:49 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github redhat-plumbers systemd-rhel8 pull 205 0 None None None 2021-08-03 09:58:21 UTC
Github systemd-rhel rhel-8 pull 149 0 None open (#1905582) (#1905582) set core ulimit to 0 like on RHEL-7 2021-02-15 14:29:16 UTC
Red Hat Product Errata RHBA-2021:4469 0 None None None 2021-11-09 19:55:24 UTC

Description Anthony Zone 2020-12-08 15:37:12 UTC
Description of problem:
RHEL 8 ships with core ulimit set to infinity.  As systemd-core handles this (changed from abrt), we should disable this to align with RHEL 7.

Version-Release number of selected component (if applicable):
systemd-239

How reproducible:
Everytime

Steps to Reproduce:
1. Start RHEL 8
2. ulimit -c
3.

Actual results:
infinity

Expected results:
0

Additional info:

# systemctl show --no-pager | grep -i core
DefaultLimitCORE=infinity
DefaultLimitCORESoft=infinity

Comment 1 Lukáš Nykrýn 2021-06-22 13:27:51 UTC
fix merged to github master branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/149

Comment 6 Andy Walsh 2021-06-28 17:47:54 UTC
We are using `ulimit -c unlimited` as a non-root user.  We just updated our lab test machine to use RHEL-8.5.0-20210628.n.2, which has systemd-239-48.el8 installed.  We are unable to execute that command as we could on older versions (i.e. systemd-239-45.el8).  When we go in and revert the change referenced above ("DefaultLimitCORE=0"), our desired functionality is restored.

[awalsh@localhost ~]$ rpm -qa systemd
systemd-239-48.el8.x86_64
[awalsh@localhost ~]$ grep DefaultLimitCORE /etc/systemd/system.conf
DefaultLimitCORE=0
[awalsh@localhost ~]$ ulimit -c
0
[awalsh@localhost ~]$ ulimit -c unlimited
bash: ulimit: core file size: cannot modify limit: Operation not permitted             

--- Comment out the above DefaultLimitCORE line and reboot ---

[awalsh@localhost ~]$ grep DefaultLimitCORE /etc/systemd/system.conf
#DefaultLimitCORE=0
[awalsh@localhost ~]$ ulimit -c
unlimited
[awalsh@localhost ~]$ ulimit -c unlimited
[awalsh@localhost ~]$ rpm -qa systemd
systemd-239-48.el8.x86_64

Comment 7 Frantisek Sumsal 2021-08-03 09:24:18 UTC
*** Bug 1989447 has been marked as a duplicate of this bug. ***

Comment 8 Frantisek Sumsal 2021-08-03 09:30:31 UTC
As reported by several users, this indeed causes a regression where an unprivileged user is unable to change the core ulimit.

Comment 9 Lukáš Nykrýn 2021-08-03 12:40:25 UTC
fix merged to github master branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/205

Comment 14 errata-xmlrpc 2021-11-09 19:54:49 UTC
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 (systemd bug fix and enhancement update), 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/RHBA-2021:4469


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