On Thu, Nov 05, 2020 at 03:47:47PM +0100, KP Singh wrote: > From: KP Singh <[email protected]> > > Usage of spin locks was not allowed for tracing programs due to > insufficient preemption checks. The verifier does not currently prevent > LSM programs from using spin locks, but the helpers are not exposed > via bpf_lsm_func_proto. > > Based on the discussion in [1], non-sleepable LSM programs should be > able to use bpf_spin_{lock, unlock}. > > Sleepable LSM programs can be preempted which means that allowng spin > locks will need more work (disabling preemption and the verifier > ensuring that no sleepable helpers are called when a spin lock is held). > > [1]: > https://lore.kernel.org/bpf/[email protected]/T/#md601a053229287659071600d3483523f752cd2fb > > Signed-off-by: KP Singh <[email protected]> Acked-by: Martin KaFai Lau <[email protected]>
- [PATCH bpf-next v4 0/9] Implement task_local_storage KP Singh
- [PATCH bpf-next v4 7/9] bpf: Update selftests for lo... KP Singh
- [PATCH bpf-next v4 8/9] bpf: Add tests for task_loca... KP Singh
- [PATCH bpf-next v4 3/9] libbpf: Add support for task... KP Singh
- [PATCH bpf-next v4 9/9] bpf: Exercise syscall operat... KP Singh
- [PATCH bpf-next v4 5/9] bpf: Implement get_current_t... KP Singh
- [PATCH bpf-next v4 1/9] bpf: Allow LSM programs to u... KP Singh
- Re: [PATCH bpf-next v4 1/9] bpf: Allow LSM progr... Song Liu
- Re: [PATCH bpf-next v4 1/9] bpf: Allow LSM progr... Martin KaFai Lau
- [PATCH bpf-next v4 2/9] bpf: Implement task local st... KP Singh
- Re: [PATCH bpf-next v4 2/9] bpf: Implement task ... Martin KaFai Lau
- [PATCH bpf-next v4 6/9] bpf: Fix tests for local_sto... KP Singh
- [PATCH bpf-next v4 4/9] bpftool: Add support for tas... KP Singh
- Re: [PATCH bpf-next v4 4/9] bpftool: Add support... Martin KaFai Lau

