public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
* compat tasks and O_LARGEFILE
@ 2004-02-28  1:57 Arun Sharma
  2004-02-28 23:56 ` David S. Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Arun Sharma @ 2004-02-28  1:57 UTC (permalink / raw)
  To: linux-arch

This code sequence in linux/fs/open.c:

> asmlinkage long sys_open(const char __user * filename, int flags, int mode)
> {
> 	char * tmp;
> 	int fd, error;
> 
> #if BITS_PER_LONG != 32
> 	flags |= O_LARGEFILE;
> #endif

is problematic for compat tasks. For eg: negative seeks can result in 
~4GB files getting created.

Are there any objections to letting a task reset this flag using a fcntl?
There are some corner cases, such as what if the file pointer is already
beyond 4GB etc, but I think they're solvable.

	-Arun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-03-01  5:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-28  1:57 compat tasks and O_LARGEFILE Arun Sharma
2004-02-28 23:56 ` David S. Miller
2004-02-29  2:38   ` Arun Sharma
2004-03-01  5:56     ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox