Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969113AbdIZNLF (ORCPT ); Tue, 26 Sep 2017 09:11:05 -0400 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:58654 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754391AbdIZNLD (ORCPT ); Tue, 26 Sep 2017 09:11:03 -0400 Date: Tue, 26 Sep 2017 14:10:11 +0100 From: Roman Gushchin To: Yuchung Cheng CC: Oleksandr Natalenko , Hideaki YOSHIFUJI , Alexey Kuznetsov , netdev , "linux-kernel@vger.kernel.org" Subject: Re: [REGRESSION] Warning in tcp_fastretrans_alert() of net/ipv4/tcp_input.c Message-ID: <20170926131011.GB26395@castle.DHCP.thefacebook.com> References: <20170921014620.GA20906@castle> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.0 (2017-09-02) X-Originating-IP: [2620:10d:c092:200::1:b9de] X-ClientProxiedBy: VI1PR07CA0148.eurprd07.prod.outlook.com (2603:10a6:802:16::35) To CO1PR15MB1077.namprd15.prod.outlook.com (2a01:111:e400:7b66::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3f7e88d9-d7a2-4e5d-f0c3-08d504dff540 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:CO1PR15MB1077; X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1077;3:F5IOj5s8zGob/4baZgI0LXqEcZM1CSHhBgDPL+pX3gtlz8piCSd7CmWfwWlGC7NEunb6JT4D6l0zONT+NEGibzmHPG9xlDFIAQ05fjnvQYD0k8ORHmwTdcTonxo62DzUxpwVvo94KxZr6XkuYJilpkMPQRyMm5BAmpC2DeaRyDKkxzgq2GEkWJbQElmosHw9jwf2EbFb6LrszwBd+pMQ8fdaXg+6vs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lSPd80+MkjY6p9dOc/eeBwwQuEOP29HjS9LzGkKPHXMzaOMvlif2MEz50YhWrHkQwrfRn4rY4kaNTVDyYR7HNGFtl9slq8dIz7zIMOuUiDZbPIMscw/;4:44Gh9PAOVAISbnMWBFwGV2Csr5T8WqqQ9uOd0u0Smvm3VQup2TGlojOUZEVvUdBVaL6hazS27RozfQaorOI7TiA5wsSpZ7eLgq6MgIykKB6n57j4qti/B31TivpIgDx7KsqoLPnV5XF6cwi3DghWLrO6AHEQYbW8kgws8QviCevVAMrtJLHWMo1J5EcFhYj5SdFCZoQp+QiXkiaUEVkDHOqBU3dr/3HbJWMM29mTYO0QPexeYGrA4zhQwruhg+AXtrulhxFP1voJFq0sIZktArINPoqTg4YuvBlUW0C+0tj4MMXpOKjt1V+I9SIMEAwB7vbKKKuHljZd9yUNKJWuplnmieyPdM2QH0pS0GHVFkg= X-Exchange-Antispam-Report-Test: UriScan:(10436049006162)(150554046322364)(67672495146484); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(93001095)(3002001)(10201501046)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123560025)(20161123558100)(20161123562025)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CO1PR15MB1077;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CO1PR15MB1077; X-Forefront-PRVS: 0442E569BC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(377454003)(199003)(189002)(24454002)(83506001)(305945005)(9686003)(8936002)(101416001)(6306002)(966005)(1076002)(23726003)(8676002)(81166006)(97736004)(81156014)(6506006)(68736007)(55016002)(54356999)(229853002)(76176999)(106356001)(2950100002)(47776003)(105586002)(478600001)(6246003)(6916009)(316002)(5660300001)(2906002)(50986999)(6116002)(6666003)(189998001)(33656002)(58126008)(16586007)(50466002)(7736002)(54906003)(86362001)(53936002)(53546010)(575784001)(25786009)(4326008)(18370500001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CO1PR15MB1077;H:castle.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CO1PR15MB1077;23:rVFqseLrOLCuLGMk6i+6D7tkMjKCv4N4UuXKrZXNY?= =?us-ascii?Q?FQPV4FgUDX0D/XydLyugVsElPbmgbRjYc8NPxS25HZaw4zr6BmIVA0i6qBwt?= =?us-ascii?Q?F2QgrEMB50FHsMjYEYHzH8WoKYRgoAtD5kfY5u2gTNCDsdJE6AUBQuMRNUCt?= =?us-ascii?Q?i5V74exAt3udOqZYMXlYOfyn4AXPQ23ADMaMLBH4tc1leeJtw9pozonhj93E?= =?us-ascii?Q?hjGL1M9ux2MQ5WNjCwCuV2IY3ugDCfAWLJbQCcr1XLV3kLG9jKU7NGUty5Jx?= =?us-ascii?Q?0K2SQMAl+CQQi5rQmFHncJILaaU4cyybRHtUJUHd5cre7gB9oTLh+Yjyziu4?= =?us-ascii?Q?ZflhopnB5yGf43xwelS7NH9GnHELKUtyfDmeoHyP3rRaEAQiCRR0OWF+ALIS?= =?us-ascii?Q?4okqfFek5P/1nDVbF85jeiy2EosP/PCrs6yQRmSMBSQL22miBTazXOGHhE2L?= =?us-ascii?Q?6tLoA7M4OTAF8pXZ0bwf0vMk43XE0grKseBQwiJFa/REE2Uvx0e3K9ohnQ6L?= =?us-ascii?Q?70xnBB0nBxOI9dBDBMKJjhqNWc54WcZwozepiqCTWIHbKBqFeyNIJAVlyg5w?= =?us-ascii?Q?APy19hieAGn8eJgS/8zQpioBNllo2AkI3JeGsKy26bi9ZPYl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xs3+WefgY9W8RHAPpiK6oh2LQ4TIp67HRs2HJqLO2JY0BenQhk2F1zOrlXlYlOcnMx2zG1lEP3AKoSx/ouJpZYs1kLGU6LoeFwRBbN9w9768G+9g==;5:fHSYDAs+j6nQo4pS5rRu2yvZT9XYjpmExsxbqcvVK7Et8PSG4H1K/qW4vpczMtgjtsUYb4XQ8CZt7i5TgK3mjHu7L2rekozlWMOe10w/gBvMDgH/LWD12fAu6/ztrbYYVlEKDr20pTGwqXRVoKYpbA==;24:3BTvRJubEoCc4hooFezljT+ESYOinhxuvzvyvjFsUJezp0YgKtLvOV84IWmEb+L9wnTF+oiPXPPO9cy5JrSArbtNvMWXo9hlbZFt/LrUCmQ=;7:wkYFONmbMS+x/jCjW4lCeB8ICNumEbYwY8xttcns/p82bLgLZIV/SgbrmUyEX97oYCrIA6GMs08WCR5LDoTek8MXyrB4SaNWeDG5meCWUnl0mYxNgxMoHJSggAyfiFprDT7886qypbdKC6IDRBX0O3lETCUV2lKFSvzk+xNURhEaKM9Dd3bhhAW3/MEEjM34OpABuN6bk+F1TeNtfIRJ9M37N4ju0mpOVPZGgRbaJ4Q= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CO1PR15MB1077;20:pXSo4qAY7wWr/kaiAFIE0GXIOIS4MOgpdW28i0DSXmWG1vDT70YTVhoS3rS+MyzcPeqC+y9u26VPYGss4riIru0qpWjCoAvxlxQ0nEMNxDNNczcB+Ysg22A8Jh+FIjz7OIUo5wJChjPHtfO3AfS1oIus2Lu735/0wcaBITp2YnY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2017 13:10:25.9028 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR15MB1077 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-09-26_05:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6680 Lines: 120 > On Wed, Sep 20, 2017 at 6:46 PM, Roman Gushchin wrote: > > > > > Hello. > > > > > > Since, IIRC, v4.11, there is some regression in TCP stack resulting in the > > > warning shown below. Most of the time it is harmless, but rarely it just > > > causes either freeze or (I believe, this is related too) panic in > > > tcp_sacktag_walk() (because sk_buff passed to this function is NULL). > > > Unfortunately, I still do not have proper stacktrace from panic, but will try > > > to capture it if possible. > > > > > > Also, I have custom settings regarding TCP stack, shown below as well. ifb is > > > used to shape traffic with tc. > > > > > > Please note this regression was already reported as BZ [1] and as a letter to > > > ML [2], but got neither attention nor resolution. It is reproducible for (not > > > only) me on my home router since v4.11 till v4.13.1 incl. > > > > > > Please advise on how to deal with it. I'll provide any additional info if > > > necessary, also ready to test patches if any. > > > > > > Thanks. > > > > > > [1] https://bugzilla.kernel.org/show_bug.cgi?id=195835 > > > [2] https://urldefense.proofpoint.com/v2/url?u=https-3A__www.spinics.net_lists_netdev_msg436158.html&d=DwIBaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=jJYgtDM7QT-W-Fz_d29HYQ&m=MDDRfLG5DvdOeniMpaZDJI8ulKQ6PQ6OX_1YtRsiTMA&s=-n3dGZw-pQ95kMBUfq5G9nYZFcuWtbTDlYFkcvQPoKc&e= > > > > We're experiencing the same problems on some machines in our fleet. > > Exactly the same symptoms: tcp_fastretrans_alert() warnings and > > sometimes panics in tcp_sacktag_walk(). > > > > Here is an example of a backtrace with the panic log: Hi Yuchung! > do you still see the panics if you disable RACK? > sysctl net.ipv4.tcp_recovery=0? No, we haven't seen any crash since that. > > also have you experience any sack reneg? could you post the output of > ' nstat |grep -i TCP' thanks hostname TcpActiveOpens 2289680 0.0 hostname TcpPassiveOpens 3592758 0.0 hostname TcpAttemptFails 746910 0.0 hostname TcpEstabResets 154988 0.0 hostname TcpInSegs 16258678255 0.0 hostname TcpOutSegs 46967011611 0.0 hostname TcpRetransSegs 13724310 0.0 hostname TcpInErrs 2 0.0 hostname TcpOutRsts 9418798 0.0 hostname TcpExtEmbryonicRsts 2303 0.0 hostname TcpExtPruneCalled 90192 0.0 hostname TcpExtOfoPruned 57274 0.0 hostname TcpExtOutOfWindowIcmps 3 0.0 hostname TcpExtTW 1164705 0.0 hostname TcpExtTWRecycled 2 0.0 hostname TcpExtPAWSEstab 159 0.0 hostname TcpExtDelayedACKs 209207209 0.0 hostname TcpExtDelayedACKLocked 508571 0.0 hostname TcpExtDelayedACKLost 1713248 0.0 hostname TcpExtListenOverflows 625 0.0 hostname TcpExtListenDrops 625 0.0 hostname TcpExtTCPHPHits 9341188489 0.0 hostname TcpExtTCPPureAcks 1434646465 0.0 hostname TcpExtTCPHPAcks 5733614672 0.0 hostname TcpExtTCPSackRecovery 3261698 0.0 hostname TcpExtTCPSACKReneging 12203 0.0 hostname TcpExtTCPSACKReorder 433189 0.0 hostname TcpExtTCPTSReorder 22694 0.0 hostname TcpExtTCPFullUndo 45092 0.0 hostname TcpExtTCPPartialUndo 22016 0.0 hostname TcpExtTCPLossUndo 2150040 0.0 hostname TcpExtTCPLostRetransmit 60119 0.0 hostname TcpExtTCPSackFailures 2626782 0.0 hostname TcpExtTCPLossFailures 182999 0.0 hostname TcpExtTCPFastRetrans 4334275 0.0 hostname TcpExtTCPSlowStartRetrans 3453348 0.0 hostname TcpExtTCPTimeouts 1070997 0.0 hostname TcpExtTCPLossProbes 2633545 0.0 hostname TcpExtTCPLossProbeRecovery 941647 0.0 hostname TcpExtTCPSackRecoveryFail 336302 0.0 hostname TcpExtTCPRcvCollapsed 461354 0.0 hostname TcpExtTCPAbortOnData 349196 0.0 hostname TcpExtTCPAbortOnClose 3395 0.0 hostname TcpExtTCPAbortOnTimeout 51201 0.0 hostname TcpExtTCPMemoryPressures 2 0.0 hostname TcpExtTCPSpuriousRTOs 2120503 0.0 hostname TcpExtTCPSackShifted 2613736 0.0 hostname TcpExtTCPSackMerged 21358743 0.0 hostname TcpExtTCPSackShiftFallback 8769387 0.0 hostname TcpExtTCPBacklogDrop 5 0.0 hostname TcpExtTCPRetransFail 843 0.0 hostname TcpExtTCPRcvCoalesce 949068035 0.0 hostname TcpExtTCPOFOQueue 470118 0.0 hostname TcpExtTCPOFODrop 9915 0.0 hostname TcpExtTCPOFOMerge 9 0.0 hostname TcpExtTCPChallengeACK 90 0.0 hostname TcpExtTCPSYNChallenge 3 0.0 hostname TcpExtTCPFastOpenActive 2089 0.0 hostname TcpExtTCPSpuriousRtxHostQueues 896596 0.0 hostname TcpExtTCPAutoCorking 547386735 0.0 hostname TcpExtTCPFromZeroWindowAdv 28757 0.0 hostname TcpExtTCPToZeroWindowAdv 28761 0.0 hostname TcpExtTCPWantZeroWindowAdv 322431 0.0 hostname TcpExtTCPSynRetrans 3026 0.0 hostname TcpExtTCPOrigDataSent 40976870977 0.0 hostname TcpExtTCPHystartTrainDetect 453920 0.0 hostname TcpExtTCPHystartTrainCwnd 11586273 0.0 hostname TcpExtTCPHystartDelayDetect 10943 0.0 hostname TcpExtTCPHystartDelayCwnd 763554 0.0 hostname TcpExtTCPACKSkippedPAWS 30 0.0 hostname TcpExtTCPACKSkippedSeq 218 0.0 hostname TcpExtTCPWinProbe 2408 0.0 hostname TcpExtTCPKeepAlive 213768 0.0 hostname TcpExtTCPMTUPFail 69 0.0 hostname TcpExtTCPMTUPSuccess 8811 0.0 Thanks!