OpenSolaris

Printable Version Enter a New Search
Bug ID 6758618
Synopsis a NULL shutdown function avoids destroy in stack closing
State 10-Fix Delivered (Fix available in build)
Category:Subcategory kernel:netinfo
Keywords
Responsible Engineer Darren Reed
Reported Against
Duplicate Of
Introduced In solaris_nevada
Commit to Fix snv_102
Fixed In snv_102
Release Fixed solaris_nevada(snv_102) , solaris_10u7(s10u7_04) (Bug ID:2168218)
Related Bugs 6418698
Submit Date 13-October-2008
Last Update Date 6-November-2008
Description
In neti_stack_fini(), this loop can be found:
        LIST_FOREACH(n, &nts->nts_instances, nini_next) {
                ASSERT((n->nini_flags & NSS_SHUTDOWN_ALL) != 0);
                if (n->nini_instance->nin_shutdown == NULL)
                        continue;
                if ((n->nini_flags & NSS_DESTROY_ALL) == 0)
                        n->nini_flags |= NSS_DESTROY_NEEDED;
        }
The check for "nin_shutdown == NULL" can lead to the NSS_DESTROY_NEEDED flag not being
set when in fact it should be set. The absence of a function to call for shutdown should not impact the destroy being called (or not.)
Work Around
N/A
Comments
N/A