diff options
author | 2011-04-27 13:25:51 -0400 | |
---|---|---|
committer | 2011-04-29 04:57:39 +0000 | |
commit | fcda7f4578bbf9717444ca6da8a421d21489d078 (patch) | |
tree | 5cf2fc99c067eb49f410ad095ca2cabec2fe86ac /kernel/sysctl.c | |
parent | cifs: change bleft in decode_unicode_ssetup back to signed type (diff) | |
download | wireguard-linux-fcda7f4578bbf9717444ca6da8a421d21489d078.tar.xz wireguard-linux-fcda7f4578bbf9717444ca6da8a421d21489d078.zip |
cifs: check for bytes_remaining going to zero in CIFS_SessSetup
It's possible that when we go to decode the string area in the
SESSION_SETUP response, that bytes_remaining will be 0. Decrementing it at
that point will mean that it can go "negative" and wrap. Check for a
bytes_remaining value of 0, and don't try to decode the string area if
that's the case.
Cc: stable@kernel.org
Reported-and-Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions