Thomas Huth 
		90a0778421 
		
	 
	
	
	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] 
		
	 
		2023-09-08 13:08:52 +03:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2023-06-20 10:01:30 +02:00 
		 
	
		
			
			
			
			
			
			2023-03-10 15:35:38 +08:00 
		 
	
		
			
			
			
			
			
			2023-02-23 14:10:17 +01:00 
		 
	
		
			
			
			
			
			
			2023-01-18 11:14:34 +01:00 
		 
	
		
			
			
			
			
			
			2023-05-02 15:47:41 +01:00 
		 
	
		
			
			
			
			
			
			2022-12-14 16:19:35 +01:00 
		 
	
		
			
			
			
			
			
			2023-06-22 09:25:40 +02:00 
		 
	
		
			
			
			
			
			
			2023-03-10 15:35:38 +08:00 
		 
	
		
			
			
			
			
			
			2023-03-10 15:35:38 +08:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-03-10 15:35:38 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2023-08-31 19:47:43 +02:00 
		 
	
		
			
			
			
			
			
			2020-03-31 21:14:35 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2023-03-28 13:10:55 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-07-10 18:59:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-07-10 18:59:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-04-20 10:25:43 +01:00 
		 
	
		
			
			
			
			
			
			2023-07-14 11:10:57 +02:00 
		 
	
		
			
			
			
			
			
			2023-02-17 13:31:33 +08:00 
		 
	
		
			
			
			
			
			
			2020-05-15 07:08:14 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:50 +02:00 
		 
	
		
			
			
			
			
			
			2022-11-11 09:39:03 +01:00 
		 
	
		
			
			
			
			
			
			2023-06-20 10:01:30 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-05-02 15:47:40 +01:00 
		 
	
		
			
			
			
			
			
			2022-01-20 11:47:52 +00:00 
		 
	
		
			
			
			
			
			
			2022-03-08 19:38:17 +01:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-23 15:20:15 +08:00 
		 
	
		
			
			
			
			
			
			2023-05-02 15:47:39 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2022-11-11 09:39:03 +01:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-07-07 22:23:17 +01:00 
		 
	
		
			
			
			
			
			
			2023-07-07 16:35:12 +08:00 
		 
	
		
			
			
			
			
			
			2023-07-07 22:23:17 +01:00 
		 
	
		
			
			
			
			
			
			2020-08-21 06:18:24 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-06-28 07:53:14 -04:00 
		 
	
		
			
			
			
			
			
			2023-07-10 18:59:32 -04:00 
		 
	
		
			
			
			
			
			
			2017-11-20 11:08:00 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-09-08 13:08:52 +03:00 
		 
	
		
			
			
			
			
			
			2022-04-06 10:50:37 +02:00 
		 
	
		
			
			
			
			
			
			2016-07-12 16:20:46 +02:00 
		 
	
		
			
			
			
			
			
			2023-03-07 17:04:30 +00:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:50 +02:00 
		 
	
		
			
			
			
			
			
			2023-02-08 07:28:05 +01:00 
		 
	
		
			
			
			
			
			
			2023-05-16 09:14:18 +02:00