Re: [PATCH] powerpc: bpf: Fix generation of load/store DW instructions

2019-03-15 Thread Daniel Borkmann
On 03/15/2019 03:51 PM, Naveen N. Rao wrote: > Yauheni Kaliuta pointed out that PTR_TO_STACK store/load verifier test > was failing on powerpc64 BE, and rightfully indicated that the PPC_LD() > macro is not masking away the last two bits of the offset per the ISA, > resulting in the generation of

[PATCH] powerpc: bpf: Fix generation of load/store DW instructions

2019-03-15 Thread Naveen N. Rao
Yauheni Kaliuta pointed out that PTR_TO_STACK store/load verifier test was failing on powerpc64 BE, and rightfully indicated that the PPC_LD() macro is not masking away the last two bits of the offset per the ISA, resulting in the generation of 'lwa' instruction instead of the intended 'ld'