From: Konrad Rzeszutek Wilk Date: Wed, 16 Jan 2013 16:33:52 +0000 (-0500) Subject: xen/blkback: Check device permissions before allowing OP_DISCARD X-Git-Tag: v3.11-rc3~32^2~9^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=604c499cbbcc3d5fe5fb8d53306aa0fae1990109;p=pandora-kernel.git xen/blkback: Check device permissions before allowing OP_DISCARD We need to make sure that the device is not RO or that the request is not past the number of sectors we want to issue the DISCARD operation for. This fixes CVE-2013-2140. Cc: stable@vger.kernel.org Acked-by: Jan Beulich Acked-by: Ian Campbell [v1: Made it pr_warn instead of pr_debug] Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed