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 2211358 - Assertion 'sz <= d->buffer_filled' failed at ../src/libsystemd/sd-event/sd-event.c:3229, function event_inotify_data_drop()
Summary: Assertion 'sz <= d->buffer_filled' failed at ../src/libsystemd/sd-event/sd-ev...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: systemd
Version: 8.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Tardon
QA Contact: Frantisek Sumsal
URL:
Whiteboard: CockpitTest
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-31 08:42 UTC by Martin Pitt
Modified: 2023-11-14 18:02 UTC (History)
3 users (show)

Fixed In Version: systemd-239-78.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-11-14 15:48:29 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 396 0 None open Fix memory corruption 2023-06-07 10:32:25 UTC
Github systemd systemd pull 21270 0 None Merged sd-event: fix memory corruption 2023-06-07 04:59:44 UTC
Red Hat Issue Tracker RHELPLAN-158675 0 None None None 2023-05-31 08:43:49 UTC
Red Hat Product Errata RHBA-2023:7097 0 None None None 2023-11-14 15:49:07 UTC

Description Martin Pitt 2023-05-31 08:42:54 UTC
Description of problem: In our Cockpit tests on RHEL/CentOS 8, the (Python) bridge often triggers this assertion in libsystemd when using the inotify API.


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

systemd-239-76.el8.x86_64.rpm


How reproducible: Always


Steps to Reproduce:

We often see this in Cockpit's integration tests, e.g. in [1], with a full journal [2]. But this can be reproduced/investigated in a more accessible way with our systemd_ctypes library:

  git clone https://github.com/allisonkarlitskaya/systemd_ctypes
  # disable the test skip
  sed -i '/crashes on RHEL 8 systemd/d' systemd_ctypes/test/test_pathwatch.py

  podman run -it --rm -v ./systemd_ctypes:/src -w /src quay.io/centos/centos:stream8

Inside the container:

  dnf install -y python3-pip python3-dbus dbus-daemon systemd-libs; pip3 install tox
  tox -e py3 -- -sv -k testRootDirectoryIdentity

Actual results:

crashes with

  Assertion 'sz <= d->buffer_filled' failed at ../src/libsystemd/sd-event/sd-event.c:3229, function event_inotify_data_drop(). Aborting.


Expected results: Works, like on RHEL 9 and Fedora.


Additional info:

[1] https://cockpit-logs.us-east-1.linodeobjects.com/pull-18860-20230531-072427-a3d937fe-centos-8-stream-pybridge/log.html#264
[2] https://cockpit-logs.us-east-1.linodeobjects.com/pull-18860-20230531-072427-a3d937fe-centos-8-stream-pybridge/TestIPA-testClientCertAuthentication-centos-8-stream-127.0.0.2-2501-FAIL.log.gz

Comment 1 Martin Pitt 2023-05-31 08:54:52 UTC
>  # disable the test skip
>  sed -i '/crashes on RHEL 8 systemd/d' test/test_pathwatch.py

Sorry, of course that needs to happen in the checkout dir:

  sed -i '/crashes on RHEL 8 systemd/d' systemd_ctypes/test/test_pathwatch.py

Comment 2 Plumber Bot 2023-08-04 15:51:25 UTC
fix merged to github main branch -> https://github.com/redhat-plumbers/systemd-rhel8/pull/396

Comment 8 errata-xmlrpc 2023-11-14 15:48:29 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-2023:7097


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