Re: [PATCH v3 3/3] unix/stream: fix peeking with an offset largerthan data in queue

From: David Miller
Date: Tue Apr 30 2013 - 00:44:28 EST

From: Benjamin Poirier <bpoirier@xxxxxxx>
Date: Mon, 29 Apr 2013 17:42:14 -0400

> Currently, peeking on a unix stream socket with an offset larger than len of
> the data in the sk receive queue returns immediately with bogus data.
> This patch fixes this so that the behavior is the same as peeking with no
> offset on an empty queue: the caller blocks.
> Signed-off-by: Benjamin Poirier <bpoirier@xxxxxxx>

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at