Re: [PATCH 0/2] HID: bpf: add one ssize_t check detected by Sashiko

From
Benjamin Tissoires <bentiss@kernel.org>
Date
2026-09-25 07:46:02
Also in
linux-kselftest, lkml, stable
Reply to
Benjamin Tissoires, 2026-09-15
On Tue, 15 Sep 2026 17:46:56 +0200, Benjamin Tissoires wrote:
Sashiko detected an existing issue in hid_bpf_hw_request:
if the transport layer returns an error code, hid_bpf_hw_request
returns success, which can confuse the caller.

Add the actual fix and a selftest to ensure this gets properly passed
around.

[...]
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-7.3/upstream-fixes), thanks!

[1/2] HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request
      https://git.kernel.org/hid/hid/c/3afefbfe55c2
[2/2] selftest/hid: add test for negative return codes for hid_bpf_hw_request
      https://git.kernel.org/hid/hid/c/3f35b678a1d6

Cheers,
-- 
Benjamin Tissoires [off-list ref]
Thread (6 messages) 6 messages, 2 authors, last reply 2026-09-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help