lwip-devel
[Top][All Lists]
Advanced

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

Re: [lwip-devel] Unsafe use of netif_get_by_index() in lwip_socket_drop_


From: Dirk Ziegelmeier
Subject: Re: [lwip-devel] Unsafe use of netif_get_by_index() in lwip_socket_drop_registered_mld6_memberships
Date: Wed, 16 Aug 2017 18:45:56 +0200

Thanks, I'll check it out. 

On Aug 16, 2017 18:10, "Joel Cunningham" <address@hidden> wrote:
Dirk,

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

Joel

reply via email to

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