Re: [PATCH net] mpls: fix possible use after free of device

2015-06-07 Thread David Miller
From: Robert Shearman Date: Fri, 5 Jun 2015 18:54:45 +0100 > The mpls device is used in an RCU read context without a lock being > held. As the memory is freed without waiting for the RCU grace period > to elapse, the freed memory could still be in use. > > Address this by using kfree_rcu to fre

Re: [PATCH net] mpls: fix possible use after free of device

2015-06-05 Thread Eric W. Biederman
Robert Shearman writes: > The mpls device is used in an RCU read context without a lock being > held. As the memory is freed without waiting for the RCU grace period > to elapse, the freed memory could still be in use. > > Address this by using kfree_rcu to free the memory for the mpls device > a

[PATCH net] mpls: fix possible use after free of device

2015-06-05 Thread Robert Shearman
The mpls device is used in an RCU read context without a lock being held. As the memory is freed without waiting for the RCU grace period to elapse, the freed memory could still be in use. Address this by using kfree_rcu to free the memory for the mpls device after the RCU grace period has elapsed