]> git.ipfire.org Git - thirdparty/linux.git/commit
ksmbd: fix potential circular locking issue in smb2_set_ea()
authorNamjae Jeon <linkinjeon@kernel.org>
Thu, 14 Dec 2023 23:33:57 +0000 (08:33 +0900)
committerSteve French <stfrench@microsoft.com>
Tue, 9 Jan 2024 18:52:33 +0000 (12:52 -0600)
commit6fc0a265e1b932e5e97a038f99e29400a93baad0
treea0b0bfaac3d2c769cbb849bd5b85647bad56b1c3
parentbb05367a66a9990d2c561282f5620bb1dbe40c28
ksmbd: fix potential circular locking issue in smb2_set_ea()

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