Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1992589rwp; Thu, 13 Jul 2023 21:50:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlGBv4PbjMAIHbwM3S9s3BU8WCuKnHdmATKNfcrjlXcWlU/kWoBLzIKx4fm13M7CRo7jrF4j X-Received: by 2002:a17:90b:1095:b0:263:3567:f99 with SMTP id gj21-20020a17090b109500b0026335670f99mr2271547pjb.15.1689310246944; Thu, 13 Jul 2023 21:50:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689310246; cv=none; d=google.com; s=arc-20160816; b=ytygOmPJdpfCJyr3gG1ER7bRPf2pdrnrS72/dcJEgNnb1fLEPVuH/5DsXnYRwvsY57 gIE2usBglWYRww0QyW62Epwm+kBFbBL6Y6KgxUGfnRFL7PAU6Q8fksiNSZJBXxucvvgK mMLqx7d1tCjooQm2761r0lyUb4A8jeNo1+XWSofSy3OpRguVFteKVgspIxeLi1ksKG0M fih4kxwlvdrdVzcvNuglFyzDAWgseBJybpLYKNWYl9phuJaZHNPXveVjc3shq0fHtM76 fhAYKGnv6UYnd9ieACnZDZmxjC1vXjYhfkGYX3FI9AYEsBc+uPoQMoxP1L9h3GtFZPcV aVAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qHf1bw4VEpalWptJ6sYJzbTQLUqyeRRjE32ptoAxuck=; fh=DhfsODxSlS5S7s23TKftj2PJ81YKUD0tRoJomBSNEek=; b=e5bBFcUwQy+7LV4TWJjpLCQvmBZjuAHw24cp85cL5Lxi2RfS6HKY+xoSdGNHdJbTXn hu8+aNfQfCTFElNBOPjLRgpbOfENPD/OtU7ewMFBppZ5dqcyNf66tlKIOMhgWUskwsy8 qNxnRKF3pXJOWtLfJBDW1VOzANhvKSz/o7o9lsYviFIsvOVhh/gc1F9vhfYgKW7sNbbg KhqlM/5zCKXt/0eWHRrApekefRLBnKzQy6cwtF49MoicIMYDfbNqGZs+apjRAFH8l/Oh B54TB/8TxVE11hUPEVy0ok9/VXVr3OtmJjmOr2ksWXLZgq3fx40U0YECxvOrkiYXfqKx Mebg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=WwQTm81P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a656082000000b00553b783ad97si6337630pgu.228.2023.07.13.21.50.34; Thu, 13 Jul 2023 21:50:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=WwQTm81P; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbjGNE2K (ORCPT + 99 others); Fri, 14 Jul 2023 00:28:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232372AbjGNE2F (ORCPT ); Fri, 14 Jul 2023 00:28:05 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D1F12736 for ; Thu, 13 Jul 2023 21:28:04 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-51fdf291330so1710198a12.2 for ; Thu, 13 Jul 2023 21:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; t=1689308882; x=1691900882; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=qHf1bw4VEpalWptJ6sYJzbTQLUqyeRRjE32ptoAxuck=; b=WwQTm81PifCGhzdXHwWxFJ/ZyEy6HDXKNCuPzEZXtpDnW8q5Muu8GTMaM7bPmfc53y mwIjXhH1ncVmbGLd2bgQq2RnH1N/6uTOwawh+Z3XiemFY3Dz4COKat3Yce3aoPrf+qYa tPPdsbfW9BBefcRRqo7XNhiQx0cBf1C2WLU8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689308882; x=1691900882; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qHf1bw4VEpalWptJ6sYJzbTQLUqyeRRjE32ptoAxuck=; b=Q2zt8tWqqHHrM16hb0mewwTptFQmzhI1zU9z5gOuy9N0mEJWSLwb3/IgWfOFA/AM3y gwNkLvGWg3JxL8hJ/bAnYY+SZkud99C+LQRMHSYmMmtT5izTdbxfsG8JAdEHGunYgepS v9m+7EteBfKj5RC3vF+gdkSTOre2QjtqFoLpbgTWx6ucG0aWLVqHbdgSHK3ygCBHeOyx wlCts2qKFgB8MQNTO7IRqlTMHk+U/h9/WP6vGhT8dqIHGEhxJLDVnBH+ovRzM5yCzJXT pIRC4YI7Oc915ZxFB5JAF8kU99nmUlCb7olfNPGV0ew9175GZb9Y2yrSKtcaMFSIZ57d Jw0Q== X-Gm-Message-State: ABy/qLb45XzQVGYYX3LPsSRtaxmasAk3V7PrtYpRxS2GVMUgAgX8gFPy CT10iUqVrUgZSb4pBVjn1OUhxuCUBo4vY5s1+ubmNA== X-Received: by 2002:a05:6402:60a:b0:51d:7fa6:62ca with SMTP id n10-20020a056402060a00b0051d7fa662camr3222649edv.14.1689308882567; Thu, 13 Jul 2023 21:28:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Yan Zhai Date: Thu, 13 Jul 2023 23:27:51 -0500 Message-ID: Subject: Re: [PATCH v2 net] gso: fix dodgy bit handling for GSO_UDP_L4 To: Willem de Bruijn Cc: "open list:NETWORKING [TCP]" , kernel-team@cloudflare.com, Eric Dumazet , "David S. Miller" , David Ahern , Jakub Kicinski , Paolo Abeni , Marcelo Ricardo Leitner , Xin Long , Herbert Xu , Andrew Melnychenko , Jason Wang , open list , "open list:SCTP PROTOCOL" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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, Jul 13, 2023 at 12:38=E2=80=AFPM Willem de Bruijn wrote: > > On Thu, Jul 13, 2023 at 1:28=E2=80=AFPM Yan Zhai wro= te: > > > > Commit 1fd54773c267 ("udp: allow header check for dodgy GSO_UDP_L4 > > packets.") checks DODGY bit for UDP, but for packets that can be fed > > directly to the device after gso_segs reset, it actually falls through > > to fragmentation: > > > > https://lore.kernel.org/all/CAJPywTKDdjtwkLVUW6LRA2FU912qcDmQOQGt2WaDo2= 8KzYDg+A@mail.gmail.com/ > > > > This change restores the expected behavior of GSO_UDP_L4 packets. > > > > Fixes: 1fd54773c267 ("udp: allow header check for dodgy GSO_UDP_L4 pack= ets.") > > Suggested-by: Willem de Bruijn > > Signed-off-by: Yan Zhai > > Reviewed-by: Willem de Bruijn > > for next time: places hyperlinks in the block of tags at the bottom of > the commit as "Link: ${URL}" Good to learn, thanks! -- Yan