Take the lock shared in linker_search_symbol_name.
This helps sysctl kern.proc.stack.
This commit is contained in:
parent
12e2a30ef9
commit
2afec8edfc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273431
@ -986,9 +986,9 @@ linker_search_symbol_name(caddr_t value, char *buf, u_int buflen,
|
||||
{
|
||||
int error;
|
||||
|
||||
sx_xlock(&kld_sx);
|
||||
sx_slock(&kld_sx);
|
||||
error = linker_debug_search_symbol_name(value, buf, buflen, offset);
|
||||
sx_xunlock(&kld_sx);
|
||||
sx_sunlock(&kld_sx);
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user