[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <6AADFAC011213A4C87B956458587ADB4013137D3@dggemi507-mbx.china.huawei.com>
Date: Mon, 25 Dec 2017 03:38:04 +0000
From: "weiyongjun (A)" <weiyongjun1@...wei.com>
To: John Fastabend <john.fastabend@...il.com>,
Jamal Hadi Salim <jhs@...atatu.com>,
Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>
CC: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH] net: sched: fix skb leak in dev_requeue_skb()
> When dev_requeue_skb() is called with bluked skb list, only the
> first skb of the list will be requeued to qdisc layer, and leak
> the others without free them.
>
> TCP is broken due to skb leak since no free skb will be considered
> as still in the host queue and never be retransmitted. This happend
> when dev_requeue_skb() called from qdisc_restart().
> qdisc_restart
> |-- dequeue_skb
> |-- sch_direct_xmit()
> |-- dev_requeue_skb() <-- skb may bluked
>
> Fix dev_requeue_skb() to requeue the full bluked list.
>
> Fixes: a53851e2c321 ("net: sched: explicit locking in gso_cpu fallback")
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
Sorry, I forgot the 'net-next' prefix, please ignore this one, I will resend it.
Powered by blists - more mailing lists