summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorStanislav Fomichev2019-06-19 21:01:05 +0200
committerDaniel Borkmann2019-06-24 15:53:19 +0200
commite4f07120210a1794c1f1ae64d209a2fbc7bd2682 (patch)
treed606d6fca52f90e1729dc690f1ec88e705d89b93 /samples
parentbpf: fix the check that forwarding is enabled in bpf_ipv6_fib_lookup (diff)
downloadkernel-qcow2-linux-e4f07120210a1794c1f1ae64d209a2fbc7bd2682.tar.gz
kernel-qcow2-linux-e4f07120210a1794c1f1ae64d209a2fbc7bd2682.tar.xz
kernel-qcow2-linux-e4f07120210a1794c1f1ae64d209a2fbc7bd2682.zip
bpf: fix NULL deref in btf_type_is_resolve_source_only
Commit 1dc92851849c ("bpf: kernel side support for BTF Var and DataSec") added invocations of btf_type_is_resolve_source_only before btf_type_nosize_or_null which checks for the NULL pointer. Swap the order of btf_type_nosize_or_null and btf_type_is_resolve_source_only to make sure the do the NULL pointer check first. Fixes: 1dc92851849c ("bpf: kernel side support for BTF Var and DataSec") Reported-by: syzbot <syzkaller@googlegroups.com> Signed-off-by: Stanislav Fomichev <sdf@google.com> Acked-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions