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

2020-08-14 Thread Andrea Parri
Hi Haiyang, [I'm resuming this work by Andres. Sorry for the delay.] > > switch (nvsp_packet->hdr.msg_type) { > > case NVSP_MSG_TYPE_INIT_COMPLETE: > > case NVSP_MSG1_TYPE_SEND_RECV_BUF_COMPLETE: > > case NVSP_MSG1_TYPE_SEND_SEND_BUF_COMPLETE: > > case NVSP_MSG5_TYPE_SUBCHAN

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

2020-08-02 Thread Haiyang Zhang
nd...@gmail.com; Saruhan > Karademir ; Andres Beltran ; > David S . Miller ; Jakub Kicinski ; > netdev@vger.kernel.org > Subject: [PATCH] hv_netvsc: Add validation for untrusted Hyper-V values > > For additional robustness in the face of Hyper-V errors or malicious > behavior, va

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

2020-07-30 Thread David Miller
From: Andres Beltran Date: Tue, 28 Jul 2020 18:53:21 -0400 > 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

[PATCH] hv_netvsc: 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 an array, or subvert an existing valida