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

2015-06-05 Thread Eric W. Biederman
Robert Shearman rshea...@brocade.com 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

[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