Skip to content
Commit 5b801dfb authored by Peilin Ye's avatar Peilin Ye Committed by Daniel Borkmann
Browse files

bpf: Fix NULL pointer dereference in __btf_resolve_helper_id()



Prevent __btf_resolve_helper_id() from dereferencing `btf_vmlinux`
as NULL. This patch fixes the following syzbot bug:

    https://syzkaller.appspot.com/bug?id=f823224ada908fa5c207902a5a62065e53ca0fcc

Reported-by: default avatar <syzbot+ee09bda7017345f1fbe6@syzkaller.appspotmail.com>
Signed-off-by: default avatarPeilin Ye <yepeilin.cs@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200714180904.277512-1-yepeilin.cs@gmail.com
parent 55b24422
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment