bpf: fix 32-bit ALU op verification
authorJann Horn <jannh@google.com>
Tue, 19 Dec 2017 04:11:56 +0000 (20:11 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 21 Dec 2017 01:15:41 +0000 (02:15 +0100)
commit468f6eafa6c44cb2c5d8aad35e12f06c240a812a
tree99734f161dfc9788aa59500058cd5859ac33fab0
parent0c17d1d2c61936401f4702e1846e2c19b200f958
bpf: fix 32-bit ALU op verification

32-bit ALU ops operate on 32-bit values and have 32-bit outputs.
Adjust the verifier accordingly.

Fixes: f1174f77b50c ("bpf/verifier: rework value tracking")
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
kernel/bpf/verifier.c