libbpf: Fix potential NULL pointer dereference
stable inclusion from stable-5.10.32 commit 7f8e59c4c5e5142e3f0d78f8f01b523027bbf151 bugzilla: 51796 -------------------------------- commit afd0be72 upstream. Wait until after the UMEM is checked for null to dereference it. Fixes: 43f1bc1e ("libbpf: Restore umem state after socket create failure") Signed-off-by: NCiara Loftus <ciara.loftus@intel.com> Signed-off-by: NDaniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20210408052009.7844-1-ciara.loftus@intel.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录