[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120202.143102.1637418171061567370.davem@davemloft.net>
Date: Thu, 02 Feb 2012 14:31:02 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: sjur.brandeland@...ricsson.com
Cc: netdev@...r.kernel.org, sjurbren@...il.com
Subject: Re: [PATCH net 1/2] caif: Bugfix list_del_rcu race in
cfmuxl_ctrlcmd.
From: Sjur Brændeland <sjur.brandeland@...ricsson.com>
Date: Thu, 2 Feb 2012 12:21:02 +0100
> Always use cfmuxl_remove_uplayer when removing a up-layer.
> cfmuxl_ctrlcmd() can be called independently and in parallel with
> cfmuxl_remove_uplayer(). The race between them could cause list_del_rcu
> to be called on a node which has been already taken out from the list.
> That lead to a (rare) crash on accessing poisoned node->prev inside
> list_del_rcu.
>
> This fix ensures that deletion are done holding the same lock.
>
> Reported-by: Dmitry Tarnyagin <dmitry.tarnyagin@...ricsson.com>
> Signed-off-by: Sjur Brændeland <sjur.brandeland@...ricsson.com>
Applied.
--
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