HomeFreeBSD

sys/netinet6: fix memory corruption in in6_ifadd

Description

sys/netinet6: fix memory corruption in in6_ifadd

The routine allocates the wrong size and then passes it to in6_get_ifid.

At the same time it violates invariants by issuing malloc with M_WAITOK
while within net epoch section.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
mjgAuthored on Sep 29 2025, 3:01 PM
kpCommitted on Oct 2 2025, 1:33 PM
Parents
rGa733ea831a00: tests/netinet: add a few missing atf_checks in multicast.sh
Branches
Unknown
Tags
Unknown