]> www.infradead.org Git - users/dwmw2/linux.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)
committerSteve French <stfrench@microsoft.com>
Wed, 29 Jan 2025 23:04:44 +0000 (17:04 -0600)
commitef201e8759d20bf82b5943101147072de12bc524
tree2ce77d09b043c8c5a4a33c830a771f7cf9ae02e8
parent438e2116d7bd3095184d1997b367380c4f465164
cifs: Validate EAs for WSL reparse points

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>
fs/smb/client/reparse.c