From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Subject: [PATCH v2 0/3] sched: Fix qdisc interactions exposed by using sch_cake as a leaf qdisc Date: Wed, 9 Jan 2019 17:09:40 +0100 Message-ID: <20190109160943.18051-1-toke@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= To: netdev@vger.kernel.org Return-path: Received: from mail-wr1-f68.google.com ([209.85.221.68]:38763 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731928AbfAIQKA (ORCPT ); Wed, 9 Jan 2019 11:10:00 -0500 Received: by mail-wr1-f68.google.com with SMTP id v13so8239236wrw.5 for ; Wed, 09 Jan 2019 08:09:59 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: This series fixes a couple of issues exposed by running sch_cake as a leaf qdisc in an HFSC tree, which were discovered and reported by Pete Heist. The interaction between CAKE's GSO splitting and the parent qdisc's notion of its own queue length could cause queue stalls. While investigating the report, I also noticed that several qdiscs would dereference the skb pointer after dequeue, which is potentially problematic since the GSO splitting code also frees the original skb. See the individual patches in the series for details. Toke Høiland-Jørgensen (3): sched: Avoid dereferencing skb pointer after child enqueue sched: Fix detection of empty queues in child qdiscs sch_cake: Correctly update parent qlen when splitting GSO packets net/sched/sch_cake.c | 5 +++-- net/sched/sch_cbs.c | 3 ++- net/sched/sch_drr.c | 7 +++++-- net/sched/sch_dsmark.c | 3 ++- net/sched/sch_hfsc.c | 9 +++++---- net/sched/sch_htb.c | 3 ++- net/sched/sch_prio.c | 3 ++- net/sched/sch_qfq.c | 20 ++++++++++++-------- net/sched/sch_tbf.c | 3 ++- 9 files changed, 35 insertions(+), 21 deletions(-) -- 2.19.1