summaryrefslogtreecommitdiff
path: root/kernel/bpf/verifier.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2018-01-12 17:43:23 -0800
committerAlexei Starovoitov <ast@kernel.org>2018-01-14 09:03:43 -0800
commitc366287ebd698ef5e3de300d90cd62ee9ee7373e (patch)
treedb24f872f9e1d05b43387b4480914ad8f5ee78b7 /kernel/bpf/verifier.c
parent8155aedf512edd3f88ef19f7cacf476ace7d1322 (diff)
downloadlwn-c366287ebd698ef5e3de300d90cd62ee9ee7373e.tar.gz
lwn-c366287ebd698ef5e3de300d90cd62ee9ee7373e.zip
bpf: fix divides by zero
Divides by zero are not nice, lets avoid them if possible. Also do_div() seems not needed when dealing with 32bit operands, but this seems a minor detail. Fixes: bd4cf0ed331a ("net: filter: rework/optimize internal BPF interpreter's instruction set") Signed-off-by: Eric Dumazet <edumazet@google.com> Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'kernel/bpf/verifier.c')
0 files changed, 0 insertions, 0 deletions