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

Stefan Bader stefan.bader at canonical.com
Mon Oct 25 08:44:52 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(-)
> 
Acked-by: Stefan Bader <stefan.bader at canonical.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20211025/b5b3abf3/attachment.sig>


More information about the kernel-team mailing list