Re: [next-queue PATCH v2 2/5] net/sched: Fix accessing invalid dev_queue

2017-10-02 Thread Jesus Sanchez-Palencia
Hi, On 09/30/2017 05:22 PM, Cong Wang wrote: > On Fri, Sep 29, 2017 at 5:26 PM, Vinicius Costa Gomes > wrote: >> From: Jesus Sanchez-Palencia >> >> In qdisc_alloc() the dev_queue pointer was used without any checks being >> performed. If qdisc_create() gets a null dev_queue pointer, it just >> p

Re: [next-queue PATCH v2 2/5] net/sched: Fix accessing invalid dev_queue

2017-09-30 Thread Cong Wang
On Fri, Sep 29, 2017 at 5:26 PM, Vinicius Costa Gomes wrote: > From: Jesus Sanchez-Palencia > > In qdisc_alloc() the dev_queue pointer was used without any checks being > performed. If qdisc_create() gets a null dev_queue pointer, it just > passes it along to qdisc_alloc(), leading to a crash. Th

[next-queue PATCH v2 2/5] net/sched: Fix accessing invalid dev_queue

2017-09-29 Thread Vinicius Costa Gomes
From: Jesus Sanchez-Palencia In qdisc_alloc() the dev_queue pointer was used without any checks being performed. If qdisc_create() gets a null dev_queue pointer, it just passes it along to qdisc_alloc(), leading to a crash. That happens if a root qdisc implements select_queue() and returns a null