]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: Validate EAs for WSL reparse points
authorPali Rohár <pali@kernel.org>
Thu, 26 Dec 2024 14:20:39 +0000 (15:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 8 Feb 2025 09:02:18 +0000 (10:02 +0100)
commitbe14d5bd2b30bbd536452aafc7229232c0e751f3
tree7fcde3aba6a79d7559ef1ba21d5c8416f38b9d38
parent0d4a011b750f77701652bd29df00c6c456aaa7f7
cifs: Validate EAs for WSL reparse points

[ Upstream commit ef201e8759d20bf82b5943101147072de12bc524 ]

Major and minor numbers for char and block devices are mandatory for stat.
So check that the WSL EA $LXDEV is present for WSL CHR and BLK reparse
points.

WSL reparse point tag determinate type of the file. But file type is
present also in the WSL EA $LXMOD. So check that both file types are same.

Fixes: 78e26bec4d6d ("smb: client: parse uid, gid, mode and dev from WSL reparse points")
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/reparse.c