On Tue, 25 Aug 2026 11:55:10 +0200, Benjamin Tissoires wrote:
> With the introduction of commit ee9ad135b208 ("bpf: Reject a store
> through a fault prone pointer"), a HID-BPF program which would try to
> change the name, phys or uniq of a HID device would be rejected by the
> verifier. Also, this commits and its siblings manage to detect the
> buffer overflow that is currently dynamically detected in the test
> suite. The verifier now rejects the bpf program we try to load, marking
> the test as fail. This is correct behavior, and better admittedly so fix
> this so the CI stays green.
> 
> [...]

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

[1/3] HID: bpf: mark struct hid_device as safe BPF pointer
      https://git.kernel.org/hid/hid/c/67bfe48a29fb
[2/3] selftests/hid: Add a test to ensure we can write fields in hid_device
      https://git.kernel.org/hid/hid/c/1fb68c2e7638
[3/3] selftests/hid: prepare test_rdesc_fixup_get_data_overflow for the new 
verifier
      https://git.kernel.org/hid/hid/c/ce58f5a18432

Cheers,
-- 
Benjamin Tissoires <[email protected]>


Reply via email to