Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp1453142rwp; Thu, 13 Jul 2023 11:03:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlGkiCrCNjHQZeq6+yAAU0F59JbDS2mWATPLswGyA8GbWlggphg2xSrVpxRygzMh+DdqqvGj X-Received: by 2002:a05:6a20:1586:b0:133:2fb2:9170 with SMTP id h6-20020a056a20158600b001332fb29170mr1967454pzj.2.1689271419528; Thu, 13 Jul 2023 11:03:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689271419; cv=none; d=google.com; s=arc-20160816; b=LswU5lbduNiA1NhZuYn38EjnAX1/3NUc3g8XpGUIBiBjJq+RAUtTvP/+YLok/uMl8Z NAa/ybCbRQoHd49ozBQBtUKD76OqYsPAWy46QEIrWWQMBP/GCZ3G+80TfrPu/4Qefpja pr2oU6A9MtTIOqcEw4yZpuzewlcHX9fectrtIqryhUV+SSIH/C+eTa8mnbIEft9HkTTU WNLhLm4O9aYMUSj4EE7Hz7lylU8K3fuLMcocLRkwcF8IUsATb3AI4xFhcSNOQ3an83aM zP266Li4oibDhi3Lpg4X66qEMjp9BKFqdj0tzf1UZsjgPS73JsEzX3qlfSBWr/QslKCk eWgA== 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=Lq0dSBv4S2ADFTDlFw+U8GJHF5afWm8c+OBzDmy3WMQ=; fh=swmwYARvwYa6RsY+EHesiFUY2NKK8H6FatzwAU0IpPc=; b=ub6A0lsGgvUa0kvHJrPqVIh9WoxjKU3ec9JLR8lRSkB3Redm2BMwTFfi8F8uzwjyV9 L8LDBx3Q8Kg4HA1+RiuPCMY2R/oR3rHS1BnqIvWhyizqh1Le1M9xeX9pAwBSIFpI++L5 Qqd01fw6s4t7GtVOlwdsW/s7ILxRDIZy9SR/UIES+vUsn1/ea+L6Cw4DTrI20DzHKS9F y+xOYPRVT6qHMoIHkJbxIme/zQzdr0I30bjW4dtMEKA28KL9TURUYrBZWBT4VgZpZobo aexSEj/FGsMRvaXjqzJtBLDVusBER1jvWfhTJ2GJFISM+sMVAKSYVULmYrkDJBUWqcGU 9lkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=E17PYgGX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020a62d116000000b00679a6ce03f6si5236396pfg.59.2023.07.13.11.03.23; Thu, 13 Jul 2023 11:03:39 -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=@gmail.com header.s=20221208 header.b=E17PYgGX; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232796AbjGMRi5 (ORCPT + 99 others); Thu, 13 Jul 2023 13:38:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232759AbjGMRi4 (ORCPT ); Thu, 13 Jul 2023 13:38:56 -0400 Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD7C26BC; Thu, 13 Jul 2023 10:38:55 -0700 (PDT) Received: by mail-ua1-x932.google.com with SMTP id a1e0cc1a2514c-794d1714617so352807241.0; Thu, 13 Jul 2023 10:38:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689269934; x=1691861934; 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=Lq0dSBv4S2ADFTDlFw+U8GJHF5afWm8c+OBzDmy3WMQ=; b=E17PYgGXc3qQL2vUcdSDLIqy2nWsal1OePYKQCrBoSXTte7R75Wak40hCV9rJEQY1w 22RJy3gYJvXoPjjM81W1asaVJ6mAsfa7G4FdHtNMRYu3tzqKQGFb8RM0aB9yJKfn9csb rtrgDfS6IcPRaVqvF/1PPHd2I0mHFm1GpN7BfUXfSu8FP5DBdHUEwdopInVKkQR9gfDt G4NQIhLGTu/y/jwaO9FVIwuBlW9Se0Zrs48nsEiagGscRxRx7o0W5h5azEJuUDJh71mM vU0aO0GDT8k6wJQiPWmxstk1/Fe0PC9Oj9HZMbVJFZp2Tk8QUc8VOZDGb+KdiL+Aayjh Aqww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689269934; x=1691861934; 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=Lq0dSBv4S2ADFTDlFw+U8GJHF5afWm8c+OBzDmy3WMQ=; b=EQeEk/0TQTmPCYmp6r1ELYu96Du6Yo1YUtHBEttFBzl036f4IBDfOUojbErAMYB6zU PHxe3E392Xki4au045ym6D4VS1jhUPYnS4x7PUhDHjMfChOeMAhuHFuFDBuhzm81iSIS aaWLrNACX8ByXaZ3XxD13CeiQCY79aWr5x6+X/aNLj+S/QLWCSZZ5+HnrCZ0MUAr8d7Z fxfsd5ByFvJnWeEXk5gE8xXWlVvj5gcwxBlpvP0K4Pl2WuDff9BLRzp4deW9isBD2+tE 6zwJuJkSTTiNuLBIzMfJhfKUrtZmlTK5/Bzla3pywEU761IV5qqF26mzU/x+ISvIqmEW ZksA== X-Gm-Message-State: ABy/qLZt33Yq/7eLYaSVpRrIvzdzYIsQIjJ1fPlGmb/pAvZNzIV4THaS 2t30qZAy523WnH013eZKDpaoY/vjHZSJ66+VY4U= X-Received: by 2002:a1f:bdcc:0:b0:46e:7102:7211 with SMTP id n195-20020a1fbdcc000000b0046e71027211mr1618120vkf.11.1689269934311; Thu, 13 Jul 2023 10:38:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Willem de Bruijn Date: Thu, 13 Jul 2023 13:38:18 -0400 Message-ID: Subject: Re: [PATCH v2 net] gso: fix dodgy bit handling for GSO_UDP_L4 To: Yan Zhai 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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 1:28=E2=80=AFPM Yan Zhai wrote= : > > 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/CAJPywTKDdjtwkLVUW6LRA2FU912qcDmQOQGt2WaDo28K= zYDg+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 packet= s.") > 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}"