Re: [PATCH v2] HID: fix a crash in hid_debug_events_release

From: Jiri Kosina
Date: Tue Nov 21 2023 - 03:36:48 EST


On Tue, 31 Oct 2023, Charles Yi wrote:

> hid_debug_events_release() access released memory by
> hid_device_release(). This is fixed by the patch.
>
> When hid_debug_events_release() was being called, in most case,
> hid_device_release() finish already, the memory of list->hdev
> freed by hid_device_release(), if list->hdev memory
> reallocate by others, and it's modified, zeroed, then
> list->hdev->debug_list_lock occasioned crash come out.

I have applied the changelog changes proposed by Rahul and applied,
thanks.

--
Jiri Kosina
SUSE Labs