Message ID | 20240711145819.254178-1-wutengda@huaweicloud.com (mailing list archive) |
---|---|
Headers | show |
Series | bpf: Fix null-pointer-deref in resolve_prog_type() | expand |
Hello: This series was applied to bpf/bpf-next.git (master) by Daniel Borkmann <daniel@iogearbox.net>: On Thu, 11 Jul 2024 22:58:17 +0800 you wrote: > Hi, > > This patchset is going to fix null-pointer-deref in resolve_prog_type() > for BPF_PROG_TYPE_EXT. > > `prog->aux->dst_prog` in resolve_prog_type() is assigned by > `attach_prog_fd`, and would be NULL if `attach_prog_fd` is not > provided. Loading EXT prog with bpf_dynptr_from_skb() kfunc call > in this way will lead to null-pointer-deref. > > [...] Here is the summary with links: - [bpf,v4,1/2] bpf: Fix null pointer dereference in resolve_prog_type() for BPF_PROG_TYPE_EXT https://git.kernel.org/bpf/bpf-next/c/f7866c358733 - [bpf,v4,2/2] selftests/bpf: Test for null-pointer-deref bugfix in resolve_prog_type() https://git.kernel.org/bpf/bpf-next/c/e435b043d89a You are awesome, thank you!