APPLIED: [SRU Bionic/Focal/Hirsute/Impish 0/1] LP: #1948351

Kleber Souza kleber.souza at canonical.com
Thu Nov 4 16:20:43 UTC 2021


On 22.10.21 23:12, Thadeu Lima de Souza Cascardo wrote:
> BugLink: https://bugs.launchpad.net/bugs/1948351
> 
> [Impact]
> When doing MOD by 1 with a immediate/constant divisor on PPC, the JIT will
> produce code that returns the dividend, just like a division, instead of 0.
> 
> Both eBPF and cBPF will fail as well when doing such operations.
> 
> [Test case]
> Build the program on the bug description and run it like described.
> 
> [Potential regression]
> BPF programs might misbehave on ppc64el.
> 
> Naveen N. Rao (1):
>    powerpc/bpf: Fix BPF_MOD when imm == 1
> 
>   arch/powerpc/net/bpf_jit_comp64.c | 10 ++++++++--
>   1 file changed, 8 insertions(+), 2 deletions(-)
> 

Applied to [bionic/focal/hirsute/impish]:linux.

Thanks,
Kleber




More information about the kernel-team mailing list