Linux LED subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] leds: lp50xx: Fix component index and count validation
@ 2026-11-27 13:43 Tobias Johansson
  2026-11-27 13:43 ` [PATCH 1/2] leds: lp50xx: Use an unsigned component index Tobias Johansson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tobias Johansson @ 2026-11-27 13:43 UTC (permalink / raw)
  To: Lee Jones, Pavel Machek, Jacek Anaszewski, Johan Adolfsson,
	Dan Murphy
  Cc: linux-leds, linux-kernel, Pavel Machek, kernel, Tobias Johansson,
	Sashiko

This series fixes two pre-existing bounds-check issues identified during
review of the default-intensity patch:
https://lore.kernel.org/r/20261109-b4-leds-lp50xx-default-intensity-v1-1-0a04a3533df6@axis.com

The first patch makes the component index unsigned so that firmware reg
values with the high bit set cannot bypass the upper-bound check.

The second patch rejects more than three component child nodes, preventing
num_colors from exceeding the allocation used by the brightness and
multicolor sysfs paths even when component reg values are repeated.

Both issues require malformed firmware descriptions. The fixes are kept
separate from the default-intensity feature and do not depend on it.
Each patch includes a Fixes tag for independent backporting.

---
Tobias Johansson (2):
      leds: lp50xx: Use an unsigned component index
      leds: lp50xx: Reject excessive component counts

 drivers/leds/leds-lp50xx.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
---
base-commit: 05b4738b0078f7d6f154f68068a11c8a0635e9df
change-id: 20261119-leds-lp50xx-bounds-fixes-b40666d382f6

Best regards,
-- 
Tobias Johansson <tobias.johansson@axis.com>


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

end of thread, other threads:[~2026-11-27 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-27 13:43 [PATCH 0/2] leds: lp50xx: Fix component index and count validation Tobias Johansson
2026-11-27 13:43 ` [PATCH 1/2] leds: lp50xx: Use an unsigned component index Tobias Johansson
2026-11-27 13:43 ` [PATCH 2/2] leds: lp50xx: Reject excessive component counts Tobias Johansson
2026-11-27 13:51 ` [PATCH 0/2] leds: lp50xx: Fix component index and count validation sashiko-bot

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