Re: [PATCH net-next] net: vrf: protect changes to private data with rcu

2016-05-16 Thread David Miller
From: David Ahern Date: Fri, 13 May 2016 12:23:45 -0700 > One cpu can be processing packets which includes using the cached route > entries in the vrf device's private data and on another cpu the device > gets deleted which releases the routes and sets the pointers in net_vrf > to NULL. This resu

[PATCH net-next] net: vrf: protect changes to private data with rcu

2016-05-13 Thread David Ahern
One cpu can be processing packets which includes using the cached route entries in the vrf device's private data and on another cpu the device gets deleted which releases the routes and sets the pointers in net_vrf to NULL. This results in datapath dereferencing a NULL pointer. Fix by protecting a