1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

Kernel: Move process coredump metadata modification to the prctl syscall

This commit is contained in:
Liav A 2023-03-01 21:28:51 +02:00 committed by Andreas Kling
parent 822164a686
commit be1d7c325a
8 changed files with 17 additions and 38 deletions

View file

@ -5,6 +5,7 @@
*/
#include <AK/Format.h>
#include <Kernel/API/prctl_numbers.h>
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
@ -29,7 +30,7 @@ void __assertion_failed(char const* msg)
{ "assertion", strlen("assertion") },
{ msg, strlen(msg) },
};
syscall(SC_set_coredump_metadata, &params);
syscall(SC_prctl, PR_SET_COREDUMP_METADATA_VALUE, &params, nullptr);
abort();
}
}