Re: [PATCH net-next] qed: Prevent stack corruption on MFW interaction

2016-11-09 Thread David Miller
From: Yuval Mintz Date: Sun, 6 Nov 2016 17:12:27 +0200 > 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 > 2edbff8dcb5d ("qed: Learn resources from management firmware") is casti

RE: [PATCH net-next] qed: Prevent stack corruption on MFW interaction

2016-11-07 Thread Mintz, Yuval
> > 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 > > 2edbff8dcb5d ("qed: Learn resources from management firmware") is > > casting a union elements which is of smaller size

RE: [PATCH net-next] qed: Prevent stack corruption on MFW interaction

2016-11-07 Thread David Laight
From: Yuval Mintz > Sent: 06 November 2016 15:12 > 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 > 2edbff8dcb5d ("qed: Learn resources from management firmware") is casting > a