HomeFreeBSD

In case of interface initialization failure remove struct in_ifaddr* from
rS179971Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

In case of interface initialization failure remove struct in_ifaddr* from
in_ifaddrhashtbl in in_ifinit because error handler in in_control removes
entries only for AF_INET addresses. If in_ifinit is called for the cloned
inteface that has just been created its address family is not AF_INET and
therefor LIST_REMOVE is not called for respective LIST_INSERT_HEAD and
freed entries remain in in_ifaddrhashtbl and lead to memory corruption.

PR: kern/124384

Details

Provenance
gonzoAuthored on
Parents
rS179970: Add two commands to _umtx_op system call to allow a simple mutex to be
Branches
Unknown
Tags
Unknown

Event Timeline