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 2020236 - Avoid possible assert on D-Bus call
Summary: Avoid possible assert on D-Bus call
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: systemd
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Tardon
QA Contact: Frantisek Sumsal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-11-04 12:09 UTC by David Tardon
Modified: 2022-03-08 11:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-08 11:59:12 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github redhat-plumbers systemd-rhel9 pull 51 0 None open Avoid possible assert on D-Bus call 2021-11-04 14:17:04 UTC
Github systemd systemd issues 20933 0 None closed Malformed dbus call crashes systemd 2021-11-04 12:09:42 UTC
Github systemd systemd pull 20935 0 None Merged Fix #20933 2021-11-04 12:09:42 UTC
Red Hat Issue Tracker RHELPLAN-101741 0 None None None 2021-11-04 12:12:54 UTC

Description David Tardon 2021-11-04 12:09:43 UTC
Description of problem:
A malformed D-Bus call can hit an assert in systemd.

Version-Release number of selected component (if applicable):
systemd-249-4.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. busctl call --user \
  org.freedesktop.systemd1 \
  /org/freedesktop/systemd1 \
  org.freedesktop.systemd1.Manager \
  StartTransientUnit \
  "ssa(sv)a(sa(sv))"  \
  test.service \
  replace \
  1 ExecStart "a(sasb)" 1 /usr/bin/sleep 0 true 0
2. systemctl is-active user@$UID.service

Actual results:
systemd crashes:

systemd[61]: Assertion 'argv' failed at src/core/execute.c:5964, function exec_command_line(). Aborting.
systemd[1]: user: Main process exited, code=dumped, status=6/ABRT

Expected results:
The D-Bus call returns a validation error.

Comment 1 Plumber Bot 2021-11-19 11:43:02 UTC
fix merged to github main branch -> https://github.com/redhat-plumbers/systemd-rhel9/pull/51


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