FS#61260 - [systemd] Race condition in systemd-udevd + lvm2 when udev_log=debug

Attached to Project: Arch Linux
Opened by Tapio Tallgren (TapioT) - Thursday, 03 January 2019, 08:29 GMT
Last edited by Dave Reisner (falconindy) - Friday, 04 January 2019, 17:20 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To No-one
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: lvm2 fails with systemd v240 when udev_log=debug in /etc/udev/udev.conf

Additional info:
* package version: systemd-240.0-1-x86_64
* /etc/udev/udev.conf has udev_log=debug

systemd and udev have a race condition which causes the systemd service lvm2-pvscan@X:Y.service to fail and systemd-udevd to crash. This prevents the system from starting up normally. This happens when udevd runs more slowly than normal, eg. when udevd is writing debug messages.

This is described in
https://github.com/systemd/systemd/issues/11258
and there is a fix already. However, the ArchLinux testing version is affected.

As a symptom, pvscan also fails.

Setting udev_log=error fixed my system.

Steps to reproduce:
- Set udev_log=debug in /etc/udev/udev.conf
- Restart systemd-udevd
- Test with pvscan
This task depends upon

Closed by  Dave Reisner (falconindy)
Friday, 04 January 2019, 17:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  testing/systemd-240.0-2

Loading...