Backport systemd to make uevents "sticky"

Bug #1906653 reported by hugh chao
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
systemd (Ubuntu)
Fix Released
Undecided
Unassigned
Focal
Won't Fix
Undecided
Unassigned
Groovy
Won't Fix
Undecided
Unassigned
Hirsute
Fix Released
Undecided
Unassigned

Bug Description

Base on lwn 837033 [0], Linux 4.12 introduced two new uevents "bind" and "unbind" to the Linux device model which resulted in a number of software issues.

So in this PR [1] which minimize issues resulting from this kernel change (but not avoid them entirely) by make uevent "sticky", meaning that once a tag is assigned to a device it will not be removed from the device again until the device itself is removed (i.e. unplugged).

An example causing by this issue, I had a usb printer (non-ippusbxd) which connected to my laptop, but after unplugging it from my laptop, the .device unit were still present, if a different printer gets plugged to the same USB port then, it won't be configured correctly.

[0] https://lwn.net/Articles/837033/
[1] https://github.com/systemd/systemd/pull/16853/files

hugh chao (hugh712)
description: updated
hugh chao (hugh712)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Dan Streetman (ddstreet) wrote :

I'm hesitant to backport, because the change causes significant issues on upgrade, e.g.:
https://github.com/systemd/systemd/issues/17605

if we do backport the 'sticky' udev tags, we'll need to make sure to also pull back the proper commits to handle the new udev format across daemon-reexec, e.g.:
https://github.com/systemd/systemd/pull/17622

Revision history for this message
Dan Streetman (ddstreet) wrote :

As I mentioned in my last comment, I'm skeptical that the benefit of backporting would outweigh the potential problems it would introduce to existing stable releases.

I'm marking this as wont-fix for that reason. I don't think we should consider this unless you can provide specific examples of significant, serious problems that would be fixed by backporting the change.

Revision history for this message
Dan Streetman (ddstreet) wrote :

for reference, the PR linked in the description is included upstream in v247 so this is fixed in h, i'll mark the bug as such

Changed in systemd (Ubuntu Hirsute):
status: Confirmed → Fix Released
Changed in systemd (Ubuntu Groovy):
status: New → Won't Fix
Changed in systemd (Ubuntu Focal):
status: New → Won't Fix
Revision history for this message
hugh chao (hugh712) wrote :

@Dan

I see, thank you anyway :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.