Skip to content

ACPI: sysfs: Fix some issues in create_of_modalias() and create_pnp_modalias()

Christophe JAILLET kernel-janitors linux-acpi lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: sysfs: Fix the check for a potential string truncationdrivers/acpi/device_sysfs.c+4 -40 replies
2/4ACPI: sysfs: Fix a potential out-of-bound write in create_of_modalias()drivers/acpi/device_sysfs.c+2 -04 replies
3/4ACPI: sysfs: Remove some useless trailing NULL writesdrivers/acpi/device_sysfs.c+2 -20 replies
4/4ACPI: sysfs: Remove some dead codedrivers/acpi/device_sysfs.c+0 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] ACPI: sysfs: Fix some issues in create_of_modalias() and create_pnp_modalias()

All issues have been introduced by the same commit, 8765c5ba1949 ("ACPI / scan: Rework modalias creation when "compatible" is present")

The first 2 patches fixe some issues related to string truncation checks and to computation of the available space in the output buffer.

The 2 others are just some clean-ups.

Christophe JAILLET (4):
ACPI: sysfs: Fix the check for a potential string truncation
ACPI: sysfs: Fix a potential out-of-bound write in
create_of_modalias()
ACPI: sysfs: Remove some useless trailing NULL writes
ACPI: sysfs: Remove some dead code

 drivers/acpi/device_sysfs.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)
Signature · 1 line
2.32.0