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 319AF3451C8 for ; Mon, 9 Mar 2026 10:27:17 +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=1773052037; cv=none; b=Isp9GQClf6CzRGTSX0Qmr3hS5jRn5VcfxO3uZXxZXi0todEEnCuxRqG1vQLrRB7qOSgeDaDhFQELKH8LzOaalEcRaHmiUMZEFdHOUD3S6Fh2+RzkTJCPO5mXXDan5PtwzTVg+J6nki1WticrIs68GMs3oBj2tn2ygUsQ7dEjxNM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773052037; c=relaxed/simple; bh=zPYfnfKd3iYkaqgtDZF6KvyF53FRR5ZucIfNRSs2cB0=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=Y7eVH0QDut3e2wkJzwvPIOhuwbAxn+mJBCF04XGJ6EnOCUkOL0xWZgAb+tmscGxS5rrXZ9K1BkNtJfc5vxycbxG6rBsfr8dkJjjvvpW1CpkxVXW6fUH6mbVb06hm5/zd8ISZ6KFs9UvdY6fQJiiaC4rljjX/hN6g0yOHlvlqKzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LvJtetYr; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LvJtetYr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B54E1C19423; Mon, 9 Mar 2026 10:27:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773052037; bh=zPYfnfKd3iYkaqgtDZF6KvyF53FRR5ZucIfNRSs2cB0=; h=Subject:To:Cc:From:Date:From; b=LvJtetYrmWs0wjt0Ul8QjMa3EJV5+/M+YL4JWVphiwilcxlYqWfTWsWHFPIVLJmu0 fjFxiq7h4xbrAAr5n95nuuY1lhvACB+0xQ8Oh9Q2/hzzC7176Nc+66pEmXxRfXzwub h1R02lFlQ5rg3iMTcRVTvjGUuWOaVq4BMX2lkc60= Subject: FAILED: patch "[PATCH] smb: client: Don't log plaintext credentials in" failed to apply to 5.15-stable tree To: thorsten.blum@linux.dev,pc@manguebit.org,stfrench@microsoft.com Cc: From: Date: Mon, 09 Mar 2026 11:27:14 +0100 Message-ID: <2026030914-pellet-condone-8fe6@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.15.y git checkout FETCH_HEAD git cherry-pick -x 2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d # git commit -s git send-email --to '' --in-reply-to '2026030914-pellet-condone-8fe6@gregkh' --subject-prefix 'PATCH 5.15.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From 2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d Mon Sep 17 00:00:00 2001 From: Thorsten Blum Date: Thu, 26 Feb 2026 22:28:45 +0100 Subject: [PATCH] smb: client: Don't log plaintext credentials in cifs_set_cifscreds When debug logging is enabled, cifs_set_cifscreds() logs the key payload and exposes the plaintext username and password. Remove the debug log to avoid exposing credentials. Fixes: 8a8798a5ff90 ("cifs: fetch credentials out of keyring for non-krb5 auth multiuser mounts") Cc: stable@vger.kernel.org Acked-by: Paulo Alcantara (Red Hat) Signed-off-by: Thorsten Blum Signed-off-by: Steve French diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c index 87686c804057..4c34d9603e05 100644 --- a/fs/smb/client/connect.c +++ b/fs/smb/client/connect.c @@ -2236,7 +2236,6 @@ cifs_set_cifscreds(struct smb3_fs_context *ctx, struct cifs_ses *ses) /* find first : in payload */ payload = upayload->data; delim = strnchr(payload, upayload->datalen, ':'); - cifs_dbg(FYI, "payload=%s\n", payload); if (!delim) { cifs_dbg(FYI, "Unable to find ':' in payload (datalen=%d)\n", upayload->datalen);