We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9abf231 commit 5bf2fedCopy full SHA for 5bf2fed
fs/exec.c
@@ -1197,11 +1197,11 @@ static int unshare_sighand(struct task_struct *me)
1197
return -ENOMEM;
1198
1199
refcount_set(&newsighand->count, 1);
1200
- memcpy(newsighand->action, oldsighand->action,
1201
- sizeof(newsighand->action));
1202
1203
write_lock_irq(&tasklist_lock);
1204
spin_lock(&oldsighand->siglock);
+ memcpy(newsighand->action, oldsighand->action,
+ sizeof(newsighand->action));
1205
rcu_assign_pointer(me->sighand, newsighand);
1206
spin_unlock(&oldsighand->siglock);
1207
write_unlock_irq(&tasklist_lock);
0 commit comments