Re: [PATCH] net/unix: fix logic about sk_peek_offset

2015-10-05 Thread David Miller
From: Andrey Vagin Date: Fri, 2 Oct 2015 00:05:36 +0300 > From: Andrey Vagin > > Now send with MSG_PEEK can return data from multiple SKBs. > > Unfortunately we take into account the peek offset for each skb, > that is wrong. We need to apply the peek offset only once. > > In addition, the p

Re: [PATCH] net/unix: fix logic about sk_peek_offset

2015-10-04 Thread Aaron Conole
Andrey Vagin writes: > From: Andrey Vagin > > Now send with MSG_PEEK can return data from multiple SKBs. > > Unfortunately we take into account the peek offset for each skb, > that is wrong. We need to apply the peek offset only once. > > In addition, the peek offset should be used only if MSG_P

Re: [PATCH] net/unix: fix logic about sk_peek_offset

2015-10-03 Thread Andrey Vagin
2015-10-02 15:17 GMT+03:00 Aaron Conole : > Andrey Vagin writes: > >> 2015-10-02 0:05 GMT+03:00 Andrey Vagin : >>> From: Andrey Vagin >>> >>> Now send with MSG_PEEK can return data from multiple SKBs. >>> >>> Unfortunately we take into account the peek offset for each skb, >>> that is wrong. We n

Re: [PATCH] net/unix: fix logic about sk_peek_offset

2015-10-02 Thread Aaron Conole
Andrey Vagin writes: > 2015-10-02 0:05 GMT+03:00 Andrey Vagin : >> From: Andrey Vagin >> >> Now send with MSG_PEEK can return data from multiple SKBs. >> >> Unfortunately we take into account the peek offset for each skb, >> that is wrong. We need to apply the peek offset only once. >> >> In add

Re: [PATCH] net/unix: fix logic about sk_peek_offset

2015-10-02 Thread Andrey Vagin
2015-10-02 0:05 GMT+03:00 Andrey Vagin : > From: Andrey Vagin > > Now send with MSG_PEEK can return data from multiple SKBs. > > Unfortunately we take into account the peek offset for each skb, > that is wrong. We need to apply the peek offset only once. > > In addition, the peek offset should be

[PATCH] net/unix: fix logic about sk_peek_offset

2015-10-01 Thread Andrey Vagin
From: Andrey Vagin Now send with MSG_PEEK can return data from multiple SKBs. Unfortunately we take into account the peek offset for each skb, that is wrong. We need to apply the peek offset only once. In addition, the peek offset should be used only if MSG_PEEK is set. Cc: "David S. Miller"