1
0
Fork 0
remarkable-linux/fs/nfs/blocklayout
Dan Carpenter ec13c53dc5 pnfs/blocklayout: off by one in bl_map_stripe()
commit 0914bb965e 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 19:55:59 +02:00
..
Makefile pnfs/blocklayout: in-kernel GETDEVICEINFO XDR parsing 2014-09-12 13:33:50 -04:00
blocklayout.c block: replace bi_bdev with a gendisk pointer and partitions index 2017-08-23 12:49:55 -06: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 19:55:59 +02:00
extent_tree.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rpc_pipefs.c nfs/blocklayout: add SCSI layout support 2016-03-18 11:38:17 -04:00