HomeFreeBSD

kern linker: Do not retry loading modules on EEXIST

Description

kern linker: Do not retry loading modules on EEXIST

LINKER_LOAD_FILE() calls linker_load_dependencies() which will return
EEXIST in case the module to be loaded has already been compiled into
the kernel. Since the format of the module is now recognized then there
is no need to retry loading with a different linker, otherwise the
userland will get misleading error number ENOEXEC.

PR: 274936
Reviewed by: dfr
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D42474

Details

Provenance
zleiAuthored on Nov 7 2023, 4:45 AM
Reviewer
dfr
Differential Revision
D42474: kern linker: Do not retry loading modules on EEXIST
Parents
rG501bdf300119: nfscl: newnfs_copycred() cannot be called when a mutex is held
Branches
Unknown
Tags
Unknown