[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Unsafe use of netif_get_by_index() in lwip_socket_drop_regi

From: Joel Cunningham
Subject: [lwip-devel] Unsafe use of netif_get_by_index() in lwip_socket_drop_registered_mld6_memberships
Date: Wed, 16 Aug 2017 11:10:41 -0500


I just did a quick review of e58e398267b0a2eedfcd5c695da9e5929d6173e1 and 
noticed in lwip_socket_drop_registered_mld6_memberships we are calling 
netif_get_by_index() outside of the LwIP context (TCP/IP thread or CORE_LOCK).  
This isn’t safe because netif_get_by_index() iterates the netif_list, which may 
be changing as someone calls netif_add/remove


reply via email to

[Prev in Thread] Current Thread [Next in Thread]