Re: [PATCH] hw/net/vmxnet3: Fix guest-triggerable assert()

2023-09-07 Thread Michael Tokarev
17.08.2023 15:56, Thomas Huth wrote: 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

Re: [PATCH] hw/net/vmxnet3: Fix guest-triggerable assert()

2023-08-17 Thread Philippe Mathieu-Daudé
Hi Thomas, On 17/8/23 14:56, Thomas Huth wrote: 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

[PATCH] hw/net/vmxnet3: Fix guest-triggerable assert()

2023-08-17 Thread Thomas Huth
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 ("n