Re: [PATCH net-next] tcp: Return error instead of partial read for saved syn headers

From: Rick Jones
Date: Mon May 18 2015 - 14:41:53 EST


On 05/18/2015 11:35 AM, Eric B Munson wrote:
Currently the getsockopt() requesting the cached contents of the syn
packet headers will fail silently if the caller uses a buffer that is
too small to contain the requested data. Rather than fail silently and
discard the headers, getsockopt() should return an error and report the
required size to hold the data.

Is there any chapter and verse on whether a "failed" getsockopt() may alter the items passed to it?

rick jones

--
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/