]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: aquantia: fixed instack structure overflow
authorIgor Russkikh <Igor.Russkikh@aquantia.com>
Wed, 27 Feb 2019 12:10:09 +0000 (12:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Mar 2019 00:45:15 +0000 (16:45 -0800)
commit8006e3730b6e900319411e35cee85b4513d298df
tree5df74cc4a009561147d55e0f61acdb3f30c16754
parent13b7997a103d90a2174ab93abefe3c9376bb97e5
net: aquantia: fixed instack structure overflow

This is a real stack undercorruption found by kasan build.

The issue did no harm normally because it only overflowed
2 bytes after `bitary` array which on most architectures
were mapped into `err` local.

Fixes: bab6de8fd180 ("net: ethernet: aquantia: Atlantic A0 and B0 specific functions.")
Signed-off-by: Nikita Danilov <nikita.danilov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c