lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240508-hid_bpf_async_fun-v1-0-558375a25657@kernel.org>
Date: Wed, 08 May 2024 12:26:35 +0200
From: Benjamin Tissoires <bentiss@...nel.org>
To: Benjamin Tissoires <benjamin.tissoires@...hat.com>
Cc: linux-kernel@...r.kernel.org, linux-input@...r.kernel.org, 
 bpf@...r.kernel.org, Benjamin Tissoires <bentiss@...nel.org>
Subject: [PATCH RFC HID 0/7] Use the new __s_async for HID-BPF

This is not meant to be applied as of now.

This is just to show what I meant for [0].

And of course, this doesn't even compile because you need [0] to be
applied and the branch for-6.10/hid-bpf on the hid tree.

The purpose is to remove the bpf_tail_call from the preloaded bpf at
boot time.

Cheers,
Benjamin

[0] https://lore.kernel.org/bpf/20240507-bpf_async-v1-0-b4df966096d8@kernel.org/v

Signed-off-by: Benjamin Tissoires <bentiss@...nel.org>
---
Benjamin Tissoires (7):
      HID: bpf: change the prog run logic
      selftests/hid: fix bpf programs for the new attachment logic
      HID: bpf: allow for sleepable bpf hooks
      HID: add source argument to HID low level functions
      WIP: add HID-BPF hooks for hid_hw_raw_requests
      WIP: selftests/hid: add tests for hid_hw_raw_request HID-BPF hooks
      HID: bpf: prevent infinite recursions with hid_hw_raw_requests hooks

 drivers/hid/bpf/entrypoints/Makefile               |  93 --------
 drivers/hid/bpf/entrypoints/README                 |   4 -
 drivers/hid/bpf/entrypoints/entrypoints.bpf.c      |  25 --
 drivers/hid/bpf/entrypoints/entrypoints.lskel.h    | 248 --------------------
 drivers/hid/bpf/hid_bpf_dispatch.c                 | 252 +++++++++++----------
 drivers/hid/bpf/hid_bpf_dispatch.h                 |  12 +-
 drivers/hid/bpf/hid_bpf_jmp_table.c                | 199 ++++------------
 drivers/hid/hid-core.c                             |  91 +++++---
 drivers/hid/hidraw.c                               |  10 +-
 include/linux/hid.h                                |   6 +
 include/linux/hid_bpf.h                            |  33 ++-
 tools/testing/selftests/hid/hid_bpf.c              |  61 ++++-
 tools/testing/selftests/hid/progs/hid.c            |  91 +++++---
 .../testing/selftests/hid/progs/hid_bpf_helpers.h  |  60 ++++-
 14 files changed, 449 insertions(+), 736 deletions(-)
---
base-commit: 89ea968a9d759f71ac7b8d50949a8e5e5bcb1111
change-id: 20240508-hid_bpf_async_fun-25a8b97b5352

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


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ