android_kernel_samsung_a7y1.../fs/cifs
Roberto Bergantinos Corpas ba78adc1d1 CIFS: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM
commit 31fad7d41e73731f05b8053d17078638cf850fa6 upstream.

 In cifs_read_allocate_pages, in case of ENOMEM, we go through
whole rdata->pages array but we have failed the allocation before
nr_pages, therefore we may end up calling put_page with NULL
pointer, causing oops

Signed-off-by: Roberto Bergantinos Corpas <rbergant@redhat.com>
Acked-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:21:41 +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: cifs_read_allocate_pages: don't iterate through whole page array on ENOMEM 2020-04-06 18:21:41 +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