[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20151106170015.GB7637@e104818-lin.cambridge.arm.com>
Date: Fri, 6 Nov 2015 17:00:16 +0000
From: Catalin Marinas <catalin.marinas@....com>
To: Zi Shen Lim <zlim.lnx@...il.com>
Cc: Alexei Starovoitov <ast@...mgrid.com>,
Yang Shi <yang.shi@...aro.org>, linux-kernel@...r.kernel.org,
stable@...r.kernel.org, Xi Wang <xi.wang@...il.com>,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH] arm64: bpf: fix mod-by-zero case
On Wed, Nov 04, 2015 at 08:43:59PM -0800, Zi Shen Lim wrote:
> Turns out in the case of modulo by zero in a BPF program:
> A = A % X; (X == 0)
> the expected behavior is to terminate with return value 0.
>
> The bug in JIT is exposed by a new test case [1].
>
> [1] https://lkml.org/lkml/2015/11/4/499
>
> Signed-off-by: Zi Shen Lim <zlim.lnx@...il.com>
> Reported-by: Yang Shi <yang.shi@...aro.org>
> Reported-by: Xi Wang <xi.wang@...il.com>
> CC: Alexei Starovoitov <ast@...mgrid.com>
> CC: Catalin Marinas <catalin.marinas@....com>
> Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
> Cc: <stable@...r.kernel.org> # 3.18+
> ---
> This patch applies on top of "arm64: bpf: fix fiv-by-zero case" [2].
Both patches applied. Thanks.
--
Catalin
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists