OpenCloudOS-Kernel/fs/smb/server
Namjae Jeon 6ab95e27b7 ksmbd: handle caseless file creation
commit c5a709f08d40b1a082e44ffcde1aea4d2822ddd5 upstream.

Ray Zhang reported ksmbd can not create file if parent filename is
caseless.

Y:\>mkdir A
Y:\>echo 123 >a\b.txt
The system cannot find the path specified.
Y:\>echo 123 >A\b.txt

This patch convert name obtained by caseless lookup to parent name.

Cc: stable@vger.kernel.org # v5.15+
Reported-by: Ray Zhang <zhanglei002@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-04 16:29:48 +02:00
..
mgmt ksmbd: override fsids for share path check 2024-09-18 19:24:04 +02:00
Kconfig ksmbd: remove experimental warning 2023-09-03 21:06:36 -05:00
Makefile
asn1.c ksmbd: validate mech token in session setup 2024-01-25 15:35:44 -08:00
asn1.h
auth.c ksmbd: auth: fix most kernel-doc warnings 2024-05-25 16:22:44 +02:00
auth.h
connection.c ksmbd: fix race condition between destroy_previous_session() and smb2 operations() 2024-08-29 17:33:59 +02:00
connection.h ksmbd: fix race condition between destroy_previous_session() and smb2 operations() 2024-08-29 17:33:59 +02:00
crypto_ctx.c
crypto_ctx.h
glob.h
ksmbd_netlink.h ksmbd: add continuous availability share parameter 2024-05-25 16:22:52 +02:00
ksmbd_spnego_negtokeninit.asn1
ksmbd_spnego_negtokentarg.asn1
ksmbd_work.c ksmbd: release interim response after sending status pending response 2024-01-05 15:19:39 +01:00
ksmbd_work.h ksmbd: fix wrong interim response on compound 2023-08-29 12:30:19 -05:00
misc.c ksmbd: Add kernel-doc for ksmbd_extract_sharename() function 2024-05-25 16:22:46 +02:00
misc.h
ndr.c
ndr.h
nterr.h
ntlmssp.h
oplock.c smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open() 2024-09-12 11:11:39 +02:00
oplock.h ksmbd: add support for durable handles v1/v2 2024-05-25 16:22:49 +02:00
server.c ksmbd: fix slab-out-of-bounds in smb2_allocate_rsp_buf 2024-04-27 17:11:43 +02:00
server.h
smb2misc.c ksmbd: fix potencial out-of-bounds when buffer offset is invalid 2024-05-25 16:22:50 +02:00
smb2ops.c ksmbd: add support for durable handles v1/v2 2024-05-25 16:22:49 +02:00
smb2pdu.c smb/server: fix return value of smb2_open() 2024-09-18 19:24:06 +02:00
smb2pdu.h smb: smb2pdu.h: Avoid -Wflex-array-member-not-at-end warnings 2024-05-25 16:22:52 +02:00
smb_common.c ksmbd: override fsids for share path check 2024-09-18 19:24:04 +02:00
smb_common.h ksmbd: override fsids for share path check 2024-09-18 19:24:04 +02:00
smbacl.c ksmbd: free ppace array on error in parse_dacl 2024-01-20 11:51:48 +01:00
smbacl.h ksmbd: fix possible deadlock in smb2_open 2023-12-08 08:52:15 +01:00
smbfsctl.h
smbstatus.h
transport_ipc.c ksmbd: validate payload size in ipc response 2024-04-10 16:36:02 +02:00
transport_ipc.h
transport_rdma.c ksmbd: fix UAF issue in ksmbd_tcp_new_connection() 2024-01-25 15:35:44 -08:00
transport_rdma.h
transport_tcp.c ksmbd: Unlock on in ksmbd_tcp_set_interfaces() 2024-09-12 11:11:25 +02:00
transport_tcp.h
unicode.c ksmbd: add support for surrogate pair conversion 2024-01-05 15:19:38 +01:00
unicode.h fs/smb: Swing unicode common code from smb->NLS 2023-08-30 08:55:51 -05:00
vfs.c ksmbd: handle caseless file creation 2024-10-04 16:29:48 +02:00
vfs.h ksmbd: fix missing use of get_write in in smb2_set_ea() 2024-06-21 14:38:36 +02:00
vfs_cache.c ksmbd: fix missing use of get_write in in smb2_set_ea() 2024-06-21 14:38:36 +02:00
vfs_cache.h ksmbd: use rwsem instead of rwlock for lease break 2024-06-21 14:38:21 +02:00
xattr.h