Skip to content
  • Eric Blake's avatar
    395aecd0
    qemu-io: Allow larger write zeroes under no fallback · 395aecd0
    Eric Blake authored
    
    
    When writing zeroes can fall back to a slow write, permitting an
    overly large request can become an amplification denial of service
    attack in triggering a large amount of work from a small request.  But
    the whole point of the no fallback flag is to quickly determine if
    writing an entire device to zero can be done quickly (such as when it
    is already known that the device started with zero contents); in those
    cases, artificially capping things at 2G in qemu-io itself doesn't
    help us.
    
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
    Message-Id: <20211203231539.3900865-4-eblake@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
    395aecd0
    qemu-io: Allow larger write zeroes under no fallback
    Eric Blake authored
    
    
    When writing zeroes can fall back to a slow write, permitting an
    overly large request can become an amplification denial of service
    attack in triggering a large amount of work from a small request.  But
    the whole point of the no fallback flag is to quickly determine if
    writing an entire device to zero can be done quickly (such as when it
    is already known that the device started with zero contents); in those
    cases, artificially capping things at 2G in qemu-io itself doesn't
    help us.
    
    Signed-off-by: default avatarEric Blake <eblake@redhat.com>
    Message-Id: <20211203231539.3900865-4-eblake@redhat.com>
    Reviewed-by: default avatarVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Loading