linux/fs/smb
Paulo Alcantara 048efe129a smb: client: fix oops due to uninitialised var in smb2_unlink()
If SMB2_open_init() or SMB2_close_init() fails (e.g. reconnect), the
iovs set @rqst will be left uninitialised, hence calling
SMB2_open_free(), SMB2_close_free() or smb2_set_related() on them will
oops.

Fix this by initialising @close_iov and @open_iov before setting them
in @rqst.

Reported-by: Thiago Becker <tbecker@redhat.com>
Fixes: 1cf9f2a6a5 ("smb: client: handle unlink(2) of files open by different clients")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Cc: David Howells <dhowells@redhat.com>
Cc: linux-cifs@vger.kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
2026-03-05 20:41:16 -06:00
..
client smb: client: fix oops due to uninitialised var in smb2_unlink() 2026-03-05 20:41:16 -06:00
common 32 ksmbd and smbdirect fixes 2026-02-12 08:31:12 -08:00
server smb: update some doc references 2026-03-01 17:59:52 -06:00
Kconfig smb/client: introduce KUnit test to check search result of smb2_error_map_table 2026-02-08 21:24:41 -06:00
Makefile