lkml.org 
[lkml]   [2008]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [patch] iov_iter_advance fix
Thanks Nick,

I've verified this fixes the problem I was seeing.

On Thu, Mar 6, 2008 at 12:39 AM, Nick Piggin <npiggin@suse.de> wrote:
>
> iov_iter_advance skips over zero-length iovecs, however it does not properly
> terminate at the end of the iovec array. Fix this by checking against
> i->count before we skip a zero-length iov.
>
> The bug was reproduced with a test program that continually randomly creates
> iovs to writev. The fix was also verified with the same program and also it
> could verify that the correct data was contained in the file after each
> writev.
>
> 2.6.25 and 2.6.24.stable requires this fix.
>
> Signed-off-by: Nick Piggin <npiggin@suse.de>
> Cc: stable@kernel.org

Tested-by: Kevin Coffman <kwc@citi.umich.edu>


\
 
 \ /
  Last update: 2008-03-06 16:19    [W:0.051 / U:7.292 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site