Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1264167

Re: [PATCH] arm64: bpf: fix mod-by-zero case

From Catalin Marinas <catalin.marinas@arm.com>
Newsgroups linux.kernel
Subject Re: [PATCH] arm64: bpf: fix mod-by-zero case
Date 2015-11-06 18:10 +0100
Message-ID <qrSGt-7lu-1@gated-at.bofh.it> (permalink)
References <qrkEO-1Qt-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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@gmail.com>
> Reported-by: Yang Shi <yang.shi@linaro.org>
> Reported-by: Xi Wang <xi.wang@gmail.com>
> CC: Alexei Starovoitov <ast@plumgrid.com>
> CC: Catalin Marinas <catalin.marinas@arm.com>
> Fixes: e54bcde3d69d ("arm64: eBPF JIT compiler")
> Cc: <stable@vger.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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH] arm64: bpf: fix mod-by-zero case Zi Shen Lim <zlim.lnx@gmail.com> - 2015-11-05 05:50 +0100
  Re: [PATCH] arm64: bpf: fix mod-by-zero case Catalin Marinas <catalin.marinas@arm.com> - 2015-11-06 18:10 +0100

csiph-web