Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp820025rdb; Thu, 30 Nov 2023 22:01:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGH8X9KVmawKUcWXq8c2TbV79kEmFjAej4MUle1UMvQrUgn4lR0OLCeEHkOeENJqKwkfIkd X-Received: by 2002:a05:6a00:27ac:b0:6cd:f3f4:56c9 with SMTP id bd44-20020a056a0027ac00b006cdf3f456c9mr4223610pfb.17.1701410475622; Thu, 30 Nov 2023 22:01:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701410475; cv=none; d=google.com; s=arc-20160816; b=tFy5EylvtqRdlVdEIear84PORj25FlhE7y5yxMav1CJVPeBHyKALNzrTtu+aE7fycJ XaU5kpnIf9IDDEBJWAFey4CyIJIK0vWHvI17tuYYe4kojv8N6/kgQ0tixwTBwpw7QgyC Gql9EWiJUwlbx6sWwYmisN0htvlDiB192YglyMpqsExzZ1BPbbeJ3S6Pekt/Z8t/m7Xi Y8HuSboZmd+oP6wcghB9/vkAeJnLiCjLZZhP+EvaukBrDZWr9/JDsHSF8vnBiqRWSxK6 xR3lV+w6POHIYVu7Q6NfW9kt0HHDC/LlzlQ+FAlvSKSHaiVYKpfPbMMDwE/ky1EFI5JU WMmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date :dkim-signature; bh=c5UCSvcRKtd6d2j+BMVs/9VlfhZGRPUwVUQBSZyn2JA=; fh=IaV99mbcAqHchLOM6WQ3vbZQOIeahBuEHpOG+hm7VVM=; b=f97th4O9NHsIAkmUrFL/b/lWxbnoLjlG49PIFzDXFYcavwc6Ha3O4/DhruyPjz3EMX IRZrpE/BC5gT4CTd0JnKAgS94J3ObKpy+gHKsgb+fN7DN4MchnGDuVLhqbQnkA3P2DS1 L4BLno9H2LkxHjj7BJIqHN/pRs3zVGyQEDHWR38h2aoX7CjP5F/FV+em1+QSimmGXK6O ngC0UHmcV9jlKdqQvCCLIUHdGLayYU/TTEzG2pIAjAOi9bfmuul3wTAd1qRHvJ4RfY3c k4+3pqU5KwPDzTfPUMkIBBg13/YuDQxq2DCKQNgtUL3rqWv5w+WeGCrG6PpV9TumRw0Q 1EyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h89/9ypn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id b7-20020a655cc7000000b005c6034ba3f4si2793069pgt.419.2023.11.30.22.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 22:01:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h89/9ypn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 91BBA808EF61; Thu, 30 Nov 2023 22:00:22 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377402AbjLAGAG (ORCPT + 99 others); Fri, 1 Dec 2023 01:00:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjLAGAE (ORCPT ); Fri, 1 Dec 2023 01:00:04 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E0DC21703 for ; Thu, 30 Nov 2023 22:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701410410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=c5UCSvcRKtd6d2j+BMVs/9VlfhZGRPUwVUQBSZyn2JA=; b=h89/9ypn+tqpelQK6Ah1mGU1Pcrr2ZQo/nVFu7VGZI5Tf3aMmA1N2NE5bxSl4+pqAy3Dox 1w/yW8WyrvpzFOGuelcieEaKzA69onPjXC1M7SfDCaifOoZT6cJDtuCAWWEGlWEuT/QT/n FKxut0sA7X+T78zKG8tsLlMDSQ7yHZA= Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-593-ux07uRhNMsiPXZJHIQy7zQ-1; Fri, 01 Dec 2023 01:00:08 -0500 X-MC-Unique: ux07uRhNMsiPXZJHIQy7zQ-1 Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-5c6072bc218so207618a12.1 for ; Thu, 30 Nov 2023 22:00:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701410407; x=1702015207; h=content-transfer-encoding:mime-version:references:in-reply-to:from :subject:cc:to:message-id:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=c5UCSvcRKtd6d2j+BMVs/9VlfhZGRPUwVUQBSZyn2JA=; b=n+cOM3rpoX6u72pFNFAQ2SBOWBTlPboa9mi9VU4MDqGn5Ci8gJqHIeDT1cvf/Dwnje mju8MDvUswoGfADfnk3WZhv/qeVDKHu9Ms8Mo6L+h5xo+VvgmSKoSMpM+cfUb23PSS4v eFOu9mw0RRRj/9H3jn9fHSlyK02Q12L6n25OF2E99WhrYOlOSDKL0pLrTK3cSvlMbCeY Gd9pV2/61A7L+rysO2Geuo15ZTgcgbB0ZNrDMfLQLpPpYkt3ZmWBV+KCyhPr6T2nGJLS erHcmK2ZoS8Fd23XcBOg8p2YMiRnXzqhifXU60L1bOnBbFr5vwEtbWD3x9Lblfp5fhxv Mh/g== X-Gm-Message-State: AOJu0YzYmJ8DGXkPqgy4uzqL48Gb19v2QsHJLiPnpL4sjc2aASuZisCJ 38N1Q5pz3tcX06xtJcbyahUt2K15Rgr38iTJtsTVWXE5jkj9ju3B8O/31PAuvmKxVVXH9DxhI5x 4I2fi8x+JHI6o7sUHTLpJEQ/z X-Received: by 2002:a17:90a:1656:b0:286:49cb:ef22 with SMTP id x22-20020a17090a165600b0028649cbef22mr3583844pje.24.1701410407249; Thu, 30 Nov 2023 22:00:07 -0800 (PST) X-Received: by 2002:a17:90a:1656:b0:286:49cb:ef22 with SMTP id x22-20020a17090a165600b0028649cbef22mr3583751pje.24.1701410405567; Thu, 30 Nov 2023 22:00:05 -0800 (PST) Received: from localhost ([240d:1a:c0d:9f00:3342:3fe3:7275:954]) by smtp.gmail.com with ESMTPSA id z8-20020a17090ab10800b002865028e17csm1039533pjq.9.2023.11.30.22.00.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 22:00:05 -0800 (PST) Date: Fri, 01 Dec 2023 15:00:01 +0900 (JST) Message-Id: <20231201.150001.994919262711540315.syoshida@redhat.com> To: edumazet@google.com Cc: willemdebruijn.kernel@gmail.com, pabeni@redhat.com, davem@davemloft.net, dsahern@kernel.org, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] ipv4: ip_gre: Handle skb_pull() failure in ipgre_xmit() From: Shigeru Yoshida In-Reply-To: References: <20231130.230329.2023533070545022513.syoshida@redhat.com> X-Mailer: Mew version 6.9 on Emacs 29.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 30 Nov 2023 22:00:22 -0800 (PST) DQpPbiBUaHUsIDMwIE5vdiAyMDIzIDE1OjA1OjM4ICswMTAwLCBFcmljIER1bWF6ZXQgd3JvdGU6 DQo+IE9uIFRodSwgTm92IDMwLCAyMDIzIGF0IDM6MDPigK9QTSBTaGlnZXJ1IFlvc2hpZGEgPHN5 b3NoaWRhQHJlZGhhdC5jb20+IHdyb3RlOg0KPj4NCj4+IE9uIFdlZCwgMjkgTm92IDIwMjMgMTA6 NTY6NDcgKzAxMDAsIEVyaWMgRHVtYXpldCB3cm90ZToNCj4+ID4gT24gV2VkLCBOb3YgMjksIDIw MjMgYXQgMjo1MeKAr0FNIFNoaWdlcnUgWW9zaGlkYSA8c3lvc2hpZGFAcmVkaGF0LmNvbT4gd3Jv dGU6DQo+PiA+Pg0KPj4gPj4gT24gTW9uLCAyNyBOb3YgMjAyMyAxMDo1NTowMSAtMDUwMCwgV2ls bGVtIGRlIEJydWlqbiB3cm90ZToNCj4+ID4+ID4gU2h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