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: 03c57747a702 ("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
..
2015-04-18 17:45:30 -04:00
2015-03-02 16:43:41 -05:00
2015-05-14 00:54:32 -04:00
2015-03-03 17:01:37 -05:00
2015-04-15 09:00:47 -07:00
2015-03-05 13:17:39 -05:00
2015-04-02 14:04:59 -04:00
2015-05-14 10:35:04 +02:00
2015-06-07 15:24:54 -07:00
2015-05-26 23:19:29 -04:00
2015-04-01 11:28:22 +02:00
2015-05-20 21:02:46 +03:00
2015-06-01 14:43:50 -07:00
2015-03-06 21:50:02 -05:00
2015-04-24 11:39:15 -04:00
2015-04-07 15:25:55 -04:00
2015-05-31 21:50:34 -07:00
2015-03-03 17:01:38 -05:00
2015-04-30 18:48:11 +02:00
2015-06-04 00:46:26 -07:00
2015-06-01 16:03:43 -07:00
2015-03-02 13:06:31 -05:00
2015-03-09 23:38:02 -04:00
2015-04-02 16:16:53 -04:00
2015-03-31 13:58:35 -04:00
2015-04-06 22:34:15 -04:00
2015-03-02 13:06:31 -05:00
2015-05-20 15:10:11 +02:00
2015-05-09 15:51:00 -04:00
2015-06-07 19:37:27 -07:00
2015-05-20 13:46:48 +02:00
2015-03-31 13:58:35 -04:00
2015-05-16 17:08:57 -04:00
2015-03-02 16:43:41 -05:00
2015-04-13 16:35:16 -04:00
2015-06-03 19:39:35 -07:00
2015-05-10 19:40:08 -04:00
2015-03-02 13:06:31 -05:00
2015-05-09 16:03:28 -04:00
2015-03-02 16:43:41 -05:00
2015-04-11 15:53:35 -04:00
2015-05-27 14:09:55 -04:00
2015-03-25 11:40:16 -04:00
2015-05-04 12:02:40 -04:00
2015-05-14 22:45:39 -04:00
2015-04-29 15:08:59 -04:00
2015-05-26 23:19:29 -04:00
2015-03-02 13:06:31 -05:00
2015-04-08 09:19:29 +02:00
2015-03-02 13:06:31 -05:00
2015-05-28 06:23:31 +02:00
2015-04-09 00:02:26 -04:00
2015-03-04 00:26:06 -05:00
2015-04-15 15:06:56 -04:00