diff --git a/kernel/fork.c b/kernel/fork.c index 1b27babc4c78..9cf8add7038d 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1417,7 +1417,9 @@ static int copy_sighand(unsigned long clone_flags, struct task_struct *tsk) return -ENOMEM; atomic_set(&sig->count, 1); + spin_lock_irq(¤t->sighand->siglock); memcpy(sig->action, current->sighand->action, sizeof(sig->action)); + spin_unlock_irq(¤t->sighand->siglock); return 0; }