[PATCH] arm64: net: bpf: don't BUG() on large shifts
Rabin Vincent
rabin at rab.in
Wed Jan 6 12:31:27 PST 2016
On Tue, Jan 05, 2016 at 09:55:58AM -0800, Alexei Starovoitov wrote:
> this one is better to be addressed in verifier instead of eBPF JITs.
> Please reject it in check_alu_op() instead.
AFAICS the eBPF verifier is not called on the eBPF filters generated by
the BPF->eBPF conversion in net/core/filter.c, so performing this check
only in check_alu_op() will be insufficient. So I think we'd need to
add this check to bpf_check_classic() too. Or am I missing something?
More information about the linux-arm-kernel
mailing list