]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: fix buffer overrun in parse_DFS_referrals
authorJeff Layton <jlayton@redhat.com>
Wed, 17 Dec 2008 11:31:53 +0000 (06:31 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 17 Dec 2008 22:59:55 +0000 (14:59 -0800)
commitcfa041cd9314f4f5af8db074ec0f76c9745b065d
tree41b7d9c95c1e5e1f413c3b026a26979c34d0b3e0
parente1c41828ef416cd2958994d965afa7be1ee9709b
cifs: fix buffer overrun in parse_DFS_referrals

While testing a kernel with memory poisoning enabled, I saw some warnings
about the redzone getting clobbered when chasing DFS referrals. The
buffer allocation for the unicode converted version of the searchName is
too small and needs to take null termination into account.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/cifs/cifssmb.c