Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* [PATCH 0/6] backlight: Fix Critical and High issues reported by Sashiko
@ 2026-11-04 18:39 Lee Jones
  2026-11-04 18:39 ` [PATCH 1/6] backlight: lm3630a: Request PWM device before registering backlight Lee Jones
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Lee Jones @ 2026-11-04 18:39 UTC (permalink / raw)
  To: lee
  Cc: linux-kernel, Andrew Morton, Bjorn Andersson, Daniel Jeong,
	Daniel Thompson, David Heidelberg, dri-devel, Helge Deller,
	Jingoo Han, Jin Park, Kiran Gunda, Konrad Dybcio, LDD MLP,
	linux-arm-msm, linux-fbdev, Samuel Ortiz,
	Subbaraman Narayanamurthy

These issues were reported by Sashiko.

This series resolves the open Critical and High severity bug reports
identified by the Sashiko AI analysis tool (https://sashiko.dev) across
the Backlight subsystem:

  1. lm3630a_bl: Prevent a NULL pointer dereference in lm3630a_pwm_ctrl()
     when PWM mode is enabled by requesting the PWM device before
     registering the backlight device.
  2. aat2870_bl: Prevent a NULL pointer dereference on platform_get_drvdata()
     during devm_backlight_device_register() by populating driver data and
     scaling the initial brightness beforehand.
  3. qcom-wled: Cancel wled->ovp_work on probe failure via
     devm_delayed_work_autocancel() so a scheduled OVP work item cannot
     fire after devm_kzalloc() frees struct wled.
  4. qcom-wled: Manage wled->lock via devm_mutex_init() and remove
     wled_remove() so devres unwinds the backlight device, threaded IRQs,
     delayed work, and mutex in strict reverse registration order without
     calling disable_irq() on unconfigured negative or zero IRQ numbers.
  5. qcom-wled: Guard against calling a NULL
     wled->wled_auto_detection_required() callback on WLED3 hardware when
     an OVP fault interrupt fires.
  6. qcom-wled: Avoid an AB-BA deadlock between wled->lock and the
     threaded OVP IRQ handler by using disable_irq_nosync() in
     wled_module_enable() and verifying under wled->lock that the module
     remains enabled before running wled_auto_string_detection().

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Bjorn Andersson <andersson@kernel.org>
Cc: Daniel Jeong <gshark.jeong@gmail.com>
Cc: Daniel Thompson <danielt@kernel.org>
Cc: David Heidelberg <david@ixit.cz>
Cc: dri-devel@lists.freedesktop.org
Cc: Helge Deller <deller@gmx.de>
Cc: Jingoo Han <jingoohan1@gmail.com>
Cc: Jin Park <jinyoungp@nvidia.com>
Cc: Kiran Gunda <quic_kgunda@quicinc.com>
Cc: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Cc: LDD MLP <ldd-mlp@list.ti.com>
Cc: linux-arm-msm@vger.kernel.org
Cc: linux-fbdev@vger.kernel.org
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Subbaraman Narayanamurthy <quic_subbaram@quicinc.com>

Lee Jones (6):
  backlight: lm3630a: Request PWM device before registering backlight
  backlight: aat2870: Initialise driver data before registering
    backlight
  backlight: qcom-wled: Cancel delayed work on probe failure
  backlight: qcom-wled: Manage teardown via devres and remove
    wled_remove()
  backlight: qcom-wled: Check for auto-detection callback in
    wled_ovp_irq_handler()
  backlight: qcom-wled: Avoid AB-BA deadlock in wled_module_enable()

 drivers/video/backlight/aat2870_bl.c | 43 +++++++++++++------------
 drivers/video/backlight/lm3630a_bl.c | 12 +++----
 drivers/video/backlight/qcom-wled.c  | 47 +++++++++++++++-------------
 3 files changed, 52 insertions(+), 50 deletions(-)

-- 
2.56.0.385.gac671c819a-goog


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

end of thread, other threads:[~2026-11-04 18:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-04 18:39 [PATCH 0/6] backlight: Fix Critical and High issues reported by Sashiko Lee Jones
2026-11-04 18:39 ` [PATCH 1/6] backlight: lm3630a: Request PWM device before registering backlight Lee Jones
2026-11-04 18:39 ` [PATCH 2/6] backlight: aat2870: Initialise driver data " Lee Jones
2026-11-04 18:39 ` [PATCH 3/6] backlight: qcom-wled: Cancel delayed work on probe failure Lee Jones
2026-11-04 18:39 ` [PATCH 4/6] backlight: qcom-wled: Manage teardown via devres and remove wled_remove() Lee Jones
2026-11-04 18:39 ` [PATCH 5/6] backlight: qcom-wled: Check for auto-detection callback in wled_ovp_irq_handler() Lee Jones
2026-11-04 18:39 ` [PATCH 6/6] backlight: qcom-wled: Avoid AB-BA deadlock in wled_module_enable() Lee Jones

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