]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: Fix querying of WSL CHR and BLK reparse points over SMB1
authorPali Rohár <pali@kernel.org>
Thu, 26 Dec 2024 16:12:09 +0000 (17:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 May 2025 05:51:00 +0000 (07:51 +0200)
commitea92c93887f500c2298f5c8b135a68929b664d85
tree23ddd3e4001060d77741eeea12b54b889bc43eef
parentdc18c5b1301a6fede7b26bebf621816f1a3a0fff
cifs: Fix querying of WSL CHR and BLK reparse points over SMB1

[ Upstream commit ef86ab131d9127dfbfa8f06e12441d05fdfb090b ]

When reparse point in SMB1 query_path_info() callback was detected then
query also for EA $LXDEV. In this EA are stored device major and minor
numbers used by WSL CHR and BLK reparse points. Without major and minor
numbers, stat() syscall does not work for char and block devices.

Similar code is already in SMB2+ query_path_info() callback function.

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/smb1ops.c