From: Kees Cook Date: Mon, 11 Oct 2010 18:28:16 +0000 (-0700) Subject: usb: iowarrior: don't trust report_size for buffer size X-Git-Tag: v2.6.37-rc1~154^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ed780117dbe5acb64280d218f0347f238dafed0;p=pandora-kernel.git usb: iowarrior: don't trust report_size for buffer size If the iowarrior devices in this case statement support more than 8 bytes per report, it is possible to write past the end of a kernel heap allocation. This will probably never be possible, but change the allocation to be more defensive anyway. Signed-off-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed