android_kernel_xiaomi_sm8350/tools/lib
Ilya Leoshkevich 291e6a6820 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:43:41 +01:00
..
api tools api fs: Make xxx__mountpoint() more scalable 2020-06-22 09:30:58 +02:00
bpf libbpf: Fix alen calculation in libbpf_nla_dump_errormsg() 2023-03-11 16:43:41 +01:00
lockdep
subcmd libsubcmd: Fix use-after-free for realloc(..., 0) 2022-02-23 11:59:58 +01:00
symbol
traceevent tools lib traceevent: Fix memory leak in process_dynamic_array_len 2020-08-11 15:33:38 +02:00
argv_split.c
bitmap.c
ctype.c
find_bit.c
hweight.c
rbtree.c
str_error_r.c
string.c tools lib: Fix builds when glibc contains strlcpy() 2020-02-05 21:22:40 +00:00
vsprintf.c
zalloc.c