Re: Nasty 2.6 sendfile() bug / regression; affects vsftpd

From: chris
Date: Sun Apr 18 2004 - 08:54:24 EST



On Sat, 17 Apr 2004, Linus Torvalds wrote:

> Your patch is horribly ugly. How about this (much simpler) patch instead?

Hey, it's a guaranteed way to get your attention ;-)

> Can you test that this one-liner fixes the issue for you?

It certainly does.

Cheers
Chris

> ----
> --- 1.37/fs/read_write.c Mon Apr 12 10:54:20 2004
> +++ edited/fs/read_write.c Sat Apr 17 20:09:41 2004
> @@ -635,7 +635,7 @@
> return ret;
> }
>
> - return do_sendfile(out_fd, in_fd, NULL, count, MAX_NON_LFS);
> + return do_sendfile(out_fd, in_fd, NULL, count, 0);
> }
>
> asmlinkage ssize_t sys_sendfile64(int out_fd, int in_fd, loff_t __user *offset, size_t count)
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/