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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50B6FC433F5 for ; Wed, 4 May 2022 10:17:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236531AbiEDKUt (ORCPT ); Wed, 4 May 2022 06:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229778AbiEDKUr (ORCPT ); Wed, 4 May 2022 06:20:47 -0400 X-Greylist: delayed 657 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 04 May 2022 03:17:09 PDT Received: from mail.aperture-lab.de (mail.aperture-lab.de [IPv6:2a01:4f8:c2c:665b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC0CA1EACB; Wed, 4 May 2022 03:17:09 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E10F54116B; Wed, 4 May 2022 12:06:02 +0200 (CEST) Date: Wed, 4 May 2022 12:06:00 +0200 From: Linus =?utf-8?Q?L=C3=BCssing?= To: Kevin Mitchell Cc: Matthias Schiffer , Hideaki YOSHIFUJI , netdev@vger.kernel.org, gal@nvidia.com, bridge@lists.linux-foundation.org, Florian Westphal , linux-kernel@vger.kernel.org, Jozsef Kadlecsik , coreteam@netfilter.org, netfilter-devel@vger.kernel.org, Nikolay Aleksandrov , Roopa Prabhu , Jakub Kicinski , Alexey Kuznetsov , "David S. Miller" , Pablo Neira Ayuso Subject: Re: [Bridge] [PATCH v2 0/1] UDP traceroute packets with no checksum Message-ID: References: <20220405235117.269511-1-kevmitch@arista.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220405235117.269511-1-kevmitch@arista.com> X-Last-TLS-Session-Version: TLSv1.3 Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Tue, Apr 05, 2022 at 04:51:15PM -0700, Kevin Mitchell via Bridge wrote: > This is v2 of https://lkml.org/lkml/2022/1/14/1060 > > That patch was discovered to cause problems with UDP tunnels as > described here: > > https://lore.kernel.org/netdev/7eed8111-42d7-63e1-d289-346a596fc933@nvidia.com/ > > This version addresses the issue by instead explicitly handling zero UDP > checksum in the nf_reject_verify_csum() helper function. > > Unlike the previous patch, this one only allows zero UDP checksum in > IPv4. I discovered that the non-netfilter IPv6 path would indeed drop > zero UDP checksum packets, so it's probably best to remain consistent. Are you sure that a UDP zero checksum is not working for IPv6 packets? We are using it here without any issues with VXLAN tunnels. Yes, the original RFC did not allow UDP zero checksums in IPv6 packets, but I believe this has changed: https://www.rfc-editor.org/rfc/rfc6936 (https://www.ietf.org/archive/id/draft-ietf-6man-udpzero-01.html) Regards, Linus