Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1024541pxb; Fri, 15 Apr 2022 18:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8X2KvPFnWchL+s4Vlym6Mn+xVWldulIyP2J0sYSb/5tkWDyllmamtilTxAqOTWfGuICcS X-Received: by 2002:a17:90b:1e45:b0:1d2:3ef6:18d9 with SMTP id pi5-20020a17090b1e4500b001d23ef618d9mr324026pjb.221.1650073432550; Fri, 15 Apr 2022 18:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650073432; cv=none; d=google.com; s=arc-20160816; b=af2XyhLUYE1UUSaGZFvwirRL2+0jyQw2ZkdcHyYj3cQIpg1CaUOGDWcp8o0j6iAlkL tS54maz0eggClPtD1Upu12ts7UsywVOmrc/RP6dO4Q4iPbTZALPwCjk0MTZKaOW/vOes ubPhL/pGGIkgHxIXQO4h8biwMheH6JmfGFj/Qh9NrDvSGQzNQdRGJhNVf0eMMUxO6HEZ DUknwZ2JmweKQfjym6Mz44CzLiQLKml3MGw5PR+ucfZnZwZZqMm6aqv+r0Rr536Dq2Dv bYXsSpRlOXD3eqLKjQVREmjj0zSbRZ8ejUUtKLSvmQtl7EuUFdrNaAXXDUB1j+eeYVC1 wXGg== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=X5JOm8DljDqHEXUFMKg05WrrTSwgvWYnn4Z/DktxKSI=; b=gcHc4OtZcmvbRIfhHia67U1uxu87G9Hg+roV868TjarJO7tSFN+zej7SEX4PjmIdDU +RZjbqNFwRdL4yXK4Tbv+VHnLjngleERKFtSPc6Ngi5J9BD9mPYZyQfhAl6Xotdl117r abn1e7HhLR5bgmHB/6Wgi3H59X6SOKfdtqNMV9ELkyqA808XXzyKIepZQSQ8OWWBfkGT 6liT5DFNAmmge4+YpR+PYBOJKylA3GAeIYwrm1/4SpEryP5cG4lf0KR8IvUxdEWFjDWx hXjpH+E3O//Z2vQsZwptggvAx4u5KOeTOEpsuyx9Wp75l5wM4laukBpXeFcwgQh3LnNz 03DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LhS4HVTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id i10-20020a63b30a000000b003816043efadsi2950045pgf.418.2022.04.15.18.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 18:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LhS4HVTw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8ACA1129844; Fri, 15 Apr 2022 18:08:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241513AbiDOROK (ORCPT + 99 others); Fri, 15 Apr 2022 13:14:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235654AbiDOROJ (ORCPT ); Fri, 15 Apr 2022 13:14:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E98CC9BAC5; Fri, 15 Apr 2022 10:11:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7A820622FC; Fri, 15 Apr 2022 17:11:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0F0EFC385A5; Fri, 15 Apr 2022 17:11:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650042699; bh=otlO/OIUU2fVwhveUnEKAHXGYzMlUOqNqTTdX66MHH4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LhS4HVTwBNomPkag1zawxDlK5ZibI99470h9RFi4UMWobq5PdEipjVHGUKbiS7uZE tFVZpN7D1D6WMzLPj3UWXmyh0Am6a/8HWyfQKFnIMp5nkn5LB1GBFS6xe3fEqmu8yQ XGHM5L8LQDRYVw3MduEDsgIkcwK6YSy9u6yLTwDQsx5fqZZTNknI4CSgc6C4QbCU8d 7SMTreUvBdKpj04UEFmUWhFGzplE4y3gMU3t08zk3VAJTj8vyP95QEYAyU+BZQSqUx WXv7ttzgyk1DnKAgDRDDQBh3aqBLQ93MsuP44z++fmUhielE+iYM8p0R7jGfisbez+ 1Fi6/CLCeUs6A== Date: Fri, 15 Apr 2022 19:11:33 +0200 From: Jakub Kicinski To: Peilin Ye Cc: "David S. Miller" , Hideaki YOSHIFUJI , David Ahern , Peilin Ye , Cong Wang , Feng Zhou , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net 2/2] ip6_gre: Fix skb_under_panic in __gre6_xmit() Message-ID: <20220415191133.0597a79a@kernel.org> In-Reply-To: <20220414200854.GA2729@bytedance> References: <9cd9ca4ac2c19be288cb8734a86eb30e4d9e2050.1649715555.git.peilin.ye@bytedance.com> <20220414131424.744aa842@kernel.org> <20220414200854.GA2729@bytedance> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 14 Apr 2022 13:08:54 -0700 Peilin Ye wrote: > > We should also reject using SEQ with collect_md, but that's a separate > > issue. > > Could you explain this a bit more? It seems that commit 77a5196a804e > ("gre: add sequence number for collect md mode.") added this > intentionally. Interesting. Maybe a better way of dealing with the problem would be rejecting SEQ if it's not set on the device itself. When the device is set up without the SEQ bit enabled it disables Tx locking (look for LLTX). This means that multiple CPUs can try to do the tunnel->o_seqno++ in parallel. Not catastrophic but racy for sure.