Re: [PATCH bpf-next v2 08/28] HID: allow to change the report descriptor from an eBPF program
From: Greg KH
Date: Fri Mar 04 2022 - 13:33:43 EST
On Fri, Mar 04, 2022 at 06:28:32PM +0100, Benjamin Tissoires wrote:
> Make use of BPF_HID_ATTACH_RDESC_FIXUP so we can trigger an rdesc fixup
> in the bpf world.
>
> Whenever the program gets attached/detached, the device is reconnected
> meaning that userspace will see it disappearing and reappearing with
> the new report descriptor.
>
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires@xxxxxxxxxx>
>
Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>