]> git.baikalelectronics.ru Git - kernel.git/commit
net: atlantic: verify hw_head_ lies within TX buffer ring
authorGrant Grundler <grundler@chromium.org>
Tue, 10 May 2022 02:28:26 +0000 (19:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 May 2022 11:25:07 +0000 (12:25 +0100)
commit26c67ec9e49df9feb70d820b485b86af3d2a36ac
treea976d13be06aee2e681a3ae8fa041dfbcae8e398
parent1903971a8a74dee50a7b57b3b3ed0e84b5293b8c
net: atlantic: verify hw_head_ lies within TX buffer ring

Bounds check hw_head index provided by NIC to verify it lies
within the TX buffer ring.

Reported-by: Aashay Shringarpure <aashay@google.com>
Reported-by: Yi Chou <yich@google.com>
Reported-by: Shervin Oloumi <enlightened@google.com>
Signed-off-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c