Re: [PATCH RFC bpf-next v2 03/10] bpf/verifier: allow more maps in sleepable bpf programs

2024-02-20 Thread Alexei Starovoitov
On Wed, Feb 14, 2024 at 06:18:32PM +0100, Benjamin Tissoires wrote: > These 2 maps types are required for HID-BPF when a user wants to do > IO with a device from a sleepable tracing point. > > Allowing BPF_MAP_TYPE_QUEUE (and therefore BPF_MAP_TYPE_STACK) allows > for a BPF program to prepare

[PATCH RFC bpf-next v2 03/10] bpf/verifier: allow more maps in sleepable bpf programs

2024-02-14 Thread Benjamin Tissoires
These 2 maps types are required for HID-BPF when a user wants to do IO with a device from a sleepable tracing point. Allowing BPF_MAP_TYPE_QUEUE (and therefore BPF_MAP_TYPE_STACK) allows for a BPF program to prepare from an IRQ the list of HID commands to send back to the device and then these