linux/fs/ksmbd
Marios Makassikis a5a25a114a ksmbd: Relax credit_charge check in smb2_validate_credit_charge()
smb2_validate_credit_charge() checks the CreditCharge field in the
request is valid with regards to the payload size.

The current implementation rejects requests with CreditCharge = 0 and a
payload < 64K, even though they should be accepted.

Set CreditCharge to a minimum value of 1 to avoid rejecting such
requests. This matches what samba4 does.

Fixes share enumeration for jcifs-ng clients.

Signed-off-by: Marios Makassikis <mmakassikis@freebox.fr>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
2021-06-29 15:06:23 +09:00
..
mgmt ksmbd: remove and replace macros with inline functions in smb_common.h 2021-06-29 15:05:54 +09:00
asn1.c
asn1.h
auth.c
auth.h
connection.c
connection.h
crypto_ctx.c
crypto_ctx.h
glob.h
Kconfig
ksmbd_server.h
ksmbd_spnego_negtokeninit.asn1
ksmbd_spnego_negtokentarg.asn1
ksmbd_work.c
ksmbd_work.h ksmbd: replace request and respone buffer macro with inline functions 2021-06-29 15:06:03 +09:00
Makefile
misc.c
misc.h
ndr.c ksmbd: replace PAYLOAD_HEAD with inline function 2021-06-29 15:05:46 +09:00
ndr.h
nterr.h
ntlmssp.h
oplock.c ksmbd: remove and replace macros with inline functions in smb_common.h 2021-06-29 15:05:54 +09:00
oplock.h
server.c
server.h
smb2misc.c ksmbd: Relax credit_charge check in smb2_validate_credit_charge() 2021-06-29 15:06:23 +09:00
smb2ops.c
smb2pdu.c ksmbd: allow PROTECTED_DACL_SECINFO and UNPROTECTED_DACL_SECINFO addition information in smb2 set info security 2021-06-29 15:06:08 +09:00
smb2pdu.h
smb_common.c
smb_common.h ksmbd: remove and replace macros with inline functions in smb_common.h 2021-06-29 15:05:54 +09:00
smbacl.c
smbacl.h
smbfsctl.h
smbstatus.h
transport_ipc.c ksmbd: remove macros in transport_ipc.c 2021-06-29 15:05:34 +09:00
transport_ipc.h
transport_rdma.c ksmbd: replace SMB_DIRECT_TRANS macro with inline function 2021-06-29 15:05:59 +09:00
transport_rdma.h
transport_tcp.c
transport_tcp.h
unicode.c
unicode.h
uniupr.h
vfs_cache.c
vfs_cache.h
vfs.c ksmbd: set MAY_* flags together with open flags 2021-06-28 16:28:41 +09:00
vfs.h ksmbd: set MAY_* flags together with open flags 2021-06-28 16:28:41 +09:00