android_kernel_sony_sdm845/fs/nfs/blocklayout
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dan Carpenter 9ba1a9ea7c pnfs/blocklayout: off by one in bl_map_stripe()
commit 0914bb965e38a055e9245637aed117efbe976e91 upstream.

"dev->nr_children" is the number of children which were parsed
successfully in bl_parse_stripe().  It could be all of them and then, in
that case, it is equal to v->stripe.volumes_count.  Either way, the >
should be >= so that we don't go beyond the end of what we're supposed
to.

Fixes: 5c83746a0c ("pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-09 20:01:23 +02:00
..
blocklayout.c pnfs/blocklayout: fix last_write_offset incorrectly set to page boundary 2016-10-13 16:42:53 -04:00
blocklayout.h pnfs/blocklayout: update last_write_offset atomically with extents 2016-08-23 11:41:38 -04:00
dev.c pnfs/blocklayout: off by one in bl_map_stripe() 2018-09-09 20:01:23 +02:00
extent_tree.c pnfs/blocklayout: update last_write_offset atomically with extents 2016-08-23 11:41:38 -04:00
Makefile pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing 2014-09-12 13:33:50 -04:00
rpc_pipefs.c nfs/blocklayout: add SCSI layout support 2016-03-18 11:38:17 -04:00