mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:17:36 +00:00
Kernel: Remove big lock from sys$set_coredump_metadata
The only requirement for this syscall is to make Process::m_coredump_properties SpinlockProtected.
This commit is contained in:
parent
343aec2200
commit
1682b0b6d8
5 changed files with 25 additions and 18 deletions
|
@ -525,8 +525,9 @@ ErrorOr<void> Process::do_exec(NonnullRefPtr<OpenFileDescription> main_program_d
|
|||
return {};
|
||||
}));
|
||||
|
||||
for (auto& property : m_coredump_properties)
|
||||
m_coredump_properties.for_each([](auto& property) {
|
||||
property = {};
|
||||
});
|
||||
|
||||
auto* current_thread = Thread::current();
|
||||
current_thread->reset_signals_for_exec();
|
||||
|
|
|
@ -50,7 +50,7 @@ ErrorOr<FlatPtr> Process::sys$set_process_name(Userspace<char const*> user_name,
|
|||
|
||||
ErrorOr<FlatPtr> Process::sys$set_coredump_metadata(Userspace<Syscall::SC_set_coredump_metadata_params const*> user_params)
|
||||
{
|
||||
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
|
||||
VERIFY_NO_PROCESS_BIG_LOCK(this)
|
||||
auto params = TRY(copy_typed_from_user(user_params));
|
||||
|
||||
if (params.key.length == 0 || params.key.length > 16 * KiB)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue