[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <PH0PR11MB7493505F52C66521250376A58E9CA@PH0PR11MB7493.namprd11.prod.outlook.com>
Date: Sat, 31 Jan 2026 06:51:40 +0000
From: "Lin, Ryan" <ryan.lin@...el.com>
To: srinivas pandruvada <srinivas.pandruvada@...ux.intel.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-input@...r.kernel.org" <linux-input@...r.kernel.org>,
"linux-drivers-review@...ists.intel.com"
<linux-drivers-review@...ists.intel.com>, "Zhang, Lixu"
<lixu.zhang@...el.com>, Benjamin Tissoires <bentiss@...nel.org>, Jiri Kosina
<jikos@...nel.org>
Subject: RE: [linux-drivers-review] [PATCH] HID: intel-ish-hid: fix
NULL-ptr-deref in ishtp_bus_remove_all_clients
> -----Original Message-----
> From: srinivas pandruvada <srinivas.pandruvada@...ux.intel.com>
> Sent: Saturday, January 31, 2026 9:32 AM
> To: Lin, Ryan <ryan.lin@...el.com>; linux-kernel@...r.kernel.org; linux-
> input@...r.kernel.org; linux-drivers-review@...ists.intel.com; Zhang, Lixu
> <lixu.zhang@...el.com>; Benjamin Tissoires <bentiss@...nel.org>; Jiri Kosina
> <jikos@...nel.org>
> Subject: Re: [linux-drivers-review] [PATCH] HID: intel-ish-hid: fix NULL-ptr-deref
> in ishtp_bus_remove_all_clients
>
> On Fri, 2026-01-30 at 13:25 +0800, Ryan Lin wrote:
> > During a warm reset flow, the cl->device pointer may be NULL if the
> > reset occurs while clients are still being enumerated. Accessing
> > cl->device->reference_count without a NULL check leads to a kernel
> > panic.
> >
> > This issue was identified during multi-unit warm reboot stress
> > clycles.
> > Add a defensive NULL check for cl->device to ensure stability under
> > such intensive testing conditions.
> >
> > KASAN: null-ptr-deref in range [0000000000000000-0000000000000007]
> > Workqueue: ish_fw_update_wq fw_reset_work_fn
> >
> > Call Trace:
> > ishtp_bus_remove_all_clients+0xbe/0x130 [intel_ishtp]
> > ishtp_reset_handler+0x85/0x1a0 [intel_ishtp]
> > fw_reset_work_fn+0x8a/0xc0 [intel_ish_ipc]
> >
> > Fixes: 3703f53b99e4a ("HID: intel_ish-hid: ISH Transport layer")
> > Signed-off-by: Ryan Lin <ryan.lin@...el.com>
>
> You need to use get_maintainer.pl to get all TO and CC list.
>
> You missed
> Jiri Kosina <jikos@...nel.org>
> Benjamin Tissoires <bentiss@...nel.org>
Thanks, Srinivas. I've looped Jiri and Benjamin in the v2 thread. Appreciate the heads-up.
Regards,
Ryan
>
>
> > ---
> > drivers/hid/intel-ish-hid/ishtp/bus.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/drivers/hid/intel-ish-hid/ishtp/bus.c
> > b/drivers/hid/intel-ish-hid/ishtp/bus.c
> > index c3915f3a060e..b890fbf97a75 100644
> > --- a/drivers/hid/intel-ish-hid/ishtp/bus.c
> > +++ b/drivers/hid/intel-ish-hid/ishtp/bus.c
> > @@ -730,7 +730,7 @@ void ishtp_bus_remove_all_clients(struct
> > ishtp_device *ishtp_dev,
> > spin_lock_irqsave(&ishtp_dev->cl_list_lock, flags);
> > list_for_each_entry(cl, &ishtp_dev->cl_list, link) {
> > cl->state = ISHTP_CL_DISCONNECTED;
> > - if (warm_reset && cl->device->reference_count)
> > + if (warm_reset && cl->device && cl->device-
> > >reference_count)
> > continue;
> >
> > /*
Powered by blists - more mailing lists