diff options
author | Eric Dumazet <edumazet@google.com> | 2018-01-12 17:43:23 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-01-14 09:03:43 -0800 |
commit | c366287ebd698ef5e3de300d90cd62ee9ee7373e (patch) | |
tree | db24f872f9e1d05b43387b4480914ad8f5ee78b7 /kernel/bpf/verifier.c | |
parent | 8155aedf512edd3f88ef19f7cacf476ace7d1322 (diff) | |
download | lwn-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