ksmbd: fix potential circular locking issue in smb2_set_ea()
authorNamjae Jeon <linkinjeon@kernel.org>
Tue, 23 Jan 2024 11:40:28 +0000 (20:40 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Feb 2024 00:18:58 +0000 (16:18 -0800)
commite9ec6665de8f706b4f4133b87b2bd02a159ec57b
tree69690fc18ca3730e3227252cabd7b950e67e746e
parentfc0db77b182b24d9aaffb9bef63498856d66c5d3
ksmbd: fix potential circular locking issue in smb2_set_ea()

[ Upstream commit 6fc0a265e1b932e5e97a038f99e29400a93baad0 ]

smb2_set_ea() can be called in parent inode lock range.
So add get_write argument to smb2_set_ea() not to call nested
mnt_want_write().

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>
fs/smb/server/smb2pdu.c