]> www.infradead.org Git - users/dwmw2/qemu.git/commit
block/nfs: limit maximum readahead size to 1MB
authorPeter Lieven <pl@kamp.de>
Fri, 26 Jun 2015 11:14:01 +0000 (13:14 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 Jul 2015 02:46:36 +0000 (21:46 -0500)
commit1c17e8c7d3f045d0cebef524cb51fd6a6ecadc77
tree79578ba1ea2c88f45a5092098ae13d63eb57a036
parentffd060d51fafc1b1e7d8dade06159a10f2e04316
block/nfs: limit maximum readahead size to 1MB

a malicious caller could otherwise specify a very
large value via the URI and force libnfs to allocate
a large amount of memory for the readahead buffer.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Message-id: 1435317241-25585-1-git-send-email-pl@kamp.de
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 29c838cdc96c4d117f00c75bbcb941e1be9590fb)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
block/nfs.c