public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Don't set sempid in semctl syscall.
@ 2016-02-26 12:21 PrasannaKumar Muralidharan
  2016-02-26 20:19 ` Manfred Spraul
  0 siblings, 1 reply; 8+ messages in thread
From: PrasannaKumar Muralidharan @ 2016-02-26 12:21 UTC (permalink / raw)
  To: akpm, manfred, herton, penguin-kernel, rientjes, dave, joe,
	linux-kernel
  Cc: PrasannaKumar Muralidharan

From: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>

As described in bug #112271 (bugzilla.kernel.org/show_bug.cgi?id=112271)
don't set sempid in semctl syscall. Set sempid only when semop is called.

Signed-off-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
---
 ipc/sem.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ipc/sem.c b/ipc/sem.c
index e626965..4a99220 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1341,7 +1341,6 @@ static int semctl_setval(struct ipc_namespace *ns, int semid, int semnum,
 		un->semadj[semnum] = 0;
 
 	curr->semval = val;
-	curr->sempid = task_tgid_vnr(current);
 	sma->sem_ctime = get_seconds();
 	/* maybe some queued-up processes were waiting for this */
 	do_smart_update(sma, NULL, 0, 0, &tasks);
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-01  7:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-26 12:21 [PATCH] Don't set sempid in semctl syscall PrasannaKumar Muralidharan
2016-02-26 20:19 ` Manfred Spraul
2016-02-26 22:15   ` Davidlohr Bueso
2016-02-26 22:18     ` Davidlohr Bueso
2016-02-27  8:42   ` PrasannaKumar Muralidharan
2016-02-28 19:16     ` Michael Kerrisk
2016-02-29 21:22       ` Davidlohr Bueso
2016-03-01  7:48         ` Michael Kerrisk (man-pages)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox