mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] HID: bpf: add one ssize_t check detected by Sashiko
@ 2026-09-15 15:46 Benjamin Tissoires
  2026-09-15 15:46 ` [PATCH 1/2] HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request Benjamin Tissoires
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Benjamin Tissoires @ 2026-09-15 15:46 UTC (permalink / raw)
  To: Jiri Kosina, Shuah Khan
  Cc: linux-input, linux-kernel, linux-kselftest, Benjamin Tissoires, stable

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.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
---
Benjamin Tissoires (2):
      HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request
      selftest/hid: add test for negative return codes for hid_bpf_hw_request

 drivers/hid/bpf/hid_bpf_dispatch.c    |  2 +-
 tools/testing/selftests/hid/hid_bpf.c | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)
---
base-commit: b6f69097c8271cca30314fd6e4c802f90737bfcc
change-id: 20260915-wip-bpf-signed_size-83a5a507aac8

Best regards,
--  
Benjamin Tissoires <bentiss@kernel.org>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-09-25  7:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 15:46 [PATCH 0/2] HID: bpf: add one ssize_t check detected by Sashiko Benjamin Tissoires
2026-09-15 15:46 ` [PATCH 1/2] HID: bpf: cast size to ssize_t when checking hid_bpf_hw_request Benjamin Tissoires
2026-09-23 16:03   ` Jiri Kosina
2026-09-15 15:46 ` [PATCH 2/2] selftest/hid: add test for negative return codes for hid_bpf_hw_request Benjamin Tissoires
2026-09-23 16:03   ` Jiri Kosina
2026-09-25  7:46 ` [PATCH 0/2] HID: bpf: add one ssize_t check detected by Sashiko Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®