Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc
From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-05-04 04:55:41
Also in:
linux-fsdevel, linux-xfs, lkml
From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-05-04 04:55:41
Also in:
linux-fsdevel, linux-xfs, lkml
On Thu, 3 May 2007 21:29:55 -0700 Andrew Morton [off-list ref] wrote:
quoted
+ ret = -EFBIG; + if (offset + len > inode->i_sb->s_maxbytes) + goto out_fput;This code does handle offset+len going negative, but only by accident, I suspect.
But it doesn't handle offset+len wrapping through zero.