From: Petr Vandrovec Date: Thu, 10 Nov 2016 21:57:14 +0000 (-0800) Subject: Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y X-Git-Tag: v3.2.85~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19b2b6a14c3321617628e6ae5903d6e521dd7ff2;p=pandora-kernel.git Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y commit 2ce9d2272b98743b911196c49e7af5841381c206 upstream. Some code (all error handling) submits CDBs that are allocated on the stack. This breaks with CB/CBI code that tries to create URB directly from SCSI command buffer - which happens to be in vmalloced memory with vmalloced kernel stacks. Let's make copy of the command in usb_stor_CB_transport. Signed-off-by: Petr Vandrovec Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed