Re: BUG: mmapfile/writev spurious zero bytes (x86_64/not i386,bisected, reproducable)

From: Bron Gondwana
Date: Tue Jun 17 2008 - 22:36:18 EST


On Tue, Jun 17, 2008 at 10:08:24AM -0700, Linus Torvalds wrote:
> On Tue, 17 Jun 2008, Bron Gondwana wrote:
> >
> > And I appear to have sent the one without the usage comments at the top.
> > Here they are:
>
> Very interesting. There's certainly something there.
>
> That said, there's a distracting bug which is visible when doing an strace
>
> lseek(4, 140333890921392, SEEK_SET) = -1 EINVAL (Invalid argument)
> write(4, "\0\0\0\0", 4) = 4

Bah - crap. Sorry about that. I sent you the wrong version of the
code. That's what I get for not putting it in revision control.

That bug exists because I did an htonl on a value that I shouldn't
have.

Bron ( now to read the rest of the thread! )
--
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/