linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/4] HID: hidraw: HIDIOCREVOKE introduction
@ 2024-08-27  8:19 bentiss
  2024-08-27  8:19 ` [PATCH v5 1/4] HID: hidraw: add HIDIOCREVOKE ioctl bentiss
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bentiss @ 2024-08-27  8:19 UTC (permalink / raw)
  To: Jiri Kosina, Shuah Khan, Peter Hutterer
  Cc: linux-input, linux-kernel, linux-kselftest, Benjamin Tissoires

The is the v5 of the HIDIOCREVOKE patches.

After a small discussion with Peter, we decided to:
- drop the BPF hooks that are problematic (Linus doesn't want
  "ALLOW_ERROR_INJECTION" to be used as "normal" fmodret bpf hooks)
- punt those BPF hooks later once we get the API right
- I'll be the one sending that new version, given that it's easier for
  me ATM

For testing the patch, and for convenience, I added a new selftest
program that can test this new ioctl. This will also allow us to
integrate the (future) BPF hooks and show how this should be used.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
---
Changes in v5:
- check for ENODEV when required in selftests
- create new common header for the HID tests that can be reused in other
  HID selftests
- Link to v4: https://lore.kernel.org/r/20240827-hidraw-revoke-v4-0-88c6795bf867@kernel.org

Link to v3: https://lore.kernel.org/all/20240812052753.GA478917@quokka/

---
Benjamin Tissoires (3):
      selftests/hid: extract the utility part of hid_bpf.c into its own header
      selftests/hid: Add initial hidraw tests skeleton
      selftests/hid: Add HIDIOCREVOKE tests

Peter Hutterer (1):
      HID: hidraw: add HIDIOCREVOKE ioctl

 drivers/hid/hidraw.c                     |  39 ++-
 include/linux/hidraw.h                   |   1 +
 include/uapi/linux/hidraw.h              |   1 +
 tools/testing/selftests/hid/.gitignore   |   1 +
 tools/testing/selftests/hid/Makefile     |   2 +-
 tools/testing/selftests/hid/hid_bpf.c    | 437 +------------------------------
 tools/testing/selftests/hid/hid_common.h | 436 ++++++++++++++++++++++++++++++
 tools/testing/selftests/hid/hidraw.c     | 237 +++++++++++++++++
 8 files changed, 714 insertions(+), 440 deletions(-)
---
base-commit: 6e4436539ae182dc86d57d13849862bcafaa4709
change-id: 20240826-hidraw-revoke-0a02ebb21743

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


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

end of thread, other threads:[~2024-08-29  8:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27  8:19 [PATCH v5 0/4] HID: hidraw: HIDIOCREVOKE introduction bentiss
2024-08-27  8:19 ` [PATCH v5 1/4] HID: hidraw: add HIDIOCREVOKE ioctl bentiss
2024-08-27  8:19 ` [PATCH v5 2/4] selftests/hid: extract the utility part of hid_bpf.c into its own header Benjamin Tissoires
2024-08-27  8:19 ` [PATCH v5 3/4] selftests/hid: Add initial hidraw tests skeleton Benjamin Tissoires
2024-08-27  8:19 ` [PATCH v5 4/4] selftests/hid: Add HIDIOCREVOKE tests Benjamin Tissoires
2024-08-29  8:41 ` [PATCH v5 0/4] HID: hidraw: HIDIOCREVOKE introduction Benjamin Tissoires

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).