Page MenuHomeFreeBSD

in_mcast.c: need if_addr_lock around inm_release_deferred
ClosedPublic

Authored by rlibby on Jun 24 2019, 4:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 1:47 PM
Unknown Object (File)
Nov 25 2024, 10:37 AM
Unknown Object (File)
Nov 18 2024, 10:33 PM
Unknown Object (File)
Oct 28 2024, 5:14 PM
Unknown Object (File)
Oct 28 2024, 5:14 PM
Unknown Object (File)
Oct 28 2024, 5:14 PM
Unknown Object (File)
Oct 28 2024, 5:14 PM
Unknown Object (File)
Oct 28 2024, 5:00 PM

Details

Summary

Apply a similar fix as for in6_mcast.c.

Sponsored by: Dell EMC Isilon

Test Plan

sysctl debug.fail_point.mnowait="1%return"
kyua test -k /usr/tests/sys/Kyuafile

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25003
Build 23718: arc lint + arc unit

Event Timeline

Fix up for conflict with r349369.

Patch looks good to me. Did you run with this patch?

Patch looks good to me. Did you run with this patch?

Finally got around to testing this. I have been running with this patch, but wanted to demonstrate that the error paths were actually covered.

I was able to hit the first path (in in_joingroup_locked()) with an alloc M_NOWAIT fail point. I think the second one (in in_join_group()) is not possible to hit with the current code flow (is_new && imfimf->imf_inm == NULL). But I inserted a fail point between in_joingroup_locked() and inm_acquire() and was able to light it up that way. No panics or witness warnings.

This revision is now accepted and ready to land.Nov 25 2019, 9:49 PM