[RFC, PATCH] fix SEM_UNDO with namespaces

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Manfred Spraul
Date: Sunday, March 30, 2008 - 1:50 pm

Hi,

the attached patch should fix the combination of CLONE_NEWIPC with 
shared sysv undo structures (the common case, just 
sys_unshare(CLONE_NEWIPC)):
lookup_undo() now locates the undo array based on both semid and the 
namespace pointer.
Additionally, the patch tries to clean the code up by using the linked 
list macros from <linux/list.h> instead of single linked lists.

The patch passes a few quick tests, I'm interested in feedback. Are 
there test apps for testing the IPC namespace code?

--
    Manfred
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC, PATCH] fix SEM_UNDO with namespaces, Manfred Spraul, (Sun Mar 30, 1:50 pm)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Pavel Emelyanov, (Mon Mar 31, 12:12 am)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Manfred Spraul, (Mon Mar 31, 9:14 am)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Pavel Emelyanov, (Tue Apr 1, 2:44 am)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Serge E. Hallyn, (Tue Apr 1, 7:15 am)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Eric W. Biederman, (Tue Apr 1, 8:25 am)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Andrew Morton, (Thu Apr 3, 12:04 pm)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Manfred Spraul, (Thu Apr 3, 12:31 pm)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Manfred Spraul, (Thu Apr 3, 12:40 pm)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Serge E. Hallyn, (Thu Apr 3, 12:44 pm)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Serge E. Hallyn, (Thu Apr 3, 9:39 pm)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Manfred Spraul, (Sun Apr 6, 8:11 am)
[PATCH] fix SEM_UNDO with namespaces, take 2, Manfred Spraul, (Sun Apr 6, 9:26 am)
Re: [PATCH] fix SEM_UNDO with namespaces, take 2, Pavel Emelyanov, (Mon Apr 7, 12:21 am)
Re: [PATCH] fix SEM_UNDO with namespaces, take 2, Manfred Spraul, (Mon Apr 7, 10:03 am)
Re: [PATCH] fix SEM_UNDO with namespaces, take 2, Pavel Emelyanov, (Tue Apr 8, 1:09 am)
Re: [RFC, PATCH] fix SEM_UNDO with namespaces, Serge E. Hallyn, (Mon Apr 14, 2:10 pm)