<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux-bitkeeper.git/ipc/sem.c, branch master</title>
<subtitle>Linux Kernel BitKeeper History</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/atom?h=master</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/'/>
<updated>2005-03-01T09:15:37Z</updated>
<entry>
<title>Audit IPC object owner/permission changes.</title>
<updated>2005-03-01T09:15:37Z</updated>
<author>
<name>David Woodhouse</name>
<email>dwmw2@shinybook.infradead.org</email>
</author>
<published>2005-03-01T09:15:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=e20ffd76fc5bdccf79223667a615dd4c820947ab'/>
<id>urn:sha1:e20ffd76fc5bdccf79223667a615dd4c820947ab</id>
<content type='text'>
Add linked list of auxiliary data to audit_context
Add callbacks in IPC_SET functions to record requested changes.

Signed-off-by: David Woodhouse &lt;dwmw2@infradead.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] fix missing wakeup in ipc/sem</title>
<updated>2005-01-04T13:34:13Z</updated>
<author>
<name>Manfred Spraul</name>
<email>manfred@colorfullife.com</email>
</author>
<published>2005-01-04T13:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=956cdd1b90acdc646bd4c7d3066539859f8b0f62'/>
<id>urn:sha1:956cdd1b90acdc646bd4c7d3066539859f8b0f62</id>
<content type='text'>
My patch that removed the spin_lock calls from the tail of sys_semtimedop
introduced a bug:

Before my patch was merged, every operation that altered an array called
update_queue.  That call woke up threads that were waiting until a
semaphore value becomes 0.  I've accidentially removed that call.

The attached patch fixes that by modifying update_queue: the function now
loops internally and wakes up all threads.  The patch also removes
update_queue calls from the error path of sys_semtimedop: failed operations
do not modify the array, no need to rescan the list of waiting threads.

Signed-Off-By: Manfred Spraul &lt;manfred@colorfullife.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] RCU: eliminating explicit memory barriers from SysV IPC</title>
<updated>2004-10-28T01:28:37Z</updated>
<author>
<name>Paul E. McKenney</name>
<email>paulmck@us.ibm.com</email>
</author>
<published>2004-10-28T01:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=3f9fabe7e676a768b70c662f334f3b290ed0907e'/>
<id>urn:sha1:3f9fabe7e676a768b70c662f334f3b290ed0907e</id>
<content type='text'>
This patch uses the rcu_assign_pointer() API to eliminate a number of explicit
memory barriers from the SysV IPC code that uses RCU.  It also restructures
the ipc_ids structure so that the array size is stored in the same memory
block as the array itself (see the new struct ipc_id_ary).  This prevents the
race that the earlier code was subject to, where a reader could see a mismatch
between the size and the actual array.  With the size stored with the array,
the possibility of mismatch is eliminated -- with out the need for careful
ordering and explicit memory barriers.  This has been tested successfully on
i386 and ppc64.

Signed-off-by: &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] add missing linux/syscalls.h includes</title>
<updated>2004-10-18T15:54:02Z</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2004-10-18T15:54:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=09b9135c6e9950c0f12e3e6993ae52ab1baf0476'/>
<id>urn:sha1:09b9135c6e9950c0f12e3e6993ae52ab1baf0476</id>
<content type='text'>
I found that the prototypes for sys_waitid and sys_fcntl in
&lt;linux/syscalls.h&gt; don't match the implementation.  In order to keep all
prototypes in sync in the future, now include the header from each file
implementing any syscall.

Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipc: enforce SEMVMX limit for undo</title>
<updated>2004-08-23T05:41:02Z</updated>
<author>
<name>Manfred Spraul</name>
<email>manfred@colorfullife.com</email>
</author>
<published>2004-08-23T05:41:02Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=8dd459f2c56a43d4569ad2593c7066fc6474a043'/>
<id>urn:sha1:8dd459f2c56a43d4569ad2593c7066fc6474a043</id>
<content type='text'>
Independent from the other patches:

undo operations should not result in out of range semaphore values.  The test
for newval &gt; SEMVMX is missing.  The attached patch adds the test and a
comment.

Signed-Off-By: Manfred Spraul &lt;manfred@colorfullife.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipc: remove sem_revalidate</title>
<updated>2004-08-23T05:40:49Z</updated>
<author>
<name>Manfred Spraul</name>
<email>manfred@colorfullife.com</email>
</author>
<published>2004-08-23T05:40:49Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=208b201a7a507a1e08424f0eb1e7be7073490a95'/>
<id>urn:sha1:208b201a7a507a1e08424f0eb1e7be7073490a95</id>
<content type='text'>
The attached patch removes sem_revalidate and replaces it with
ipc_rcu_getref() calls followed by ipc_lock_by_ptr().

Signed-Off-By: Manfred Spraul &lt;manfred@colorfullife.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] ipc: Add refcount to ipc_rcu_alloc</title>
<updated>2004-08-23T05:40:37Z</updated>
<author>
<name>Manfred Spraul</name>
<email>manfred@colorfullife.com</email>
</author>
<published>2004-08-23T05:40:37Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=3a4262a016085f178811ec2459b93f63127e6280'/>
<id>urn:sha1:3a4262a016085f178811ec2459b93f63127e6280</id>
<content type='text'>
The lifetime of the ipc objects (sem array, msg queue, shm mapping) is
controlled by kern_ipc_perms-&gt;lock - a spinlock.  There is no simple way to
reacquire this spinlock after it was dropped to
schedule()/kmalloc/copy_{to,from}_user/whatever.

The attached patch adds a reference count as a preparation to get rid of
sem_revalidate().

Signed-Off-By: Manfred Spraul &lt;manfred@colorfullife.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] sparse: NULL vs 0 - the rest of it</title>
<updated>2004-06-30T08:52:08Z</updated>
<author>
<name>Mika Kukkonen</name>
<email>mika@osdl.org</email>
</author>
<published>2004-06-30T08:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=6079e24889b7c8bdf1cca284cb9fe721e0a70ca3'/>
<id>urn:sha1:6079e24889b7c8bdf1cca284cb9fe721e0a70ca3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[PATCH] sparse: ipc __user annotation</title>
<updated>2004-05-29T04:12:47Z</updated>
<author>
<name>Alexander Viro</name>
<email>viro@www.linux.org.uk</email>
</author>
<published>2004-05-29T04:12:47Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=79f21235ec35e69cff70c5b6914ee020b4e01831'/>
<id>urn:sha1:79f21235ec35e69cff70c5b6914ee020b4e01831</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[PATCH] ipc locking fix</title>
<updated>2004-03-27T05:00:07Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2004-03-27T05:00:07Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=c9503ff2276f1d047fb91aebb43de437dd844925'/>
<id>urn:sha1:c9503ff2276f1d047fb91aebb43de437dd844925</id>
<content type='text'>
From: badari &lt;pbadari@us.ibm.com&gt;

I ran into an ipc hang while trying to shutdown a database.  The problem is
due to missing sem_unlock() in find_undo().
</content>
</entry>
</feed>
