RE: [PATCH] hv_utils: Add validation for untrusted Hyper-V values

2020-07-29 Thread Stephen Hemminger
@vger.kernel.org; Michael Kelley ; Andrea Parri ; Saruhan Karademir Subject: Re: [PATCH] hv_utils: Add validation for untrusted Hyper-V values On Tue, Jul 28, 2020 at 5:04 PM Stephen Hemminger wrote: > > You may want to use one of the macros that prints this once only. > This is a "should neve

Re: [PATCH] hv_utils: Add validation for untrusted Hyper-V values

2020-07-29 Thread Andres Beltran
On Tue, Jul 28, 2020 at 5:04 PM Stephen Hemminger wrote: > > You may want to use one of the macros that prints this once only. > This is a "should never happen" type error, so if something goes wrong it > might happens so much that journal/syslog would get overloaded. Certainly, printing error

[PATCH] hv_utils: Add validation for untrusted Hyper-V values

2020-07-28 Thread Andres Beltran
For additional robustness in the face of Hyper-V errors or malicious behavior, validate all values that originate from packets that Hyper-V has sent to the guest in the host-to-guest ring buffer. Ensure that invalid values cannot cause indexing off the end of the icversion_data array in