Re: [PATCH net] sfc: fix potential stack corruption from running past stat bitmask

2016-08-26 Thread David Miller
From: Edward Cree Date: Fri, 26 Aug 2016 11:19:34 +0100 > From: Andrew Rybchenko > > On 32-bit systems, mask is only an array of 3 longs, not 4, so don't try > to write to mask[3]. > Also include build-time checks in case the size of the bitmask changes. > > Fixes: 3c36a2aded8c ("sfc: display

[PATCH net] sfc: fix potential stack corruption from running past stat bitmask

2016-08-26 Thread Edward Cree
From: Andrew Rybchenko On 32-bit systems, mask is only an array of 3 longs, not 4, so don't try to write to mask[3]. Also include build-time checks in case the size of the bitmask changes. Fixes: 3c36a2aded8c ("sfc: display vadaptor statistics for all interfaces") Signed-off-by: Edward Cree ---