mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/4] ACPI: sysfs: Fix some issues in create_of_modalias() and create_pnp_modalias()
@ 2023-10-23 17:24 Christophe JAILLET
  2023-10-23 18:10 ` Christophe JAILLET
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Christophe JAILLET @ 2023-10-23 17:24 UTC (permalink / raw)
  To: rafael, lenb
  Cc: linux-acpi, linux-kernel, kernel-janitors, Christophe JAILLET

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(-)

-- 
2.32.0


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

end of thread, other threads:[~2023-10-25  5:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-23 17:24 [PATCH 0/4] ACPI: sysfs: Fix some issues in create_of_modalias() and create_pnp_modalias() Christophe JAILLET
2023-10-23 18:10 ` Christophe JAILLET
2023-10-23 18:32 ` [PATCH 1/4] ACPI: sysfs: Fix the check for a potential string truncation Christophe JAILLET
2023-10-23 19:33 ` [PATCH 2/4] ACPI: sysfs: Fix a potential out-of-bound write in create_of_modalias() Christophe JAILLET
2023-10-24  5:55   ` Dan Carpenter
2023-10-24  6:08     ` Dan Carpenter
2023-10-24  7:09       ` Dan Carpenter
2023-10-25  5:41         ` Dan Carpenter
2023-10-23 19:33 ` [PATCH 3/4] ACPI: sysfs: Remove some useless trailing NULL writes Christophe JAILLET
2023-10-23 19:33 ` [PATCH 4/4] ACPI: sysfs: Remove some dead code Christophe JAILLET
2023-10-23 20:09 ` [PATCH 0/4] ACPI: sysfs: Fix some issues in create_of_modalias() and create_pnp_modalias() Rafael J. Wysocki
2023-10-23 20:47   ` Christophe JAILLET
2023-10-23 20:47     ` Christophe JAILLET

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

all inboxes | Powered by JetHome®