Skip to content

Commit 4e0b1b0

Browse files
committed
HID: bpf: enforce HID_BPF dependencies
As mentioned in the link below, having JIT and BPF is not enough to have fentry/fexit/fmod_ret APIs. This resolves the error that happens on a system without tracing enabled when hid-bpf tries to load itself. Link: https://lore.kernel.org/r/CABRcYmKyRchQhabi1Vd9RcMQFCcb=EtWyEbFDFRTc-L-U8WhgA@mail.gmail.com Fixes: f5c27da ("HID: initial BPF implementation") Signed-off-by: Benjamin Tissoires <[email protected]> Reviewed-by: Florent Revest <[email protected]> Reviewed-by: Jiri Kosina <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8602015 commit 4e0b1b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/hid/bpf/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ menu "HID-BPF support"
44
config HID_BPF
55
bool "HID-BPF support"
66
default HID_SUPPORT
7-
depends on BPF && BPF_SYSCALL
7+
depends on BPF && BPF_SYSCALL && \
8+
DYNAMIC_FTRACE_WITH_DIRECT_CALLS
89
help
910
This option allows to support eBPF programs on the HID subsystem.
1011
eBPF programs can fix HID devices in a lighter way than a full

0 commit comments

Comments
 (0)