On Thu, 3 May 2007 21:29:55 -0700 Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote: > > + 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. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 5/5] ext4: write support for preallocated blocks/extents, Andrew Morton |
|---|---|
| Next by Date: | Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc, Paul Mackerras |
| Previous by Thread: | Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc, Andrew Morton |
| Next by Thread: | Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc, Paul Mackerras |
| Indexes: | [Date] [Thread] [Top] [All Lists] |