RE: [PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-31 Thread Long Li
> From: Paul Meyer > > While reading in more than one block (50) of KVP records, the allocation goes > per block, but the reads used the total number of allocated records (without > resetting the pointer/stream). This causes the records buffer to overrun when > the refresh reads more than one blo

RE: [PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-31 Thread Long Li
gt; > > ; de...@linuxdriverproject.org; > > > linux-kernel@vger.kernel.org; Paul Meyer > > > Subject: Re: [PATCH] hv: kvp: Avoid reading past allocated blocks > > > from KVP file > > > > > > On Mon, Oct 30, 2017 at 05:08:03PM -0700, Long Li wrote: &

Re: [PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-31 Thread Greg KH
ct.org; linux-kernel@vger.kernel.org; Paul Meyer > > > > Subject: Re: [PATCH] hv: kvp: Avoid reading past allocated blocks from KVP > > file > > > > On Mon, Oct 30, 2017 at 05:08:03PM -0700, Long Li wrote: > > > From: Paul Meyer > > > > >

[PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-31 Thread Long Li
From: Paul Meyer While reading in more than one block (50) of KVP records, the allocation goes per block, but the reads used the total number of allocated records (without resetting the pointer/stream). This causes the records buffer to overrun when the refresh reads more than one block over the

RE: [PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-31 Thread Long Li
> From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Tuesday, October 31, 2017 1:43 AM > To: Long Li > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Paul Meyer > > Subject: Re: [PATCH] hv:

Re: [PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-31 Thread Greg KH
On Mon, Oct 30, 2017 at 05:08:03PM -0700, Long Li wrote: > From: Paul Meyer > > While reading in more than one block (50) of KVP records, the allocation goes > per block, but the reads used the total number of allocated records (without > resetting the pointer/stream). This causes the records buf

[PATCH] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-10-30 Thread Long Li
From: Paul Meyer While reading in more than one block (50) of KVP records, the allocation goes per block, but the reads used the total number of allocated records (without resetting the pointer/stream). This causes the records buffer to overrun when the refresh reads more than one block over the