Skip to content
Commit fe90bdc2 authored by Prasad J Pandit's avatar Prasad J Pandit Committed by Michael Roth
Browse files

net: ne2000: check ring buffer control registers



Ne2000 NIC uses ring buffer of NE2000_MEM_SIZE(49152)
bytes to process network packets. Registers PSTART & PSTOP
define ring buffer size & location. Setting these registers
to invalid values could lead to infinite loop or OOB r/w
access issues. Add check to avoid it.

Reported-by: default avatarYang Hongke <yanghongke@huawei.com>
Tested-by: default avatarYang Hongke <yanghongke@huawei.com>
Signed-off-by: default avatarPrasad J Pandit <pjp@fedoraproject.org>
Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
(cherry picked from commit 415ab35a)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent aaa52713
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment