From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3A47C4320A for ; Sat, 21 Aug 2021 06:22:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 960A860F3A for ; Sat, 21 Aug 2021 06:22:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbhHUGWP (ORCPT ); Sat, 21 Aug 2021 02:22:15 -0400 Received: from relay.sw.ru ([185.231.240.75]:36490 "EHLO relay.sw.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232056AbhHUGWL (ORCPT ); Sat, 21 Aug 2021 02:22:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=Content-Type:MIME-Version:Date:Message-ID:From: Subject; bh=jXG48tWESZb6lwsKKk8bGd3ORv54iPGDzLfPPpbyMwQ=; b=ce5qLSZ39acEgFHia sCBTLAUyFg5/haCLEqrBK5wvpip5qttB/4JT94NcAn4OFVJNuoAlOCQfzFzI3m9YdNTamP6Z8t7R6 XHJjTkb/kQXk3hwY8yd8B2PfEicTf2RmPgRjMym/dRAelr2H1ePuJQBmCxFzgk1JVeslPw9Bp0ups =; Received: from [10.93.0.56] by relay.sw.ru with esmtp (Exim 4.94.2) (envelope-from ) id 1mHKNi-008OhM-9T; Sat, 21 Aug 2021 09:21:26 +0300 Subject: Re: [PATCH NET v4 3/7] ipv6: use skb_expand_head in ip6_xmit To: Christoph Paasch Cc: "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Eric Dumazet , netdev , LKML , kernel@openvz.org, Julian Wiedmann References: <77f3e358-c75e-b0bf-ca87-6f8297f5593c@virtuozzo.com> From: Vasily Averin Message-ID: Date: Sat, 21 Aug 2021 09:21:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/21 1:44 AM, Christoph Paasch wrote: > (resend without html - thanks gmail web-interface...) > On Fri, Aug 20, 2021 at 3:41 PM Christoph Paasch >> AFAICS, this is because pskb_expand_head (called from >> skb_expand_head) is not adjusting skb->truesize when skb->sk is set >> (which I guess is the case in this particular scenario). I'm not >> sure what the proper fix would be though... Could you please elaborate? it seems to me skb_realloc_headroom used before my patch called pskb_expand_head() too and did not adjusted skb->truesize too. Am I missed something perhaps? The only difference in my patch is that skb_clone can be not called, though I do not understand how this can affect skb->truesize. Thank you, Vasily Averin