Kernel: Clear coredump metadata on exec()

If for some reason a process wants to exec after saving some coredump
metadata, we should just throw away the data.
This commit is contained in:
Andreas Kling 2021-01-23 09:41:11 +01:00
parent fd29bed656
commit 54f421e170
Notes: sideshowbarker 2024-07-18 22:56:08 +09:00

View File

@ -527,6 +527,8 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
m_veil_state = VeilState::None;
m_unveiled_paths.clear();
m_coredump_metadata.clear();
current_thread->set_default_signal_dispositions();
current_thread->clear_signals();