Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30536862rwd; Thu, 6 Jul 2023 07:18:22 -0700 (PDT) X-Google-Smtp-Source: APBJJlFT7YMe5xVtbjbduF80Td0YV6sv9zBr/G/oTnb+Ms9CgXRsSMrPjOoD9vRofaq9mJAbpwtD X-Received: by 2002:a05:6a20:2d94:b0:11f:b885:e83a with SMTP id bf20-20020a056a202d9400b0011fb885e83amr1402405pzb.57.1688653102538; Thu, 06 Jul 2023 07:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688653102; cv=none; d=google.com; s=arc-20160816; b=DHbMW1imu4g4qI7TBIflajYKnUcyLizI4h9hbLzs7HcIpN36bC4zUwgOZq59ZzNIwi xPJzCgLbFiu4mAywNTaNDnblBhMaMQvj/rFW4Xms7ISTfwI4PgG/XEIGcXpncMBg/N7w /9BACa/NMoGvbU/W8Ud/ENtrSFTSVVyG2MTsnRy+V5nS4A6vq6qeZ/TNCABmJ1qS4gzj ortkHq3+NbasVea480RL1uM2T0NAz5i3B9np2BMU5OBwS7RUiPRDfiGecbUlB0UIdBd8 hgzB4vWlKd2Su4tY7q1aFY9WuDFCLwUnsVv2bPznLgVEeQxZ2QcSeG81PAxgYlBe4oqk gfWQ== 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=9o4NNAa0hEp40MVI+hiXpvFx+kGwffUnYwX0NvprFrM=; fh=nkPo/NPazRVRtLDSTtB+Br8BNetNfQ5wgxnQWjOmsw4=; b=DlLYR25qvvvcpDwz4R4Ywg/LSNw3Tw8xYUXnQmwlyr+Op/hncWaL6owWYl9QvX1cyw SYoAxlUFLgmwOC0GCFYnsFlj30JuRBLipoXTKAsAk+wimSzyo6yFZkp6b1HAHHwt7o1k 5x0Jwo/E9NYzi6HwgL0vekkY5YTLQlGtTbu0zLDJjIkIdooTCOJB1lVXt8EecuPevGmG FTQwqKVWQ6ZP9/Kg8m+zYVDOejFnTj6Al1KM7azFjGcui0/T+GslAq+FJWeXJQ05PUsz PsIGJJwuYefGfV3i890Wadj0JHemXpzvTXrbO0vMBK50wmtPZOBDst7Y3YuJdbuupIKm 3CgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=JnyflN6P; 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=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w137-20020a62828f000000b0067c2b7b23e3si1432531pfd.345.2023.07.06.07.18.07; Thu, 06 Jul 2023 07:18:22 -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=@google.com header.s=20221208 header.b=JnyflN6P; 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=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232710AbjGFN44 (ORCPT + 99 others); Thu, 6 Jul 2023 09:56:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229613AbjGFN4z (ORCPT ); Thu, 6 Jul 2023 09:56:55 -0400 Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 611D61BFB for ; Thu, 6 Jul 2023 06:56:51 -0700 (PDT) Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-401d1d967beso317171cf.0 for ; Thu, 06 Jul 2023 06:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688651810; x=1691243810; 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=9o4NNAa0hEp40MVI+hiXpvFx+kGwffUnYwX0NvprFrM=; b=JnyflN6PUKyqI7ewT3XXEZWRKVLniQMvIuQLxFHC/dmxQ8lwB6HEcKrmIPpGMMDSuU jg7QLZ4mpNSokFlOr0Kgh1zJHmOxa8RpU1oiOHtLv23R7R+u+h18wBN+l8GxZfDMZFvC B56h3KzPm84Bf28/RdNWAxypmU0KMwM8Bw2kbSII1opUPHq1YC0LPhN7cKyAMDyhEb36 ialNyHhaq6ZSRxGYMq/a+qGita4ERfSym1AeWkkUM7AIXZPg3etqC93IxawyLeNRKKct gjH5T+B7YWlLd7040vFwYE43AWsggser8E/WGSVcA/05/l4XEYT159HB6+5QCavjLe5o IzBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688651810; x=1691243810; 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=9o4NNAa0hEp40MVI+hiXpvFx+kGwffUnYwX0NvprFrM=; b=TX4/Y72HuNGs6WrN3Y3JKs4hrYTl6f5BHXQLMNOBvPh3r/3vkBlxrT2UXxvoI+SldD T0cuHkI6yBFnZX8uQZpzALrGYkm9h0e2GSe8IJtlw3XKACJfbbYbjBLu31OgWBRQW+kF zjqlkEjJVUNWnDu2GiQ1fj3s9TLpADCR3S9bi5D0Bgz0Y5tfxJv+ciE7zU3J0hbxWbnY 590xDKkIFz2u8xlhHbFKqI55Q71OtXcl2sAHuWg58BS6IekN82GezUux1/vHR8o02vNC UFNVnqUdWn1Zm027QGoiiRjm5tAOat3Q3ylqL68jWGMGryGRxKPuSJE1el954OH9s9UB elxw== X-Gm-Message-State: ABy/qLankegunVy9e6Aw4X6vCKTnDTMWD2zEBj1j0ypzV+H0Y9oU57Ev cxHbJBD6ynNGTyemMNGEVNeOX7/pJtqRjxagVBCXfg== X-Received: by 2002:ac8:5887:0:b0:3f9:6930:1308 with SMTP id t7-20020ac85887000000b003f969301308mr115350qta.13.1688651810098; Thu, 06 Jul 2023 06:56:50 -0700 (PDT) MIME-Version: 1.0 References: <22aad588-47d6-6441-45b2-0e685ed84c8d@intel.com> <0a040331995c072c56fce58794848f5e9853c44f.camel@redhat.com> <486ae2687cd2e2624c0db1ea1f3d6ca36db15411.camel@redhat.com> <5688456234f5d15ea9ca0f000350c28610ed2639.camel@redhat.com> <92a4d42491a2c219192ae86fa04b579ea3676d8c.camel@redhat.com> <062061fc4d4d3476e3b0255803b726956686eb19.camel@redhat.com> <14cd6a50bd5de13825017b75c98cb3115e84acc1.camel@redhat.com> <67ff0f7901e66d1c0d418c48c9a071068b32a77d.camel@redhat.com> In-Reply-To: <67ff0f7901e66d1c0d418c48c9a071068b32a77d.camel@redhat.com> From: Eric Dumazet Date: Thu, 6 Jul 2023 15:56:38 +0200 Message-ID: Subject: Re: [Intel-wired-lan] bug with rx-udp-gro-forwarding offloading? To: Paolo Abeni , Willem de Bruijn Cc: Ian Kumlien , Alexander Lobakin , intel-wired-lan , Jakub Kicinski , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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, Jul 6, 2023 at 3:02=E2=80=AFPM Paolo Abeni wrot= e: > > On Thu, 2023-07-06 at 13:27 +0200, Ian Kumlien wrote: > > On Thu, Jul 6, 2023 at 10:42=E2=80=AFAM Paolo Abeni = wrote: > > > On Wed, 2023-07-05 at 15:58 +0200, Ian Kumlien wrote: > > > > On Wed, Jul 5, 2023 at 3:29=E2=80=AFPM Paolo Abeni wrote: > > > > > > > > > > On Wed, 2023-07-05 at 13:32 +0200, Ian Kumlien wrote: > > > > > > On Wed, Jul 5, 2023 at 12:28=E2=80=AFPM Paolo Abeni wrote: > > > > > > > > > > > > > > On Tue, 2023-07-04 at 16:27 +0200, Ian Kumlien wrote: > > > > > > > > More stacktraces.. =3D) > > > > > > > > > > > > > > > > cat bug.txt | ./scripts/decode_stacktrace.sh vmlinux > > > > > > > > [ 411.413767] ------------[ cut here ]------------ > > > > > > > > [ 411.413792] WARNING: CPU: 9 PID: 942 at include/net/ud = p.h:509 > > > > > > > > udpv6_queue_rcv_skb (./include/net/udp.h:509 net/ipv6/udp.c= :800 > > > > > > > > net/ipv6/udp.c:787) > > > > > > > > > > > > > > I'm really running out of ideas here... > > > > > > > > > > > > > > This is: > > > > > > > > > > > > > > WARN_ON_ONCE(UDP_SKB_CB(skb)->partial_cov); > > > > > > > > > > > > > > sort of hint skb being shared (skb->users > 1) while enqueued= in > > > > > > > multiple places (bridge local input and br forward/flood to t= un > > > > > > > device). I audited the bridge mc flooding code, and I could n= ot find > > > > > > > how a shared skb could land into the local input path. > > > > > > > > > > > > > > Anyway the other splats reported here and in later emails are > > > > > > > compatible with shared skbs. > > > > > > > > > > > > > > The above leads to another bunch of questions: > > > > > > > * can you reproduce the issue after disabling 'rx-gro-list' o= n the > > > > > > > ingress device? (while keeping 'rx-udp-gro-forwarding' on). > > > > > > > > > > > > With rx-gro-list off, as in never turned on, everything seems t= o run fine > > > > > > > > > > > > > * do you have by chance qdiscs on top of the VM tun devices? > > > > > > > > > > > > default qdisc is fq > > > > > > > > > > IIRC libvirt could reset the qdisc to noqueue for the owned tun > > > > > devices. > > > > > > > > > > Could you please report the output of: > > > > > > > > > > tc -d -s qdisc show dev > > > > > > > > I don't have these set: > > > > CONFIG_NET_SCH_INGRESS > > > > CONFIG_NET_SCHED > > > > > > > > so tc just gives an error... > > > > > > The above is confusing. AS CONFIG_NET_SCH_DEFAULT depends on > > > CONFIG_NET_SCHED, you should not have a default qdisc, too ;) > > > > Well it's still set in sysctl - dunno if it fails > > > > > Could you please share your kernel config? > > > > Sure... > > > > As a side note, it hasn't crashed - no traces since we did the last cha= nge > > It sounds like an encouraging sing! (last famous words...). I'll wait 1 > more day, than I'll submit formally... > > > For reference, this is git diff on the running kernels source tree: > > diff --git a/net/core/skbuff.c b/net/core/skbuff.c > > index cea28d30abb5..1b2394ebaf33 100644 > > --- a/net/core/skbuff.c > > +++ b/net/core/skbuff.c > > @@ -4270,6 +4270,17 @@ struct sk_buff *skb_segment_list(struct sk_buff = *skb, > > > > skb_push(skb, -skb_network_offset(skb) + offset); > > > > + if (WARN_ON_ONCE(skb_shared(skb))) { > > + skb =3D skb_share_check(skb, GFP_ATOMIC); > > + if (!skb) > > + goto err_linearize; > > + } > > + > > + /* later code will clear the gso area in the shared info */ > > + err =3D skb_header_unclone(skb, GFP_ATOMIC); > > + if (err) > > + goto err_linearize; > > + > > skb_shinfo(skb)->frag_list =3D NULL; > > > > while (list_skb) { > > ...the above check only, as the other 2 should only catch-up side > effects of lack of this one. In any case the above address a real > issue, so we likely want it no-matter-what. > Interesting, I wonder if this could also fix some syzbot reports Willem and I are investigating. Any idea of when the bug was 'added' or 'revealed' ?