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

2017-11-08 Thread KY Srinivasan
Stephen Hemminger > > ; de...@linuxdriverproject.org; linux- > > ker...@vger.kernel.org > > Cc: Paul Meyer ; Long Li > > > > Subject: [Revised PATCH v2] hv: kvp: Avoid reading past allocated blocks > > from KVP file > > > > [This sender failed our frau

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

2017-11-08 Thread Haiyang Zhang
r ; Long Li > > Subject: [Revised PATCH v2] hv: kvp: Avoid reading past allocated blocks > from KVP file > > [This sender failed our fraud detection checks and may not be who they > appear to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] > > From: Paul Meyer &

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

2017-11-01 Thread Long Li
r.kernel.org; Paul Meyer > > Subject: Re: [PATCH v2] hv: kvp: Avoid reading past allocated blocks from > KVP file > > On Wed, Nov 01, 2017 at 06:39:00PM +, Long Li wrote: > > > From: Greg KH [mailto:g...@kroah.com] > > > Sent: Tuesday, October 31, 2017 11:50 PM &

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

2017-11-01 Thread Greg KH
nux- > > ker...@vger.kernel.org; sta...@vger.kernel.org; Paul Meyer > > ; Long Li > > Subject: Re: [PATCH v2] hv: kvp: Avoid reading past allocated blocks from > > KVP file > > > > On Tue, Oct 31, 2017 at 01:02:35PM -0700, Long Li wrote: > > > From: Paul

[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 more than one block over the

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

2017-11-01 Thread Long Li
> Subject: Re: [PATCH v2] hv: kvp: Avoid reading past allocated blocks from > KVP file > > 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

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

2017-10-31 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). This causes the records buf

[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 more than one block over the