linux-stable/fs/smb
David Howells 4931fe2dbe cifs: Fix oops due to uninitialised variable
[ Upstream commit 453a6d2a68 ]

Fix smb3_init_transform_rq() to initialise buffer to NULL before calling
netfs_alloc_folioq_buffer() as netfs assumes it can append to the buffer it
is given.  Setting it to NULL means it should start a fresh buffer, but the
value is currently undefined.

Fixes: a2906d3316 ("cifs: Switch crypto buffer to use a folio_queue rather than an xarray")
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Steve French <sfrench@samba.org>
cc: Paulo Alcantara <pc@manguebit.org>
cc: linux-cifs@vger.kernel.org
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-28 16:31:14 +02:00
..
client cifs: Fix oops due to uninitialised variable 2025-08-28 16:31:14 +02:00
common smb: smbdirect: introduce smbdirect_socket_parameters 2025-07-06 11:01:42 +02:00
server smb: server: split ksmbd_rdma_stop_listening() out of ksmbd_rdma_destroy() 2025-08-28 16:31:08 +02:00
Kconfig
Makefile