android_kernel_motorola_sm6225/tools/lib
Ilya Leoshkevich d5bdae351a libbpf: Fix alen calculation in libbpf_nla_dump_errormsg()
[ Upstream commit 17bcd27a08a21397698edf143084d7c87ce17946 ]

The code assumes that everything that comes after nlmsgerr are nlattrs.
When calculating their size, it does not account for the initial
nlmsghdr. This may lead to accessing uninitialized memory.

Fixes: bbf48c18ee ("libbpf: add error reporting in XDP")
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230210001210.395194-8-iii@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 16:31:37 +01:00
..
api
bpf libbpf: Fix alen calculation in libbpf_nla_dump_errormsg() 2023-03-11 16:31:37 +01:00
lockdep
subcmd libsubcmd: Fix use-after-free for realloc(..., 0) 2022-02-23 11:58:40 +01:00
symbol
traceevent libtraceevent: Fix build with binutils 2.35 2022-06-06 08:24:21 +02:00
bitmap.c
find_bit.c
hweight.c
rbtree.c
str_error_r.c
string.c
vsprintf.c