HomeFreeBSD

When making a peer of unknown type framework tries to load module
rS132705Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

When making a peer of unknown type framework tries to load module
using linker_load_module(). This works OK if NGM_MKPEER message came
from userland and we have process associated with thread. But when
NGM_MKPEER was queued because target node was busy, linker_load_module()
is called from netisr thread leading to panic.
To workaround that we do not load modules by framework, instead ng_socket
loads module (if this is required) before sending NGM_MKPEER.
However, the race condition between return from NgSendMsg() and actual
creation of node still exist and needs to be solved.

PR: kern/62789
Approved by: julian

Details

Provenance
glebiusAuthored on
Parents
rS132704: After conferring with Apple legal, update the license of this to APSL 2.0
Branches
Unknown
Tags
Unknown

Event Timeline