mirror of
https://github.com/opnsense/src.git
synced 2026-06-13 10:40:19 -04:00
Add a comment indicating that the vnode locking in this section of the
kernel linker code may be wrong: it fails to hold a lock across the call to VOP_GETATTR(), and vn_rdwr() with IO_NODELOCKED.
This commit is contained in:
parent
c96bb7c5f2
commit
894c9fe04e
1 changed files with 3 additions and 0 deletions
|
|
@ -1370,6 +1370,9 @@ linker_lookup_file(const char *path, int pathlen,
|
|||
* Lookup KLD which contains requested module in the "linker.hints" file.
|
||||
* If version specification is available, then try to find the best KLD.
|
||||
* Otherwise just find the latest one.
|
||||
*
|
||||
* XXX: Vnode locking here is hosed; lock should be held for calls to
|
||||
* VOP_GETATTR() and vn_rdwr().
|
||||
*/
|
||||
static char *
|
||||
linker_hints_lookup(const char *path, int pathlen,
|
||||
|
|
|
|||
Loading…
Reference in a new issue