qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v4 00/21] block: Handle failure for potentially


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v4 00/21] block: Handle failure for potentially large allocations
Date: Thu, 07 Aug 2014 20:34:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

On 24.06.2014 17:36, Kevin Wolf wrote:
A not too small part of the recent CVEs were DoS scenarios by letting
qemu abort with too large memory allocations. We generally "fixed" these
cases by setting some limits on values read from image files that
influence the size of allocations.

Because we still need to allow reading large images, this works only to
a certain degree and we still can get fairly large allocations, which
are not unthinkable to fail on some machines.

This series converts potentially large allocations to g_try_malloc() and
friends and handles failure gracefully e.g. by returning -ENOMEM. This
may cause hot-plug of a new disk or individual requests to fail, but the
VM as a whole can keep running.

Ping – is there anything missing here? This series does contain one patch from me, so I'm naturally interested in seeing this series getting merged. ;-)

Max



reply via email to

[Prev in Thread] Current Thread [Next in Thread]