Re: [PATCH v3 0/7] HID: sensor: custom: use-after-free after remove

From: Jiri Kosina

Date: Thu Nov 19 2026 - 15:39:54 EST


On Mon, 9 Nov 2026, Srinivas Pandruvada wrote:

> This is v3 version with changes suggested by shashiko-bot and Jonathan.
> Also rebased on top of 7.4-rc2 kernel release.
>
> This patch series is essentially the same version that was sent to
> Semyon for testing.
>
> Following a feedback review conducted with various AI models, it was
> suggested to break each change into individual, separate patches. This
> makes perfect sense, which is why this series now contains more patches.
>
> Additionally, these reviews identified issues in the adjacent probe and
> removal code when active sensor instances are present. I have addressed
> those issues in this version as well.
>
> v3:
> - Address comment on patch 6/7 by Shashiko on useless goto
> and suggestion to remove sensor_hub_remove_callback() for
> err_remove_dev_if.
> - On patch 4/7 : HID: sensor: custom: Fix state lifetime during removal
> Rename goto as suggested by Jonathan
>
> For using guard(), need a follow up patch as that will be a cleanup.

Now in hid.git#for-7.4/upstream-fixes. Thanks,

--
Jiri Kosina
SUSE Labs