[PATCH net] net: graceful exit from netif_alloc_netdev_queues()

2015-07-06 Thread Eric Dumazet
From: Eric Dumazet User space can crash kernel with ip link add ifb10 numtxqueues 10 type ifb We must replace a BUG_ON() by proper test and return -EINVAL for crazy values. Fixes: 60877a32bce00 ("net: allow large number of tx queues") Signed-off-by: Eric Dumazet --- net/core/dev.c |3

Re: [PATCH net] net: graceful exit from netif_alloc_netdev_queues()

2015-07-08 Thread David Miller
From: Eric Dumazet Date: Mon, 06 Jul 2015 17:13:26 +0200 > From: Eric Dumazet > > User space can crash kernel with > > ip link add ifb10 numtxqueues 10 type ifb > > We must replace a BUG_ON() by proper test and return -EINVAL for > crazy values. > > Fixes: 60877a32bce00 ("net: allow larg