From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62472481A89; Sat, 28 Feb 2026 17:34:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300041; cv=none; b=UDSZa0v5hRB7Rt34fh/rFS7F7ozPv7yQNvrcL3aRjeRJeqTXROBxrrnyG6omT4Hm0o6XKpMTabIuVj1bAOFzFc/tms0HkL++wc1+foyR6V0ELbeG5Q78OSgll/y0wIhZIIKW5FQmiOUIsqHQbhFW1LHsBD4WjQ30TagVIaBp4Yk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772300041; c=relaxed/simple; bh=Lo+ZeyzO3oAro0iucUjc9K+Xe8giSkt3BfgizsfWyJM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hbkkKcn+01PkzcDftKHH4wyg47OiXd7cXvuFfUVhZFhYchBZJUa3YZ5kFAKA81546fw94JPc3bNiwbVBrT2vABr1knzul2f4tV36KgMXgt6BgGCK3O+SSxtxWD8p4kggPGDNPg4Tzs9IsKnLzavozBrY3GWXlPd++4R6TZ2guwo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WvjKgoLA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WvjKgoLA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AF8C6C19423; Sat, 28 Feb 2026 17:34:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772300041; bh=Lo+ZeyzO3oAro0iucUjc9K+Xe8giSkt3BfgizsfWyJM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WvjKgoLAxwOOcQuGVSYGf9RBwUcA7fd5fTLIkZ5/K9vUqZRIzeNp86aNdOtrhMC1x iW+rfHIOGgwWmneJKqEaBIhbakrT8ew0EWs+PVZWRDn5ZzVvUSGIaprR3mUvzCSdX8 7VplhNPglOwgGHug2FYdgwDewRrmf3KPwchOme2wwz8Up700UKi+zKKAmk5urHQ6IC 4rqbD+IRgyomypoeEt7XufXRn06htZwWTpSAWKx6EfllkQEo2RxAn4Lt7op1NeWBD/ /XkejJCklG8Uc2fsgLG4+KBbD73e3UPzJgK6ZFsalo1URCcpH7dlTzWQoo0z47s06R NUngUjS4rWwrg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Henrique Carvalho , Steve French , Sasha Levin Subject: [PATCH 6.19 053/844] smb: client: add proper locking around ses->iface_last_update Date: Sat, 28 Feb 2026 12:19:26 -0500 Message-ID: <20260228173244.1509663-54-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20260228173244.1509663-1-sashal@kernel.org> References: <20260228173244.1509663-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Henrique Carvalho [ Upstream commit e97dcac3dc0bd37e4b56aaa6874b572a3a461102 ] There is a missing ses->iface_lock in cifs_setup_session, around ses->iface_last_update. Signed-off-by: Henrique Carvalho Signed-off-by: Steve French Signed-off-by: Sasha Levin --- fs/smb/client/connect.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c index ce620503e9f70..60c76375f0f50 100644 --- a/fs/smb/client/connect.c +++ b/fs/smb/client/connect.c @@ -4270,7 +4270,9 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses, ses->ses_status = SES_IN_SETUP; /* force iface_list refresh */ + spin_lock(&ses->iface_lock); ses->iface_last_update = 0; + spin_unlock(&ses->iface_lock); } spin_unlock(&ses->ses_lock); -- 2.51.0