[PATCH v5 net-next] net: hv_netvsc: fix netvsc_send_completion to avoid multiple message length checks

2023-09-26 Thread Sonia Sharma
From: Sonia Sharma The switch statement in netvsc_send_completion() is incorrectly validating the length of incoming network packets by falling through to the next case. Avoid the fallthrough. Instead break after a case match and then process the complete() call. The current code has not caused

Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V

2023-09-26 Thread Nuno Das Neves
On 9/26/2023 1:03 AM, Greg KH wrote: On Tue, Sep 26, 2023 at 07:00:51AM +, Wei Liu wrote: On Tue, Sep 26, 2023 at 08:31:03AM +0200, Greg KH wrote: On Tue, Sep 26, 2023 at 05:54:34AM +, Wei Liu wrote: On Tue, Sep 26, 2023 at 06:52:46AM +0200, Greg KH wrote: On Mon, Sep 25, 2023 at

Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V

2023-09-26 Thread Saurabh Singh Sengar
On Mon, Sep 25, 2023 at 05:07:24PM -0700, Nuno Das Neves wrote: > Resend in plain text instead of HTML - oops! > > On 9/23/2023 12:58 AM, Greg KH wrote: > >On Fri, Sep 22, 2023 at 11:38:35AM -0700, Nuno Das Neves wrote: > >>+static int mshv_vtl_get_vsm_regs(void) > >>+{ > >>+ struct

Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V

2023-09-26 Thread Greg KH
On Tue, Sep 26, 2023 at 07:00:51AM +, Wei Liu wrote: > On Tue, Sep 26, 2023 at 08:31:03AM +0200, Greg KH wrote: > > On Tue, Sep 26, 2023 at 05:54:34AM +, Wei Liu wrote: > > > On Tue, Sep 26, 2023 at 06:52:46AM +0200, Greg KH wrote: > > > > On Mon, Sep 25, 2023 at 05:07:24PM -0700, Nuno Das

Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V

2023-09-26 Thread Wei Liu
On Tue, Sep 26, 2023 at 08:31:03AM +0200, Greg KH wrote: > On Tue, Sep 26, 2023 at 05:54:34AM +, Wei Liu wrote: > > On Tue, Sep 26, 2023 at 06:52:46AM +0200, Greg KH wrote: > > > On Mon, Sep 25, 2023 at 05:07:24PM -0700, Nuno Das Neves wrote: > > > > On 9/23/2023 12:58 AM, Greg KH wrote: > > >

Re: [PATCH v3 15/15] Drivers: hv: Add modules to expose /dev/mshv to VMMs running on Hyper-V

2023-09-26 Thread Greg KH
On Tue, Sep 26, 2023 at 05:54:34AM +, Wei Liu wrote: > On Tue, Sep 26, 2023 at 06:52:46AM +0200, Greg KH wrote: > > On Mon, Sep 25, 2023 at 05:07:24PM -0700, Nuno Das Neves wrote: > > > On 9/23/2023 12:58 AM, Greg KH wrote: > > > > Also, drivers should never call pr_*() calls, always use the