Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1278847ybi; Fri, 21 Jun 2019 18:05:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzpqPCF0/uJAJlU1l4SZ2sBFM6kTOnABBZo+XqPF0kP/MlHOTY/byzoGnX9t5OOClhEImVa X-Received: by 2002:a17:90b:f0f:: with SMTP id br15mr10328270pjb.101.1561165527557; Fri, 21 Jun 2019 18:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561165527; cv=none; d=google.com; s=arc-20160816; b=xK9Io2hcHvxFssL9ZSzqnypgIVHPviFGVVEoBredEu8c1wPr5P5s0ilJnUZTAQE9Pp D7hMfOYXg54G8pxLEoJTVsmtf+dLhBiyv+8U/6KyUSPVr0HdFo6MKEQqRoifcuSEpbKe 3WRyAwVpiieydLXMewcGFqe4LBuDih+TB/s8RkGB38Hu0FcJaaOaOPOLYrfz13YzsCg3 NEzgttqb4qufSe8b1hMf7S+BK44d30F3Vo2cU8yOf8yzkNOaKSj967EaOFtN9euKU5I7 UXu5dFIwkJBDuF2RcRDcvJEVkIT8UBm4mttJhpWrSxb4haVFix8tLuHxj+lnJN2GLCIU QPiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:subject:from:dkim-signature; bh=8T/ERB8E1LibLg93LolKTUL8QwTL40Jai0YiV5j2f+M=; b=fjRutW6MQcRzjfhwABG9Rhy5z0i879I2IHlBJ1U0vNqCh3NLZ4GvvDc1ODojLESFc+ Riow+/W9fmwCjAPgwgGauPWtUikuzYqA8d77LQ4mjkWtGgfXYLbs/KGty0xrdR1n4P+C H09G+2wr6m4EKZccHZzqQAfCIHnO/1YoRbvYG0NuKeV1nzhSad+qiyM/gix4d31wNsHX iSh8W446b2PUIYBX6Cmm+qvOuDw2dBtPKteE5Rr/orkpwhBI5OZqNj7ZaO4eYVUgbEU7 TjuBYVBfb+EMJgYWrW5+fbb5crBPZG9OehmnJkUjLAr5Ws5gdfzDyTqvTwMbuqEy2QV7 KWjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@valvesoftware.com header.s=mc20150811 header.b=IhcDZi8P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12si3880406plt.411.2019.06.21.18.05.12; Fri, 21 Jun 2019 18:05:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@valvesoftware.com header.s=mc20150811 header.b=IhcDZi8P; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726439AbfFVBDf (ORCPT + 99 others); Fri, 21 Jun 2019 21:03:35 -0400 Received: from us-smtp-delivery-172.mimecast.com ([216.205.24.172]:23931 "EHLO us-smtp-delivery-172.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726052AbfFVBDe (ORCPT ); Fri, 21 Jun 2019 21:03:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=valvesoftware.com; s=mc20150811; t=1561165413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=8T/ERB8E1LibLg93LolKTUL8QwTL40Jai0YiV5j2f+M=; b=IhcDZi8PO/jrXAeNqSCJAkSZeVQax67YUsR4tY3pxpghO+vnR5uneAWUshS/WA0FzrD4L1 B0QsCu5FkqdyZ5qIJVwCXSBR28hW49vUvwWcJXmiNWxFN3q3C3ywdmtFHYL58HrwJIGztM 6yXthMxau2rfSdCAVrWKf+By741KI3U= Received: from smtp01.valvesoftware.com (smtp01.valvesoftware.com [208.64.203.181]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-79-0tQdWoNqOoyH0Az5YJiF6w-1; Fri, 21 Jun 2019 21:03:32 -0400 Received: from [172.16.1.107] (helo=antispam.valve.org) by smtp01.valvesoftware.com with esmtp (Exim 4.86_2) (envelope-from ) id 1heUdq-0006rI-Il for linux-kernel@vger.kernel.org; Fri, 21 Jun 2019 18:16:30 -0700 Received: from antispam.valve.org (127.0.0.1) id h1lv660171s1 for ; Fri, 21 Jun 2019 18:03:31 -0700 (envelope-from ) Received: from mail1.valvemail.org ([172.16.144.22]) by antispam.valve.org ([172.16.1.107]) (SonicWALL 9.0.5.2081 ) with ESMTP id o201906220103310000288-5; Fri, 21 Jun 2019 18:03:31 -0700 Received: from [172.18.41.51] (172.18.41.51) by mail1.valvemail.org (172.16.144.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1415.2; Fri, 21 Jun 2019 18:02:25 -0700 From: "Pierre-Loup A. Griffais" Subject: Re: Steam is broken on new kernels To: Eric Dumazet , Linus Torvalds CC: Greg Kroah-Hartman , lkml References: <20190621214139.GA31034@kroah.com> Message-ID: Date: Fri, 21 Jun 2019 18:01:44 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US X-ClientProxiedBy: mail1.valvemail.org (172.16.144.22) To mail1.valvemail.org (172.16.144.22) X-EXCLAIMER-MD-CONFIG: fe5cb8ea-1338-4c54-81e0-ad323678e037 X-Mlf-CnxnMgmt-Allow: 172.16.144.22 X-Mlf-Version: 9.0.5.2081 X-Mlf-License: BSVKCAP__ X-Mlf-UniqueId: o201906220103310000288 X-MC-Unique: 0tQdWoNqOoyH0Az5YJiF6w-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/21/19 5:19 PM, Eric Dumazet wrote: > On Fri, Jun 21, 2019 at 7:54 PM Linus Torvalds > wrote: >> >> Eric is talking about this patch, I think: >> >> https://patchwork.ozlabs.org/patch/1120222/ >> >=20 > That is correct. >=20 > I am about to take a flight from Boston to Paris, so I can not really > follow discussions/tests for the following hours. I built the tip of linux-5.1.y and reproduced the issue while trying to=20 log out and back into Steam; it exhibited this symptom as well: pgriffais@pgriffais:~$ nstat -az | grep -i wqueue TcpExtTCPWqueueTooBig 31 0.0 I applied Eric's path to the tip of the branch and ran that kernel and=20 the bug didn't occur through several logout / login cycles, so things=20 look good at first glance. I'll keep running that kernel and report back=20 if anything crops up in the future, but I believe we're good, beyond=20 getting distros to ship this additional fix. Thanks, - Pierre-Loup >=20 > Thanks. >=20 >> I guess I'll ask people on the github thread to test that too. >> >> Linus >> >> On Fri, Jun 21, 2019 at 3:38 PM Eric Dumazet wrote= : >>> >>> Please look at my recent patch. >>> Sorry I am travelling.... >>> >>> On Fri, Jun 21, 2019, 6:19 PM Linus Torvalds wrote: >>>> >>>> On Fri, Jun 21, 2019 at 2:41 PM Greg Kroah-Hartman >>>> wrote: >>>>> >>>>> What specific commit caused the breakage? >>>> >>>> Both on reddit and on github there seems to be confusion about whether >>>> it's a problem or not. Some people have it working with the exact same >>>> kernel that breaks for others. >>>> >>>> And then some people seem to say it works intermittently for them, >>>> which seems to indicate a timing issue. >>>> >>>> Looking at the SACK patches (assuming it's one of them), I'd suspect >>>> the "tcp: tcp_fragment() should apply sane memory limits". >>>> >>>> Eric, that one does >>>> >>>> if (unlikely((sk->sk_wmem_queued >> 1) > sk->sk_sndbuf)) { >>>> NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPWQUEUETOOBIG)= ; >>>> return -ENOMEM; >>>> } >>>> >>>> but I think it's *normal* for "sk_wmem_queued >> 1" to be around the >>>> same size as sk_sndbuf. So if there is some fragmentation, and we add >>>> more skb's to it, that would seem to trigger fairly easily. >>>> Particularly since this is all in "truesize" units, which can be a lot >>>> bigger than the packets themselves. >>>> >>>> I don't know the code, so I may be out to lunch and barking up >>>> completely the wrong tree, but that particular check does seem like it >>>> might trigger much more easily than I think the code _intended_ it to >>>> trigger? >>>> >>>> Pierre-Loup - do you guys have a test-case inside of valve? Or is this >>>> purely "we see some people with problems"? >>>> >>>> Linus >=20