nfsd: better layoutupdate bounds-checking
authorJ. Bruce Fields <bfields@redhat.com>
Fri, 18 Mar 2016 15:31:17 +0000 (11:31 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 22 Mar 2016 18:39:35 +0000 (14:39 -0400)
commit4b15da44e742871206582f6aa2997b009648f02f
treee69e230a2db6740a6bc44fd479df3f692429a0c0
parent10c4de10b2624ab9d83bd8e708d39a1867302a6a
nfsd: better layoutupdate bounds-checking

You could add any multiple of 2^32/PNFS_SCSI_RANGE_SIZE to nr_iomaps and
still pass this check.  You'd probably still fail the following kcalloc,
but best to be paranoid since this is from-the-wire data.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/blocklayoutxdr.c