Re: [PATCH 0/3] HID: bpf: fix __hid_bpf_hw_check_params report length computation
From: Benjamin Tissoires
Date: Mon Sep 14 2026 - 14:00:23 EST
On Fri, 04 Sep 2026 14:52:58 +0200, Benjamin Tissoires wrote:
> While playing with hid_bpf_hw_output_report() on a device without report
> IDs, I realized I wasn't able to send proper reports to the USB
> endpoint.
>
> This is because the __hid_bpf_hw_check_params() check wasn't taking into
> account the report ID reserved space, and it was trimming down one
> element in the report.
>
> [...]
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.3/upstream-fixes), thanks!
[1/3] selftests/hid: add define for commonly used buf size
https://git.kernel.org/hid/hid/c/9d1e523b92d8
[2/3] HID: bpf: fix __hid_bpf_hw_check_params report length
https://git.kernel.org/hid/hid/c/c4afa4862b87
[3/3] selftests/hid: add unnumbered variant to the hid_bpf tests
https://git.kernel.org/hid/hid/c/b6f69097c827
Cheers,
--
Benjamin Tissoires <bentiss@xxxxxxxxxx>