mm-commits.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* + ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix.patch added to -mm tree
@ 2020-03-28 20:01 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-03-28 20:01 UTC (permalink / raw)
  To: ebiederm, mm-commits, oleg


The patch titled
     Subject: ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix
has been added to the -mm tree.  Its filename is
     ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Oleg Nesterov <oleg@redhat.com>
Subject: ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix

s/PIDTYPE_PID/PIDTYPE_TGID/, per Eric

Link: http://lkml.kernel.org/r/20200327195643.GA9366@redhat.com
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 ipc/mqueue.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/ipc/mqueue.c~ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix
+++ a/ipc/mqueue.c
@@ -801,7 +801,7 @@ static void __do_notify(struct mqueue_in
 			 * bypass check_kill_permission(). It is from kernel
 			 * but si_fromuser() can't know this.
 			 */
-			task = pid_task(info->notify_owner, PIDTYPE_PID);
+			task = pid_task(info->notify_owner, PIDTYPE_TGID);
 			if (task)
 				do_send_sig_info(info->notify.sigev_signo,
 						&sig_i, task, PIDTYPE_TGID);
_

Patches currently in -mm which might be from oleg@redhat.com are

ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission.patch
ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix.patch
aio-simplify-read_events.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-28 20:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-28 20:01 + ipc-mqueuec-change-__do_notify-to-bypass-check_kill_permission-fix.patch added to -mm tree akpm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).