Re: [PATCH AUTOSEL 4.14 40/66] hv_netvsc: Validate number of allocated sub-channels

2020-12-23 Thread Sasha Levin
On Wed, Dec 23, 2020 at 09:59:31AM +0100, Andrea Parri wrote: On Wed, Dec 23, 2020 at 02:47:56AM +, Michael Kelley wrote: From: Sasha Levin Sent: Tuesday, December 22, 2020 6:22 PM > > From: "Andrea Parri (Microsoft)" > > [ Upstream commit 206ad34d52a2f1205c84d08c12fc116aad0eb407 ] > > Lac

Re: [PATCH AUTOSEL 4.14 40/66] hv_netvsc: Validate number of allocated sub-channels

2020-12-23 Thread Andrea Parri
On Wed, Dec 23, 2020 at 02:47:56AM +, Michael Kelley wrote: > From: Sasha Levin Sent: Tuesday, December 22, 2020 6:22 PM > > > > From: "Andrea Parri (Microsoft)" > > > > [ Upstream commit 206ad34d52a2f1205c84d08c12fc116aad0eb407 ] > > > > Lack of validation could lead to out-of-bound reads

RE: [PATCH AUTOSEL 4.14 40/66] hv_netvsc: Validate number of allocated sub-channels

2020-12-22 Thread Michael Kelley
From: Sasha Levin Sent: Tuesday, December 22, 2020 6:22 PM > > From: "Andrea Parri (Microsoft)" > > [ Upstream commit 206ad34d52a2f1205c84d08c12fc116aad0eb407 ] > > Lack of validation could lead to out-of-bound reads and information > leaks (cf. usage of nvdev->chan_table[]). Check that the n

[PATCH AUTOSEL 4.14 40/66] hv_netvsc: Validate number of allocated sub-channels

2020-12-22 Thread Sasha Levin
From: "Andrea Parri (Microsoft)" [ Upstream commit 206ad34d52a2f1205c84d08c12fc116aad0eb407 ] Lack of validation could lead to out-of-bound reads and information leaks (cf. usage of nvdev->chan_table[]). Check that the number of allocated sub-channels fits into the expected range. Suggested-by