linux/drivers/net/ethernet/qlogic
Mintz, Yuval bb48024284 qed: Prevent stack corruption on MFW interaction
Driver uses a union for copying data to & from management firmware
when interacting with it.
Problem is that the function always copies sizeof(union) while commit
2edbff8dcb ("qed: Learn resources from management firmware") is casting
a union elements which is of smaller size [24-byte instead of 88-bytes].

Also, the union contains some inappropriate elements which increase its
size [should have been 32-bytes]. While this shouldn't corrupt other
PF messages to the MFW [as management firmware enforces permissions so
that each PF is allowed to write only to its own mailbox] we fix this
here as well.

Fixes: 2edbff8dcb ("qed: Learn resources from management firmware")
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-11-09 13:27:25 -05:00
..
netxen ethernet: use net core MTU range checking in more drivers 2016-10-20 14:51:08 -04:00
qed qed: Prevent stack corruption on MFW interaction 2016-11-09 13:27:25 -05:00
qede qede: Don't override priv_flags 2016-11-01 11:00:24 -04:00
qlcnic ethernet/qlogic: use core min/max MTU checking 2016-10-18 11:34:19 -04:00
qlge ethernet: use net core MTU range checking in more drivers 2016-10-20 14:51:08 -04:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-29 20:33:20 -07:00
Makefile qede: Add basic Network driver 2015-10-27 19:34:47 -07:00
qla3xxx.c net: deprecate eth_change_mtu, remove usage 2016-10-13 09:36:57 -04:00
qla3xxx.h