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

2017-11-08 Thread KY Srinivasan
...@vger.kernel.org > Cc: Paul Meyer <paul.me...@microsoft.com>; Long Li > <lon...@microsoft.com> > Subject: RE: [Revised PATCH v2] hv: kvp: Avoid reading past allocated blocks > from KVP file > > > > > -Original Message- > > From: Long Li [ma

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

2017-11-08 Thread Haiyang Zhang
de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org > Cc: Paul Meyer <paul.me...@microsoft.com>; Long Li > <lon...@microsoft.com> > Subject: [Revised PATCH v2] hv: kvp: Avoid reading past allocated blocks > from KVP file > > [This sender failed our fraud

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

2017-11-01 Thread Long Li
inger > <sthem...@microsoft.com>; de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org; sta...@vger.kernel.org; Paul Meyer > <paul.me...@microsoft.com> > Subject: Re: [PATCH v2] hv: kvp: Avoid reading past allocated blocks from > KVP file > > On Wed, Nov 01, 2

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

2017-11-01 Thread Greg KH
lt;haiya...@microsoft.com>; Stephen Hemminger > > <sthem...@microsoft.com>; de...@linuxdriverproject.org; linux- > > ker...@vger.kernel.org; sta...@vger.kernel.org; Paul Meyer > > <paul.me...@microsoft.com>; Long Li <lon...@microsoft.com> > > Subject: Re: [PATCH

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

2017-11-01 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

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

2017-11-01 Thread Long Li
de...@linuxdriverproject.org; linux- > ker...@vger.kernel.org; sta...@vger.kernel.org; Paul Meyer > <paul.me...@microsoft.com>; Long Li <lon...@microsoft.com> > Subject: Re: [PATCH v2] hv: kvp: Avoid reading past allocated blocks from > KVP file > > On Tue, Oct 31

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

2017-11-01 Thread Greg KH
On Tue, Oct 31, 2017 at 01:02:35PM -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).

[PATCH v2] 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