Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp581702imd; Fri, 26 Oct 2018 13:22:44 -0700 (PDT) X-Google-Smtp-Source: AJdET5dXMgNGx8o5LQ6i8Xg9IjPwMdTkLwivqqGY+UZm8i/9O7WKUq9kMZi5i+KwAb2BL6j0JDEM X-Received: by 2002:a17:902:a403:: with SMTP id p3-v6mr1960134plq.58.1540585364637; Fri, 26 Oct 2018 13:22:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540585364; cv=none; d=google.com; s=arc-20160816; b=drOZldvKkWM3RPffHemV8R21VfWb7nKpMKA6HXu48WYClRn5p46r5gKO3Ga1wQcsPC wFrUTjS4kduNWBHXr2JMwjG0HekXP94+b44R2tHRN15k8tRyrk9fQYxWZ9jSP52b3Lph 8Fp/8MEqfL7CdOMhiUH+MVz0kXOZKu0ZDg2VwDGqbaYE3fKZStyBEMFZqv2NKj8pzJrt GcSjZA4NvhJ4X1guAJuhLXW7tpoCmjwoMimbH39VBU3N3A+vxNo7IvU40QZlbW8XfC1z 1u8qUv/AkZaBXIZnuw0azEDqD3sD6xFcvkb4CZQn2hvSxKFsxkp36q4L5jqvDNxGAIZt dmOQ== 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:from:references:cc:to:subject:dkim-signature; bh=7GCJWMCBji8YwOd3rDPsOh2yDzMWJQYrZ1d3QdRERU4=; b=qB7e93yEGaYcFyuWZSOlK8QOGKvh9bC6F1zFjflBGgixtAhntv+2sI8LQ/CEfSFWhc 8Dnmx1gAo7g5sRTzdy/cIR7ksVT4Neg6AiwGZSUfKnCcf7hOuKzx6ash8zrDvrJ824Gn b1Utn542QDp2AhEYzMREunJ+Gn4Oer3JUeqtt0gFrLSwJidFoVGoVymzRgPSXWTX+uVR TdMsVPmeail+Ayx5r5lNt1CBq02b008laKSnjjtF0mfujc5ljFmFbSz2c7rWNx05yWnz jeKY2AVQWxhyxMOy+tL8SnBbYTJTLHwFjf4mhKlyyn067C2Re+vWwlXdRYgni7tK5Jwn o7Bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aLjZDXmt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i11-v6si5073799pgi.574.2018.10.26.13.22.29; Fri, 26 Oct 2018 13:22:44 -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=@gmail.com header.s=20161025 header.b=aLjZDXmt; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728381AbeJ0FAR (ORCPT + 99 others); Sat, 27 Oct 2018 01:00:17 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:39577 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727636AbeJ0FAR (ORCPT ); Sat, 27 Oct 2018 01:00:17 -0400 Received: by mail-wm1-f67.google.com with SMTP id y144-v6so2535373wmd.4; Fri, 26 Oct 2018 13:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=7GCJWMCBji8YwOd3rDPsOh2yDzMWJQYrZ1d3QdRERU4=; b=aLjZDXmtarMtRNWeZuxm52m3YPJ0s7y6SL9L0Fel4ardPZ3NfnSJ3dUcgrmkXwvYQE PZwxGtolPjU6iOpwf/0Unb0apGoFbobU3dgl2BJDUH/ICP3ksXAnPN8ZmVFJrISUfpNY rn+e23qZSMkUsS24uEbmvEmjUq2xAeNSrGorQUHEHAPZBhs4GsWprsdFpCIeVCQa+/1+ 5AmWXFKd5ZNBxLeDN1QIBAflZ2oe8YRozgNrXVFoOJXKa1+qtVZw7keXMlPq/mBawik7 UG4nr7ATYnWsmBBbZ1dT9nsZcvyJ/uyScqWSaaQyzwQ3WlbvBFaGJ2UnlQ3JqG2KpXc+ v+2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7GCJWMCBji8YwOd3rDPsOh2yDzMWJQYrZ1d3QdRERU4=; b=dQ0pIzFmDfueEdBnvT5GVi7YcQ0VQ+eCuKSZOU3LQBl1sqMbFYwYTT4//KB4biciGH vBaPQIrhjZ3H7OwGh1BlOUTXr2IMk0/EMBRAOOdy6xtH7KG3B/SNTNaiWd6bS4q8qJZn ynggLYotPOMTMM67TbZmsWPg1GpaUM0xVwaC/h/d/zGYqvKDkvnajZGG47kcvLdTSC5s ErhJp5SpoZl3itq0Q4bHCQxtowN4a4103yRQEB50EpKxLXluCj2eKCLZ82svp+qHAQLT rppB+gL4xaQjYAasmpFa/RyCk7GcvLszu+RDZ7cXlunNL4gprXSybDWsH4cSX0Vq5fth Dstg== X-Gm-Message-State: AGRZ1gJGiBxRa7wIefeVGl4WNHMtNS+IxeK3nswxTRClgr6BAriD+jll 9il0FjXCA0G5jA/65jrxasuxWIyK X-Received: by 2002:a1c:bce:: with SMTP id 197-v6mr6307171wml.15.1540585310285; Fri, 26 Oct 2018 13:21:50 -0700 (PDT) Received: from ?IPv6:2003:ea:8bd4:3f00:808d:9bd7:b50:2001? (p200300EA8BD43F00808D9BD70B502001.dip0.t-ipconnect.de. [2003:ea:8bd4:3f00:808d:9bd7:b50:2001]) by smtp.googlemail.com with ESMTPSA id o13-v6sm8266854wrw.93.2018.10.26.13.21.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Oct 2018 13:21:49 -0700 (PDT) Subject: Re: CAKE and r8169 cause panic on upload in v4.19 To: Oleksandr Natalenko , =?UTF-8?Q?Toke_H=c3=b8iland-J=c3=b8rgensen?= Cc: Dave Taht , "David S. Miller" , Jamal Hadi Salim , Cong Wang , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <61d09f0db41f269cc9ee13dd68a5c285@natalenko.name> From: Heiner Kallweit Message-ID: Date: Fri, 26 Oct 2018 22:21:32 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <61d09f0db41f269cc9ee13dd68a5c285@natalenko.name> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.10.2018 21:26, Oleksandr Natalenko wrote: > Hello. > > I was excited regarding the fact that v4.19 introduced CAKE, so I've deployed it on my home router. > > I used this script of mine [1]: > > # bufferbloat enp3s0.100 20 20 > > to do its job on the VLAN interface, where 20/20 ISP link is switched from the home switch. Basically, it just follows [2] with simple bandwidth restriction and egress mirroring using ifb. > > Then I thought it would be nice to run speedtest-cli on one of the computer in the home LAN, connected to this router. Download stage went fine, but immediately after upload started I've got a panic on the router: [3] (sorry, it is a photo, netconsole didn't work because, I assume, the panic happened in the networking code). I rebooted the router and tried once more, and got the same result, again during upload stage. Then I rebooted again, replaced CAKE script with my former HTB script, and after running speedtest-cli a couple of times there's no panic. > > Before running speedtest-cli I was using CAKE for a couple of days without generating much traffic just fine. It seems it crashes only if lots of traffic is generated with tools like this. > > My sysctl: [4] and ethtool -k: [5] > > So far, I've found something similar only here: [6] [7]. The common thing is r8169 driver in use, so, maybe, it is a driver issue, and CAKE is just happy to reveal it. > > If it is something known, please point me to a possible fix. If it is something new, I'm open to provide more info on your request, try patches etc (as usual). > It seems to be the same problem as described here: https://bugzilla.kernel.org/show_bug.cgi?id=201063 As I commented in bugzilla, the GPF in dev_hard_start_xmit and the values of R12/R15 make me think that a poisoned list pointer is accessed. It's so deep in the network stack that I can not really imagine the network driver is to blame. One screenshot attached to the bug report shows that the GPF also happened with the igb driver. Most likely we find out only once somebody spends effort on bisecting the issue. d4546c2509b1 ("net: Convert GRO SKB handling to list_head.") and some subsequent changes deal with skb list processing, maybe the issue is related to one of these changes. > Thanks. >