CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]   2021/02/10 07:41:53

Modified files:
        sys/net        : if.c 

Log message:
Interface group names must fit into IFNAMSIZ and be unique.  But
the kernel made the unique check before trunkating with strlcpy().
So there could be two interface groups with the same name.  The kif
is created by a name lookup.  The trunkated names are equal, so
there was only one kif owned by both groups.  When the groups got
destroyed, the single kif was removed twice from the RB tree.
Check length of group name before doing the unique check.
The empty group name was allowed and is now invalid.
Reported-by: [email protected]
OK deraadt@ gnezdo@ anton@ mvs@ claudio@

Reply via email to