Re: [net-next 1/7] net/sched: Check for null dev_queue on create flow

2017-10-27 Thread Jesus Sanchez-Palencia
Hi Davide, On 10/27/2017 03:23 AM, Davide Caratti wrote: > On Thu, 2017-10-26 at 10:17 -0700, Jeff Kirsher 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 >> ju

Re: [net-next 1/7] net/sched: Check for null dev_queue on create flow

2017-10-27 Thread Davide Caratti
On Thu, 2017-10-26 at 10:17 -0700, Jeff Kirsher 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. That > h

[net-next 1/7] net/sched: Check for null dev_queue on create flow

2017-10-26 Thread Jeff Kirsher
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