+18
−4
Loading
stable inclusion from stable-v6.6.76 commit 32cc06a68d3a305efd7833d7307f8845ec19ab71 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBW08Q Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=32cc06a68d3a305efd7833d7307f8845ec19ab71 -------------------------------- [ 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> (cherry picked from commit 32cc06a68d3a305efd7833d7307f8845ec19ab71) Signed-off-by:
Wentao Guan <guanwentao@uniontech.com>