Skip to content
Commit 1c17e8c7 authored by Peter Lieven's avatar Peter Lieven Committed by Michael Roth
Browse files

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: default avatarPeter Lieven <pl@kamp.de>
Message-id: 1435317241-25585-1-git-send-email-pl@kamp.de
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
(cherry picked from commit 29c838cd)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent ffd060d5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment