Linux ACPI
 help / color / mirror / Atom feed
* Multiple MODALIAS= in uevent file confuses userspace
@ 2021-01-08 16:25 Kai-Heng Feng
  2021-01-18  7:26 ` Kai-Heng Feng
  0 siblings, 1 reply; 12+ messages in thread
From: Kai-Heng Feng @ 2021-01-08 16:25 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: Greg Kroah-Hartman, lennart, ACPI Devel Maling List, LKML

Commit 8765c5ba19490 ("ACPI / scan: Rework modalias creation when
"compatible" is present") creates two modaliases for certain ACPI
devices. However userspace (systemd-udevd in this case) assumes uevent
file doesn't have duplicated keys, so two "MODALIAS=" breaks the
assumption.

Based on the assumption, systemd-udevd internally uses hashmap to
store each line of uevent file, so the second modalias always replaces
the first modalias.

My attempt [1] is to add a new key, "MODALIAS1" for the second
modalias. This brings up the question of whether each key in uevent
file is unique. If it's no unique, this may break may userspace.

[1] https://github.com/systemd/systemd/pull/18163

Kai-Heng

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-01-18 16:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-08 16:25 Multiple MODALIAS= in uevent file confuses userspace Kai-Heng Feng
2021-01-18  7:26 ` Kai-Heng Feng
2021-01-18 13:50   ` Rafael J. Wysocki
2021-01-18 14:12     ` Mika Westerberg
2021-01-18 14:26       ` Greg Kroah-Hartman
2021-01-18 14:48         ` Andy Shevchenko
2021-01-18 14:58           ` Greg Kroah-Hartman
2021-01-18 15:27             ` Andy Shevchenko
2021-01-18 16:40               ` Greg Kroah-Hartman
2021-01-18 16:46                 ` Andy Shevchenko
2021-01-18 14:52         ` Mika Westerberg
2021-01-18 14:51       ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox