From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Conole Subject: Re: [PATCH] net/unix: fix logic about sk_peek_offset Date: Fri, 02 Oct 2015 08:17:39 -0400 Message-ID: <87r3ldmplo.fsf@bytheb.org> References: <1443733536-992-1-git-send-email-avagin@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet To: Andrey Vagin Return-path: Received: from mail-qk0-f179.google.com ([209.85.220.179]:33293 "EHLO mail-qk0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbbJBMRn (ORCPT ); Fri, 2 Oct 2015 08:17:43 -0400 Received: by qkas79 with SMTP id s79so41602868qka.0 for ; Fri, 02 Oct 2015 05:17:42 -0700 (PDT) In-Reply-To: (Andrey Vagin's message of "Fri, 2 Oct 2015 12:04:39 +0300") Sender: netdev-owner@vger.kernel.org List-ID: 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 addition, the peek offset should be used only if MSG_PEEK is set. <> Agreed here, the behavior is off in the peek offset case. I was unable to apply your patch, for some reason, but will manually try to apply it and test. Thanks very much!