Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa328426 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "signal: Avoid corrupting si_pid and si_uid in do_notify_parent"

parents c34b411f 73f97b1b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1924,8 +1924,12 @@ bool do_notify_parent(struct task_struct *tsk, int sig)
		if (psig->action[SIGCHLD-1].sa.sa_handler == SIG_IGN)
			sig = 0;
	}
	/*
	 * Send with __send_signal as si_pid and si_uid are in the
	 * parent's namespaces.
	 */
	if (valid_signal(sig) && sig)
		__group_send_sig_info(sig, &info, tsk->parent);
		__send_signal(sig, &info, tsk->parent, PIDTYPE_TGID, false);
	__wake_up_parent(tsk, tsk->parent);
	spin_unlock_irqrestore(&psig->siglock, flags);