OpenCloudOS-Kernel/drivers/block/xen-blkback
Konrad Rzeszutek Wilk 604c499cbb 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 <JBeulich@suse.com>
Acked-by: Ian Campbell <Ian.Campbell@citrix.com>
[v1: Made it pr_warn instead of pr_debug]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2013-06-07 17:05:55 -04:00
..
Makefile xen/blkback: Squash vbd.c,interface.c in blkback.c and xenbus.c respectivly. 2011-04-20 11:57:59 -04:00
blkback.c xen/blkback: Check device permissions before allowing OP_DISCARD 2013-06-07 17:05:55 -04:00
common.h xen-blkback: allocate list of pending reqs in small chunks 2013-05-07 09:42:17 -04:00
xenbus.c xen/blkback: Use physical sector size for setup 2013-06-07 17:05:53 -04:00