- make-good_sigevent-non-static-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     make-good_sigevent-non-static fix
has been removed from the -mm tree.  Its filename was
     make-good_sigevent-non-static-fix.patch

This patch was dropped because it is obsolete

------------------------------------------------------
Subject: make-good_sigevent-non-static fix
From: Sébastien Dugué <sebastien.dugue@xxxxxxxx>

  Could you replace make-good_sigevent-non-static.patch with this
patch, as it fixes some problems reported by Oleg Nesterov.

  Oleg, chime in if you still see something I missed.

  Hopefully I will have gotten it right this time.

  Sorry for the hassle.

  Sébastien.


                Make good_sigevent() non-static and rename it

  Move good_sigevent() from posix-timers.c to signal.c where it belongs,
clean it up, rename it to sigevent_find_task() to better describe what the
function does and make it non-static so that it can be used by other
 subsystems.

Signed-off-by: Sébastien Dugué <sebastien.dugue@xxxxxxxx>
Cc: Bharata B Rao <bharata@xxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Cc: Suparna Bhattacharya <suparna@xxxxxxxxxx>
Cc: Zach Brown <zach.brown@xxxxxxxxxx>
Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
Cc: Badari Pulavarty <pbadari@xxxxxxxxxx>
Cc: Benjamin LaHaise <bcrl@xxxxxxxxxxxxxxx>
Cc: Jean Pierre Dion <jean-pierre.dion@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/signal.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff -puN kernel/signal.c~make-good_sigevent-non-static-fix kernel/signal.c
--- a/kernel/signal.c~make-good_sigevent-non-static-fix
+++ a/kernel/signal.c
@@ -1097,18 +1097,22 @@ int group_send_sig_info(int sig, struct 
  */
 struct task_struct * sigevent_find_task(sigevent_t * event)
 {
-	struct task_struct *task = NULL;
+	struct task_struct *task = current->group_leader;
 
-	if (event->sigev_signo <= 0 || event->sigev_signo > SIGRTMAX)
-		return NULL;
+	if ((event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_NONE) {
+		if (event->sigev_signo <= 0 || event->sigev_signo > SIGRTMAX)
+			return NULL;
+	}
+
+	if (event->sigev_notify & SIGEV_THREAD_ID) {
+		if ((event->sigev_notify & ~SIGEV_THREAD_ID) != SIGEV_SIGNAL)
+			return NULL;
 
-	if ((event->sigev_notify & SIGEV_THREAD_ID ) == SIGEV_THREAD_ID) {
 		task = find_task_by_pid(event->sigev_notify_thread_id);
 
 		if (!task || task->tgid != current->tgid)
 			task = NULL;
-	} else if (event->sigev_notify == SIGEV_SIGNAL)
-		task = current->group_leader;
+	}
 
 	return task;
 }
_

Patches currently in -mm which might be from sebastien.dugue@xxxxxxxx are

origin.patch
futex-priority-based-wakeup.patch
make-futex_wait-use-an-hrtimer-for-timeout.patch
make-good_sigevent-non-static-fix.patch
make-__sigqueue_free-and.patch
aio-completion-signal-notification.patch
aio-completion-signal-notification-fix.patch
aio-completion-signal-notification-fixes-and-cleanups.patch
aio-completion-signal-notification-small-cleanup.patch
add-listio-syscall-support.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux