[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20150607.193743.1723043986420490845.davem@davemloft.net>
Date: Sun, 07 Jun 2015 19:37:43 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: rshearma@...cade.com
Cc: netdev@...r.kernel.org, ebiederm@...ssion.com,
roopa@...ulusnetworks.com
Subject: Re: [PATCH net] mpls: fix possible use after free of device
From: Robert Shearman <rshearma@...cade.com>
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 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@...cade.com>
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists