Skip to content

systemd-update-utmp fails with libaudit 4.2 due to overly long "comm" #43143

Closed

Description

@markusboehme

systemd version the issue has been seen with

261.2

Used distribution

No response

Linux kernel version used

No response

CPU architectures issue was seen on

None

Component

other

Expected behaviour you didn't see

systemd-update-utmp.service starts successfully and the system reaches "running" state instead of "degraded"

Unexpected behaviour you saw

systemd-update-utmp.service fails on every boot with:

systemd-update-utmp[249]: Failed to send audit message: Invalid argument
systemd[1]: systemd-update-utmp.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start Record System Boot/Shutdown in UTMP.

systemctl is-system-running reports degraded with systemd-update-utmp.service as the only failed unit.

No SYSTEM_BOOT (type=1127) audit record reaches the kernel. libaudit 4.2 rejects the message client-side with EINVAL because the comm argument "systemd-update-utmp" exceeds 15 bytes.

Steps to reproduce the problem

  1. Build audit userspace version 4.2 (https://github.com/linux-audit/audit-userspace/releases/tag/v4.2) which includes linux-audit/audit-userspace@81c09ebb4b
  2. Reboot the system

Additional program output to the terminal or log subsystem illustrating the issue

Activity

  1. added
    bug 🐛
    on Jul 24, 2026
  2. added this to the v262 milestone on Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛utmp/wtmp

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions