]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
idpf: Acquire the lock before accessing the xn->salt
authorManoj Vishwanathan <manojvishy@google.com>
Mon, 16 Dec 2024 16:27:33 +0000 (16:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2025 09:02:10 +0000 (10:02 +0100)
commit8a2f823c008f2259026f2a3e2b550c4b1c88b82a
treed5a2f6ed72106b5d23aa01e74d38b499f262057b
parentf0dfabf3de33c4d4b006d9e0a99899c7a51ee728
idpf: Acquire the lock before accessing the xn->salt

[ Upstream commit d15fe4edd7decdf14d8ad2b78df100ea23302065 ]

The transaction salt was being accessed before acquiring the
idpf_vc_xn_lock when idpf has to forward the virtchnl reply.

Fixes: 34c21fa894a1 ("idpf: implement virtchnl transaction manager")
Signed-off-by: Manoj Vishwanathan <manojvishy@google.com>
Signed-off-by: David Decotigny <decot@google.com>
Signed-off-by: Brian Vazquez <brianvv@google.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Reviewed-by: Pavan Kumar Linga <pavan.kumar.linga@intel.com>
Tested-by: Krishneil Singh <krishneil.k.singh@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/idpf/idpf_virtchnl.c