diff options
author | Mintz, Yuval <Yuval.Mintz@cavium.com> | 2016-10-29 17:04:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-29 20:51:46 -0400 |
commit | 087892d29b75c025086d99b29d385a3dac0169fc (patch) | |
tree | 89e4196468b2f6c5267d8c725651371b6a8948cc /include/net | |
parent | 3034783472f5353f71af44ed52ad9ee65f9f6d17 (diff) |
qede: Fix out-of-bound fastpath memory access
Driver allocates a shadow array for transmitted SKBs with X entries;
That means valid indices are {0,...,X - 1}. [X == 8191]
Problem is the driver also uses X as a mask for a
producer/consumer in order to choose the right entry in the
array which allows access to entry X which is out of bounds.
To fix this, simply allocate X + 1 entries in the shadow array.
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
0 files changed, 0 insertions, 0 deletions