aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_ethtool.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2023-02-10 00:12:01 +0000
committerAndrii Nakryiko <[email protected]>2023-02-10 23:27:22 +0000
commit17bcd27a08a21397698edf143084d7c87ce17946 (patch)
tree7e28ab4b11d2a2b09dac570db9adad2bffaea2da /drivers/net/ethernet/intel/ice/ice_ethtool.c
parentselftests/bpf: Attach to fopen()/fclose() in attach_probe (diff)
downloadkernel-17bcd27a08a21397698edf143084d7c87ce17946.tar.gz
kernel-17bcd27a08a21397698edf143084d7c87ce17946.zip
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_ethtool.c')
0 files changed, 0 insertions, 0 deletions