diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2023-02-10 03:12:01 +0300 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2023-02-11 02:27:22 +0300 |
commit | 17bcd27a08a21397698edf143084d7c87ce17946 (patch) | |
tree | 7e28ab4b11d2a2b09dac570db9adad2bffaea2da /crypto | |
parent | 202702e890a41412a7de970b84a970ba1d5001c9 (diff) | |
download | linux-17bcd27a08a21397698edf143084d7c87ce17946.tar.xz |
libbpf: Fix alen calculation in libbpf_nla_dump_errormsg()
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: bbf48c18ee0c ("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
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions