Re: ext2_file_lseek()

Manfred Spraul (manfreds@colorfullife.com)
Thu, 12 Aug 1999 20:33:04 +0200


Alan Cox wrote:
>
> > But the user could use sys_readp(), and then he can try to read/write such
> > data blocks.
>
> Then sys_pread is buggy and wants fixing. Fair enough.

I wanted to say:
This check should be part of ext2_file_write() and ext2_file_read()
since testing for huge files in sys_lseek is ineffective. You can easily
bypass this check since you can bypass sys_lseek(). (sys_pread, or
lseek(MAX-1);write(2), ...).

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/