From: Tim Gardner Date: Sun, 13 Oct 2013 19:29:03 +0000 (-0600) Subject: cifs: ntstatus_to_dos_map[] is not terminated X-Git-Tag: v3.12-rc6~4^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c26606cbe4937f2228a27bb0c2cad19855be87a;p=pandora-kernel.git cifs: ntstatus_to_dos_map[] is not terminated Functions that walk the ntstatus_to_dos_map[] array could run off the end. For example, ntstatus_to_dos() loops while ntstatus_to_dos_map[].ntstatus is not 0. Granted, this is mostly theoretical, but could be used as a DOS attack if the error code in the SMB header is bogus. [Might consider adding to stable, as this patch is low risk - Steve] Reviewed-by: Jeff Layton Signed-off-by: Tim Gardner Signed-off-by: Steve French --- Reading git-diff-tree failed