android_kernel_motorola_sm6375/fs/cifs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Pali Rohár 8161046920 cifs: Fix cifs_query_path_info() for Windows NT servers
[ Upstream commit a3e771afbb3bce91c8296828304903e7348003fe ]

For TRANS2 QUERY_PATH_INFO request when the path does not exist, the
Windows NT SMB server returns error response STATUS_OBJECT_NAME_NOT_FOUND
or ERRDOS/ERRbadfile without the SMBFLG_RESPONSE flag set. Similarly it
returns STATUS_DELETE_PENDING when the file is being deleted. And looks
like that any error response from TRANS2 QUERY_PATH_INFO does not have
SMBFLG_RESPONSE flag set.

So relax check in check_smb_hdr() for detecting if the packet is response
for this special case.

This change fixes stat() operation against Windows NT SMB servers and also
all operations which depends on -ENOENT result from stat like creat() or
mkdir().

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>
2025-07-17 18:24:49 +02:00
..
asn1.c
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-28 16:50:17 +00:00
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c
cifsfs.c cifs: Fix non-availability of dedup breaking generic/304 2023-12-13 18:18:17 +01:00
cifsfs.h cifs: fix DFS traversal oops without CONFIG_CIFS_DFS_UPCALL 2023-04-05 11:16:45 +02:00
cifsglob.h
cifspdu.h
cifsproto.h smb3: fix problem with null cifs super block with previous patch 2023-04-20 12:07:32 +02:00
cifsroot.c
cifssmb.c cifs: prevent infinite recursion in CIFSGetDFSRefer() 2023-04-05 11:16:45 +02:00
connect.c cifs: handle empty list of targets in cifs_reconnect() 2023-06-14 10:59:59 +02:00
dfs_cache.c cifs: Fix potential deadlock when updating vol in cifs_reconnect() 2023-06-28 10:18:37 +02:00
dfs_cache.h
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Release folio lock on fscache read hit. 2023-08-30 16:27:19 +02:00
fscache.c
fscache.h
inode.c
ioctl.c
Kconfig
link.c
Makefile
misc.c cifs: Fix cifs_query_path_info() for Windows NT servers 2025-07-17 18:24:49 +02:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb: client: Reset all search buffer pointers when releasing buffer 2025-06-04 14:32:36 +02:00
rfc1002pdu.h
sess.c
smb1ops.c
smb2file.c
smb2glob.h
smb2inode.c
smb2maperror.c
smb2misc.c smb: client: fix NULL deref in asn1_ber_decoder() 2024-01-08 11:29:45 +01:00
smb2ops.c cifs: Fix buffer overflow when parsing NFS reparse points 2024-12-14 19:44:21 +01:00
smb2pdu.c smb: client: fix OOBs when building SMB2_IOCTL request 2024-11-08 16:20:50 +01:00
smb2pdu.h ksmbd: fix wrong name of SMB2_CREATE_ALLOCATION_SIZE 2024-01-08 11:29:42 +01:00
smb2proto.h smb: client: fix potential OOBs in smb2_parse_contexts() 2024-05-25 16:17:17 +02:00
smb2status.h
smb2transport.c
smbdirect.c smbdirect: missing rc checks while waiting for rdma events 2023-11-08 11:23:38 +01:00
smbdirect.h
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c
winucase.c
xattr.c