]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commitd13bed3673acafee0799a25bd7bf866ac4d94c59
tree0cf8dce6a1ec7d91588803cd30f875057a5a653c
parentfc05883292c636b8781db646f58d8458029f3dec
net: aquantia: fixed instack structure overflow

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 8006e3730b6e900319411e35cee85b4513d298df ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c