linux/drivers/net/ethernet/qlogic/qed
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
..
Makefile qed*: Fix Kconfig dependencies with INFINIBAND_QEDR 2016-10-14 11:07:22 -04:00
qed_cxt.c qed: Additional work toward cleaning C=1 2016-10-14 11:07:22 -04:00
qed_cxt.h qed: Add support for QP verbs 2016-10-03 23:22:47 -04:00
qed_dcbx.c qed: Zero-out the buffer paased to dcbx_query() API 2016-10-22 17:08:07 -04:00
qed_dcbx.h qed: Add support for query/config dcbx. 2016-06-08 11:10:59 -07:00
qed_debug.c qed: Additional work toward cleaning C=1 2016-10-14 11:07:22 -04:00
qed_debug.h qed: Add support for debug data collection 2016-09-07 17:46:59 -07:00
qed_dev_api.h qed: Add Light L2 support 2016-10-03 23:22:46 -04:00
qed_dev.c qed: Learn resources from management firmware 2016-10-31 15:52:36 -04:00
qed_hsi.h qed: Prevent stack corruption on MFW interaction 2016-11-09 13:27:25 -05:00
qed_hw.c qed: Remove OOM messages 2016-09-06 13:54:32 -07:00
qed_hw.h qed: Initialize hardware for new protocols 2016-06-03 20:08:40 -04:00
qed_init_fw_funcs.c qed: Utilize FW 8.10.3.0 2016-06-02 21:30:03 -07:00
qed_init_ops.c qed: Remove OOM messages 2016-09-06 13:54:32 -07:00
qed_init_ops.h
qed_int.c qed: Use VF-queue feature 2016-10-31 15:52:36 -04:00
qed_int.h qed: Add support for coalescing config read/update. 2016-06-23 15:56:46 -04:00
qed_l2.c qed: Correct VF mac number 2016-11-01 11:00:24 -04:00
qed_l2.h qed: Prevent VFs from pause flooding 2016-08-22 18:24:52 -07:00
qed_ll2.c qed: Use list_move_tail instead of list_del/list_add_tail 2016-10-18 16:40:41 -04:00
qed_ll2.h qed*: Fix Kconfig dependencies with INFINIBAND_QEDR 2016-10-14 11:07:22 -04:00
qed_main.c qed*: Add support for WoL 2016-10-31 15:52:35 -04:00
qed_mcp.c qed: Prevent stack corruption on MFW interaction 2016-11-09 13:27:25 -05:00
qed_mcp.h qed: Learn resources from management firmware 2016-10-31 15:52:36 -04:00
qed_reg_addr.h qed: Add support for RoCE hw init 2016-10-03 23:22:46 -04:00
qed_roce.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-30 12:42:58 -04:00
qed_roce.h qed: Additional work toward cleaning C=1 2016-10-14 11:07:22 -04:00
qed_selftest.c qed: Add nvram selftest 2016-10-31 15:52:35 -04:00
qed_selftest.h qed: Add nvram selftest 2016-10-31 15:52:35 -04:00
qed_sp_commands.c qed*: Semantic changes 2016-08-15 13:34:52 -07:00
qed_sp.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-30 12:42:58 -04:00
qed_spq.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-30 12:42:58 -04:00
qed_sriov.c qed: Use VF-queue feature 2016-10-31 15:52:36 -04:00
qed_sriov.h qed: Handle malicious VFs events 2016-10-14 11:59:59 -04:00
qed_vf.c qed: Correct VF mac number 2016-11-01 11:00:24 -04:00
qed_vf.h qed: Correct VF mac number 2016-11-01 11:00:24 -04:00
qed.h qed: Learn resources from management firmware 2016-10-31 15:52:36 -04:00