[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <47F8F99D.1070701@colorfullife.com>
Date: Sun, 06 Apr 2008 18:26:05 +0200
From: Manfred Spraul <manfred@...orfullife.com>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
CC: "Serge E. Hallyn" <serue@...ibm.com>,
"Eric W. Biederman" <ebiederm@...ssion.com>,
Pavel Emelyanov <xemul@...nvz.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Sukadev Bhattiprolu <sukadev@...ibm.com>
Subject: [PATCH] fix SEM_UNDO with namespaces, take 2
Hi,
below is the second attempt to fix SEM_UNDO + unshare():
lookup_undo (in ipc/sem.c) is not namespace-aware, thus all entries in
sysvsem.undo_list must be from the same namespace.
The patch enforces that by detaching the current thread from
sysvsem.undo_list in switch_task_namespaces() if the ipc namespace is
changed.
The patch boots and passes simple sysvsem+unshare tests.
Signed-Off-By: Manfred Spraul <manfred@...orfullife.com>
View attachment "patch-namespace-detach" of type "text/plain" (1129 bytes)
Powered by blists - more mailing lists