a859481b79
We've got user reported bugs that when opperating with slow NFS
backends with large (30+ GB) disk files, the prlimit of cpu_time 2 is
guessed to be the issue at hand because if folks hot patch a qemu-img
that runs before the prlimitted one, the prlimitted one succeeds.
This increases the allowed cpu timeout, as well as tweaking the error
message so that we return something more prescriptive when the
qemu-img command fails with prlimit abort.
The original bug (#1449062) the main mitigation concern here was a
carefully crafted image that gets qemu-img to generate > 1G of json,
and hence could be a node attack vector. cpu_time was never mentioned,
and I think was added originally as a belt and suspenders addition. As
such, bumping it to 8 seconds shouldn't impact our protection in any
real way.
Change-Id: I1f4549b787fd3b458e2c48a90bf80025987f08c4
Closes-Bug: #1646181
(cherry picked from commit
|
||
---|---|---|
.. | ||
disk | ||
hyperv | ||
image | ||
ironic | ||
libvirt | ||
vmwareapi | ||
xenapi | ||
__init__.py | ||
block_device.py | ||
configdrive.py | ||
diagnostics.py | ||
driver.py | ||
event.py | ||
fake.py | ||
firewall.py | ||
hardware.py | ||
imagecache.py | ||
images.py | ||
interfaces.template | ||
netutils.py | ||
osinfo.py | ||
storage_users.py | ||
virtapi.py | ||
volumeutils.py | ||
watchdog_actions.py |