Commit f0549e94 authored by Tony Nguyen's avatar Tony Nguyen Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: igb: Initialize mailbox message for VF reset



commit de5dc443 upstream.

When a MAC address is not assigned to the VF, that portion of the message
sent to the VF is not set. The memory, however, is allocated from the
stack meaning that information may be leaked to the VM. Initialize the
message buffer to 0 so that no information is passed to the VM in this
case.

Fixes: 6ddbc4cf ("igb: Indicate failure on vf reset for empty mac address")
Reported-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
Change-Id: I71c8a33db5873854b642e61ec35bc8ffcfcd410a
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Reviewed-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: default avatarLeon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20221212190031.3983342-1-anthony.l.nguyen@intel.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f2479c3d)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 14e3dbe2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment