On Thu, 3 May 2007 21:29:55 -0700 Andrew Morton <[email protected]> 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. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- Re: Interface for the new fallocate() system call
- From: "Amit K. Arora" <[email protected]>
- Re: Interface for the new fallocate() system call
- From: Andreas Dilger <[email protected]>
- Re: Interface for the new fallocate() system call
- From: "Amit K. Arora" <[email protected]>
- Re: Interface for the new fallocate() system call
- From: Jakub Jelinek <[email protected]>
- Re: Interface for the new fallocate() system call
- From: "Amit K. Arora" <[email protected]>
- [PATCH 0/5] fallocate system call
- From: "Amit K. Arora" <[email protected]>
- [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc
- From: "Amit K. Arora" <[email protected]>
- Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc
- From: Andrew Morton <[email protected]>
- Re: Interface for the new fallocate() system call
- Prev by Date: Re: [PATCH 3/8] Universal power supply class (was: battery class)
- Next by Date: Re: RHEL 3
- Previous by thread: Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc
- Next by thread: Re: [PATCH 1/5] fallocate() implementation in i86, x86_64 and powerpc
- Index(es):