1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 23:17:35 +00:00

Kernel: Fix SMAP violation in thread signal dispatch

This commit is contained in:
Andreas Kling 2020-01-05 18:19:26 +01:00
parent 9eef39d68a
commit f6691ad26e

View file

@ -437,7 +437,7 @@ bool Thread::has_signal_handler(u8 signal) const
static void push_value_on_user_stack(u32* stack, u32 data)
{
*stack -= 4;
*(u32*)*stack = data;
copy_to_user((u32*)*stack, &data, sizeof(u32));
}
ShouldUnblockThread Thread::dispatch_signal(u8 signal)