android_kernel_samsung_univ.../fs/cifs
Pavel Shilovsky adc58bfd4d CIFS: Fix a possible invalid memory access in smb2_query_symlink()
commit 7893242e2465aea6f2cbc2639da8fa5ce96e8cc2 upstream.

During following a symbolic link we received err_buf from SMB2_open().
While the validity of SMB2 error response is checked previously
in smb2_check_message() a symbolic link payload is not checked at all.
Fix it by adding such checks.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-20 18:09:20 +02:00
..
asn1.c
cache.c
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c
cifs_fs_sb.h fs/cifs: make share unaccessible at root level mountable 2016-08-20 18:09:20 +02:00
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c File names with trailing period or space need special case conversion 2016-07-27 09:47:39 -07:00
cifs_unicode.h File names with trailing period or space need special case conversion 2016-07-27 09:47:39 -07:00
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c cifs: fix crash due to race in hmac(md5) handling 2016-08-20 18:09:20 +02:00
cifsfs.c fs/cifs: make share unaccessible at root level mountable 2016-08-20 18:09:20 +02:00
cifsfs.h
cifsglob.h
cifspdu.h
cifsproto.h
cifssmb.c
connect.c fs/cifs: make share unaccessible at root level mountable 2016-08-20 18:09:20 +02:00
dir.c cifs: Check for existing directory when opening file with O_CREAT 2016-08-20 18:09:20 +02:00
dns_resolve.c
dns_resolve.h
export.c
file.c
fscache.c
fscache.h
inode.c fs/cifs: make share unaccessible at root level mountable 2016-08-20 18:09:20 +02:00
ioctl.c
Kconfig
link.c
Makefile
misc.c
netmisc.c
nterr.c
nterr.h
ntlmssp.h cifs: dynamic allocation of ntlmssp blob 2016-07-27 09:47:39 -07:00
readdir.c
rfc1002pdu.h
sess.c cifs: dynamic allocation of ntlmssp blob 2016-07-27 09:47:39 -07:00
smb1ops.c
smb2file.c
smb2glob.h remove directory incorrectly tries to set delete on close on non-empty directories 2016-06-01 12:15:48 -07:00
smb2inode.c remove directory incorrectly tries to set delete on close on non-empty directories 2016-06-01 12:15:48 -07:00
smb2maperror.c
smb2misc.c
smb2ops.c CIFS: Fix a possible invalid memory access in smb2_query_symlink() 2016-08-20 18:09:20 +02:00
smb2pdu.c cifs: dynamic allocation of ntlmssp blob 2016-07-27 09:47:39 -07:00
smb2pdu.h
smb2proto.h remove directory incorrectly tries to set delete on close on non-empty directories 2016-06-01 12:15:48 -07:00
smb2status.h
smb2transport.c
smbencrypt.c
smberr.h
smbfsctl.h
transport.c
winucase.c
xattr.c