PTP device symlink missing after running udevadm trigger command
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Chengen Du | ||
Focal |
Triaged
|
Low
|
Chengen Du | ||
Jammy |
Fix Released
|
Low
|
Nick Rosbrook | ||
Noble |
Fix Released
|
Low
|
Nick Rosbrook | ||
Oracular |
Fix Released
|
Undecided
|
Chengen Du |
Bug Description
[Impact]
PTP device symlink creation rules are executed only when the udev action is 'add'.
If the rules are reloaded and the udevadm trigger command is run to reapply changes, the symlink may be deleted.
This can prevent the chronyd service from restarting properly.
[Fix]
Upstream has a patch to fix this issue.
commit 6bd12be3fa7761f
Author: Chengen Du <email address hidden>
CommitDate: Thu Aug 15 15:38:46 2024 +0900
udev: Handle PTP device symlink properly on udev action 'change'
PTP device symlink creation rules are currently executed only when the
udev action is 'add'. If a user reloads the rules and runs the udevadm
trigger command to reapply changes, the symlink may be deleted, which
can prevent the chronyd service from restarting properly.
Signed-off-by: Chengen Du <email address hidden>
[Test Plan]
1. Create a VM with a PTP device.
2. Verify that the PTP device symlink is present:
> ll /dev/ptp*
crw------- 1 root root 246, 0 Oct 14 02:26 /dev/ptp0
lrwxrwxrwx 1 root root 4 Oct 14 02:26 /dev/ptp_hyperv -> ptp0
2. Run the `udevadm trigger` command.
3. Verify again that the PTP device symlink is still present.
[Where problems could occur]
The patch allows PTP device symlink creation rules to be executed when the udev action is 'change'.
This update primarily affects services that rely on the PTP device symlink, such as chronyd.
tags: | added: systemd-sru-next |
Changed in systemd (Ubuntu Focal): | |
status: | In Progress → Triaged |
Changed in systemd (Ubuntu Jammy): | |
status: | In Progress → Triaged |
Changed in systemd (Ubuntu Noble): | |
status: | In Progress → Triaged |
Changed in systemd (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Jammy): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Noble): | |
importance: | Undecided → Low |
Changed in systemd (Ubuntu Oracular): | |
status: | Fix Committed → Fix Released |
Changed in systemd (Ubuntu Noble): | |
status: | Triaged → In Progress |
assignee: | Chengen Du (chengendu) → Nick Rosbrook (enr0n) |
Changed in systemd (Ubuntu Jammy): | |
assignee: | Chengen Du (chengendu) → Nick Rosbrook (enr0n) |
Changed in systemd (Ubuntu Jammy): | |
status: | Triaged → In Progress |
Changed in systemd (Ubuntu Noble): | |
milestone: | none → ubuntu-24.04.2 |
Debdiff for Focal