Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mpls: fix possible use after free of device
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. Fixes: 03c5774 ("mpls: Per-device MPLS state") Signed-off-by: Robert Shearman <[email protected]> Acked-by: "Eric W. Biederman" <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information