android_kernel_samsung_a7y1.../fs/cifs
Christoph Probst b879e57dbd cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level()
commit 6a54b2e002c9d00b398d35724c79f9fe0d9b38fb upstream.

Change strcat to strncpy in the "None" case to fix a buffer overflow
when cinode->oplock is reset to 0 by another thread accessing the same
cinode. It is never valid to append "None" to any other message.

Consolidate multiple writes to cinode->oplock to reduce raciness.

Signed-off-by: Christoph Probst <kernel@probst.it>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 18:13:44 +02:00
..
asn1.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cache.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_debug.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_dfs_ref.c cifs: use correct format characters 2020-04-06 14:50:13 +02:00
cifs_fs_sb.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_ioctl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_spnego.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_spnego.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_unicode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_unicode.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifs_uniupr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsacl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsacl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsencrypt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsglob.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifspdu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifsproto.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cifssmb.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
connect.c cifs: Fix NULL pointer dereference of devname 2020-04-06 14:50:18 +02:00
dir.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dns_resolve.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dns_resolve.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
export.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
file.c CIFS: fix POSIX lock leak and invalid ptr deref 2020-04-06 14:20:44 +02:00
fscache.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fscache.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
inode.c cifs: do not attempt cifs operation on smb2+ rename error 2020-04-06 16:38:37 +02:00
ioctl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
link.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
misc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netmisc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nterr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nterr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ntlmssp.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
readdir.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rfc1002pdu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sess.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb1ops.c cifs: use correct format characters 2020-04-06 14:50:13 +02:00
smb2file.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2glob.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2inode.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2maperror.c fix incorrect error code mapping for OBJECTID_NOT_FOUND 2020-04-06 15:17:31 +02:00
smb2misc.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2ops.c cifs: fix strcat buffer overflow and reduce raciness in smb21_set_oplock_level() 2020-04-06 18:13:44 +02:00
smb2pdu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2pdu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2proto.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2status.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smb2transport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smbencrypt.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smberr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
smbfsctl.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
transport.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
winucase.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
xattr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30