Re: [PATCH 2/9] powerpc/bpf: Validate branch ranges

2021-10-04 Thread Naveen N. Rao
Christophe Leroy wrote: Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : Add checks to ensure that we never emit branch instructions with truncated branch offsets. Suggested-by: Michael Ellerman Signed-off-by: Naveen N. Rao --- arch/powerpc/net/bpf_jit.h| 26

Re: [PATCH 2/9] powerpc/bpf: Validate branch ranges

2021-10-03 Thread Christophe Leroy
Le 01/10/2021 à 23:14, Naveen N. Rao a écrit : Add checks to ensure that we never emit branch instructions with truncated branch offsets. Suggested-by: Michael Ellerman Signed-off-by: Naveen N. Rao --- arch/powerpc/net/bpf_jit.h| 26 --

Re: [PATCH 2/9] powerpc/bpf: Validate branch ranges

2021-10-02 Thread Johan Almbladh
On Fri, Oct 1, 2021 at 11:15 PM Naveen N. Rao wrote: > > Add checks to ensure that we never emit branch instructions with > truncated branch offsets. > > Suggested-by: Michael Ellerman > Signed-off-by: Naveen N. Rao Acked-by: Johan Almbladh Tested-by: Johan Almbladh > --- >

Re: [PATCH 2/9] powerpc/bpf: Validate branch ranges

2021-10-01 Thread Song Liu
On Fri, Oct 1, 2021 at 2:16 PM Naveen N. Rao wrote: > > Add checks to ensure that we never emit branch instructions with > truncated branch offsets. > > Suggested-by: Michael Ellerman > Signed-off-by: Naveen N. Rao Acked-by: Song Liu > --- > arch/powerpc/net/bpf_jit.h| 26

[PATCH 2/9] powerpc/bpf: Validate branch ranges

2021-10-01 Thread Naveen N. Rao
Add checks to ensure that we never emit branch instructions with truncated branch offsets. Suggested-by: Michael Ellerman Signed-off-by: Naveen N. Rao --- arch/powerpc/net/bpf_jit.h| 26 -- arch/powerpc/net/bpf_jit_comp.c | 6 +-