Re: [net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-16 Thread David Miller
From: John Fastabend Date: Tue, 14 Aug 2012 15:34:35 -0700 > A race exists where creating cgroups and also updating the priomap > may result in losing a priomap update. This is because priomap > writers are not protected by rtnl_lock. > > Move priority writer into rtnl_lock()/rtnl_unlock(). >

Re: [net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-16 Thread David Miller
From: John Fastabend john.r.fastab...@intel.com Date: Tue, 14 Aug 2012 15:34:35 -0700 A race exists where creating cgroups and also updating the priomap may result in losing a priomap update. This is because priomap writers are not protected by rtnl_lock. Move priority writer into

Re: [net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-15 Thread Neil Horman
On Tue, Aug 14, 2012 at 03:34:35PM -0700, John Fastabend wrote: > A race exists where creating cgroups and also updating the priomap > may result in losing a priomap update. This is because priomap > writers are not protected by rtnl_lock. > > Move priority writer into rtnl_lock()/rtnl_unlock().

Re: [net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-15 Thread Neil Horman
On Tue, Aug 14, 2012 at 03:34:35PM -0700, John Fastabend wrote: A race exists where creating cgroups and also updating the priomap may result in losing a priomap update. This is because priomap writers are not protected by rtnl_lock. Move priority writer into rtnl_lock()/rtnl_unlock().

[net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-14 Thread John Fastabend
A race exists where creating cgroups and also updating the priomap may result in losing a priomap update. This is because priomap writers are not protected by rtnl_lock. Move priority writer into rtnl_lock()/rtnl_unlock(). CC: Neil Horman Reported-by: Al Viro Signed-off-by: John Fastabend ---

[net PATCH v3 3/3] net: netprio: fix cgrp create and write priomap race

2012-08-14 Thread John Fastabend
A race exists where creating cgroups and also updating the priomap may result in losing a priomap update. This is because priomap writers are not protected by rtnl_lock. Move priority writer into rtnl_lock()/rtnl_unlock(). CC: Neil Horman nhor...@tuxdriver.com Reported-by: Al Viro