Files
android_kernel_xiaomi_sm8450/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
..
2016-10-03 23:22:47 -04:00
2016-10-03 23:22:46 -04:00
2016-09-06 13:54:32 -07:00
2016-06-02 21:30:03 -07:00
2016-09-06 13:54:32 -07:00
2016-10-31 15:52:36 -04:00
2016-11-01 11:00:24 -04:00
2016-08-22 18:24:52 -07:00
2016-10-31 15:52:35 -04:00
2016-10-31 15:52:35 -04:00
2016-10-31 15:52:35 -04:00
2016-08-15 13:34:52 -07:00
2016-10-31 15:52:36 -04:00
2016-10-14 11:59:59 -04:00
2016-11-01 11:00:24 -04:00
2016-11-01 11:00:24 -04:00