Re: [PATCH] nfs client, kernel 2.4.31: readlink result overflow

From: Assar
Date: Wed Sep 14 2005 - 17:22:45 EST


Peter Staubach <staubach@xxxxxxxxxx> writes:
> This code appears to assume that rcvbuf->page_base is zero here, but then
> uses rcvbuf->page_base when calculating where to place the null byte. It
> seems to me that it should either use rcvbuf->page_base in both
> calculations or neither.

The meaning of page_len and page_base are not totally clear to me. Is
it the case that the data starts at offset page_base and there is
page_len bytes of it. If that's the case, I think the code is doing
the right thing.
-
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/