Re: [PATCH bpf-next] bpf: check that BPF programs run with preemption disabled

2019-02-19 Thread Daniel Borkmann
On 01/31/2019 11:29 PM, Daniel Borkmann wrote: > On 01/29/2019 02:21 AM, Alexei Starovoitov wrote: >> From: Peter Zijlstra >> >> Introduce cant_sleep() macro for annotation of functions that cannot sleep. >> >> Use it in BPF_PROG_RUN to catch execution of BPF programs >> in preemptable context. >>

Re: [PATCH bpf-next] bpf: check that BPF programs run with preemption disabled

2019-01-31 Thread Daniel Borkmann
On 01/29/2019 02:21 AM, Alexei Starovoitov wrote: > From: Peter Zijlstra > > Introduce cant_sleep() macro for annotation of functions that cannot sleep. > > Use it in BPF_PROG_RUN to catch execution of BPF programs > in preemptable context. > > Suggested-by: Jann Horn > Signed-off-by: Peter Zi

Re: [PATCH bpf-next] bpf: check that BPF programs run with preemption disabled

2019-01-28 Thread Song Liu
> On Jan 28, 2019, at 5:21 PM, Alexei Starovoitov wrote: > > From: Peter Zijlstra > > Introduce cant_sleep() macro for annotation of functions that cannot sleep. > > Use it in BPF_PROG_RUN to catch execution of BPF programs > in preemptable context. > > Suggested-by: Jann Horn > Signed-of

[PATCH bpf-next] bpf: check that BPF programs run with preemption disabled

2019-01-28 Thread Alexei Starovoitov
From: Peter Zijlstra Introduce cant_sleep() macro for annotation of functions that cannot sleep. Use it in BPF_PROG_RUN to catch execution of BPF programs in preemptable context. Suggested-by: Jann Horn Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Alexei Starovoitov --- include/linu