Re: [v2 PATCH 0/4] mac80211: Fix incorrect usage of rhashtable walk API

From
Johannes Berg <johannes@sipsolutions.net>
Date
2019-02-13 14:55:21
Also in
linux-wireless
Reply to
Herbert Xu, 2019-02-13
On Wed, 2019-02-13 at 22:38 +0800, Herbert Xu wrote:
Hi:

The first two patches in this series are bug fixes and should be
backported to stable.

They fixes a number of issues with the use of the rhashtable API
in mac80211.  First of all it converts the use of rashtable walks over
to a simple linked list.  This is because an rhashtable walk is
inherently unstable and not meant for uses that require stability,
e.g., when you're trying to lookup an object to delete.

It also fixes a potential memory leak when the rhashtable insertion
fails (which can occur due to OOM).
Thanks a lot Herbert! That looks simpler than I thought it would be.

johannes
Thread (23 messages) 23 messages, 3 authors, last reply 2019-02-18
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help