linux/fs/smb
Namjae Jeon 94eb9f83a4 ksmbd: do not grant v2 lease if parent lease key and epoch are not set
commit 691aae4f36 upstream.

This patch fix xfstests generic/070 test with smb2 leases = yes.

cifs.ko doesn't set parent lease key and epoch in create context v2 lease.
ksmbd suppose that parent lease and epoch are vaild if data length is
v2 lease context size and handle directory lease using this values.
ksmbd should hanle it as v1 lease not v2 lease if parent lease key and
epoch are not set in create context v2 lease.

Cc: stable@vger.kernel.org
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-05-17 11:56:22 +02:00
..
client smb3: missing lock when picking channel 2024-05-17 11:55:53 +02:00
common ksmbd: common: use struct_group_attr instead of struct_group for network_open_info 2024-04-27 17:07:18 +02:00
server ksmbd: do not grant v2 lease if parent lease key and epoch are not set 2024-05-17 11:56:22 +02:00
Kconfig
Makefile