alistair23-linux/net/mpls
Robert Shearman 25cc8f0763 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: 03c57747a7 ("mpls: Per-device MPLS state")
Signed-off-by: Robert Shearman <rshearma@brocade.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-06-07 19:37:27 -07:00
..
af_mpls.c mpls: fix possible use after free of device 2015-06-07 19:37:27 -07:00
internal.h mpls: fix possible use after free of device 2015-06-07 19:37:27 -07:00
Kconfig mpls: Allow mpls_gso and mpls_router to be built as modules 2015-03-11 16:38:54 -04:00
Makefile mpls: Allow mpls_gso and mpls_router to be built as modules 2015-03-11 16:38:54 -04:00
mpls_gso.c net: mark some potential candidates __read_mostly 2015-01-30 17:58:39 -08:00