linux-brain/fs/cifs
Dan Carpenter fe6198c278 CIFS: fix wrapping bugs in num_entries()
commit 56446f218a upstream.

The problem is that "entryptr + next_offset" and "entryptr + len + size"
can wrap.  I ended up changing the type of "entryptr" because it makes
the math easier when we don't have to do so much casting.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:36:37 +02:00
..
Kconfig Allow parsing vers=3.11 on cifs mount 2015-06-27 20:23:32 -07:00
Makefile cifs: Switch to generic xattr handlers 2016-04-23 15:33:03 -04:00
asn1.c [CIFS] cifs: Rename cERROR and cFYI to cifs_dbg 2013-05-04 22:17:23 -05:00
cache.c [CIFS] cifs: Rename cERROR and cFYI to cifs_dbg 2013-05-04 22:17:23 -05:00
cifs_debug.c smb3: fix reset of bytes read and written stats 2018-09-15 09:43:00 +02:00
cifs_debug.h lib: update single-char callers of strtobool() 2016-03-17 15:09:34 -07:00
cifs_dfs_ref.c fs: Better permission checking for submounts 2017-03-15 10:02:44 +08:00
cifs_fs_sb.h CIFS: Add new mount option to set owner uid and gid from special sids in acl 2016-10-14 14:22:01 -05:00
cifs_ioctl.h Enable previous version support 2016-10-13 19:48:11 -05:00
cifs_spnego.c cifs: Create dedicated keyring for spnego operations 2016-05-19 21:56:30 -05:00
cifs_spnego.h [CIFS] Rename three structures to avoid camel case 2011-05-27 04:34:02 +00:00
cifs_unicode.c CIFS: add misssing SFM mapping for doublequote 2017-05-20 14:28:40 +02:00
cifs_unicode.h CIFS: add misssing SFM mapping for doublequote 2017-05-20 14:28:40 +02:00
cifs_uniupr.h cifs: correction of unicode header files 2010-08-20 00:46:42 +00:00
cifsacl.c CIFS: Retrieve uid and gid from special sid if enabled 2016-10-14 14:22:16 -05:00
cifsacl.h cifs: fix SID binary to string conversion 2012-12-11 11:48:49 -06:00
cifsencrypt.c CIFS: zero sensitive data when freeing 2018-02-17 13:21:12 +01:00
cifsfs.c cifs: release cifs root_cred after exit_cifs 2017-10-05 09:43:57 +02:00
cifsfs.h cifs: don't use ->d_time 2016-09-16 12:44:21 +02:00
cifsglob.h smb3: Fix root directory when server returns inode number of zero 2018-04-24 09:34:11 +02:00
cifspdu.h Add way to query server fs info for smb3 2015-08-20 10:19:25 -05:00
cifsproto.h CIFS: Fix a possible memory corruption during reconnect 2017-01-06 10:40:16 +01:00
cifssmb.c cifs: Fix infinite loop when using hard mount option 2018-07-11 16:26:43 +02:00
connect.c CIFS: zero sensitive data when freeing 2018-02-17 13:21:12 +01:00
dir.c cifs: do not allow creating sockets except with SMB1 posix exensions 2018-04-29 11:31:55 +02:00
dns_resolve.c cifs: fix composing of mount options for DFS referrals 2013-05-24 13:08:31 -05:00
dns_resolve.h DNS: Separate out CIFS DNS Resolver code 2010-08-05 17:17:51 +00:00
export.c [CIFS] cifs: Rename cERROR and cFYI to cifs_dbg 2013-05-04 22:17:23 -05:00
file.c CIFS: silence lockdep splat in cifs_relock_file() 2018-04-13 19:47:54 +02:00
fscache.c NFS client updates for Linux 3.13 2013-11-08 05:57:46 +09:00
fscache.h CIFS: FS-Cache: Uncache unread pages in cifs_readpages() before freeing them 2013-09-18 10:17:03 -05:00
inode.c smb3: Do not send SMB3 SET_INFO if nothing changed 2018-09-05 09:20:05 +02:00
ioctl.c cifs: fix CIFS_IOC_GET_MNT_INFO oops 2017-05-20 14:28:40 +02:00
link.c smb3: don't request leases in symlink creation and query 2018-09-05 09:20:05 +02:00
misc.c CIFS: zero sensitive data when freeing 2018-02-17 13:21:12 +01:00
netmisc.c cifs: small underflow in cnvrtDosUnixTm() 2018-03-24 11:00:21 +01:00
nterr.c CIFS: Rename 7 error codes to NT_ style 2012-07-24 10:25:10 -05:00
nterr.h CIFS: Rename 7 error codes to NT_ style 2012-07-24 10:25:10 -05:00
ntlmssp.h cifs: dynamic allocation of ntlmssp blob 2016-06-23 23:45:07 -05:00
readdir.c cifs: prevent integer overflow in nxt_dir_entry() 2018-09-26 08:36:37 +02:00
rfc1002pdu.h
sess.c cifs: check kmalloc before use 2018-09-05 09:20:05 +02:00
smb1ops.c CIFS: Improve readdir verbosity 2017-06-29 13:00:29 +02:00
smb2file.c CIFS: Fix a possible memory corruption in push locks 2017-01-06 10:40:16 +01:00
smb2glob.h SMB3: Add mount parameter to allow user to override max credits 2016-10-12 12:08:33 -05:00
smb2inode.c smb3: Do not send SMB3 SET_INFO if nothing changed 2018-09-05 09:20:05 +02:00
smb2maperror.c Fix problem recognizing symlinks 2014-10-02 14:10:04 -05:00
smb2misc.c cifs: check if SMB2 PDU size has been padded and suppress the warning 2018-09-15 09:42:56 +02:00
smb2ops.c smb3: enumerating snapshots was leaving part of the data off end 2018-09-05 09:20:05 +02:00
smb2pdu.c CIFS: fix wrapping bugs in num_entries() 2018-09-26 08:36:37 +02:00
smb2pdu.h CIFS: Fix maximum SMB2 header size 2017-09-07 08:35:40 +02:00
smb2proto.h Handle mismatched open calls 2017-05-08 07:47:55 +02:00
smb2status.h CIFS: Add SMB2 status codes 2012-07-24 10:25:13 -05:00
smb2transport.c Handle mismatched open calls 2017-05-08 07:47:55 +02:00
smbencrypt.c cifs: Fix smbencrypt() to stop pointing a scatterlist at the stack 2017-01-06 10:40:16 +01:00
smberr.h cifs: map NT_STATUS_ERROR_WRITE_PROTECTED to -EROFS 2010-08-02 12:40:40 +00:00
smbfsctl.h [SMB3] Send durable handle v2 contexts when use of persistent handles required 2015-11-03 09:26:27 -06:00
transport.c Handle mismatched open calls 2017-05-08 07:47:55 +02:00
winucase.c [CIFS] quiet sparse compile warning 2013-09-08 14:54:24 -05:00
xattr.c Add way to query creation time of file via cifs xattr 2016-10-12 12:08:31 -05:00