]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
smb: client: Don't log plaintext credentials in cifs_set_cifscreds
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 26 Feb 2026 21:28:45 +0000 (22:28 +0100)
committerSteve French <stfrench@microsoft.com>
Fri, 27 Feb 2026 00:17:20 +0000 (18:17 -0600)
commit2f37dc436d4e61ff7ae0b0353cf91b8c10396e4d
tree6ab5af78b49cfa8727638dc0c6311dc829033644
parentd9d1e319b39ea685ede59319002d567c159d23c3
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) <pc@manguebit.org>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c