diff options
author | Thomas Huth <thuth@redhat.com> | 2023-08-17 14:56:00 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2023-09-21 19:35:19 +0300 |
commit | 93d4107937dfc846976d64f661ee7cb4f7975f73 (patch) | |
tree | a36db9e844bf29949e0c8eb85bcf6da40662ac57 /scripts/tracetool/backend/log.py | |
parent | 6356785daa8cfab5437b2cc74811807730173b34 (diff) | |
download | qemu-93d4107937dfc846976d64f661ee7cb4f7975f73.zip qemu-93d4107937dfc846976d64f661ee7cb4f7975f73.tar.gz qemu-93d4107937dfc846976d64f661ee7cb4f7975f73.tar.bz2 |
hw/net/vmxnet3: Fix guest-triggerable assert()
The assert() that checks for valid MTU sizes can be triggered by
the guest (e.g. with the reproducer code from the bug ticket
https://gitlab.com/qemu-project/qemu/-/issues/517 ). Let's avoid
this problem by simply logging the error and refusing to activate
the device instead.
Fixes: d05dcd94ae ("net: vmxnet3: validate configuration values during activate")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Cc: qemu-stable@nongnu.org
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
[Mjt: change format specifier from %d to %u for uint32_t argument]
(cherry picked from commit 90a0778421acdf4ca903be64c8ed19378183c944)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'scripts/tracetool/backend/log.py')
0 files changed, 0 insertions, 0 deletions