<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux-bitkeeper.git/ipc/msg.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] 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] cleanup of ipc/msg.c</title>
<updated>2004-08-23T05:41:21Z</updated>
<author>
<name>Manfred Spraul</name>
<email>manfred@colorfullife.com</email>
</author>
<published>2004-08-23T05:41:21Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=55cdbf47711cc0b62045d177db154cf27db1c0ba'/>
<id>urn:sha1:55cdbf47711cc0b62045d177db154cf27db1c0ba</id>
<content type='text'>
Attached is a cleanup of the main loops in sys_msgrcv and sys_msgsnd, based on
ipc_lock_by_ptr().  Most backward gotos are gone, instead normal "for(;;)"
loops until a suitable message is found.

Description:

- General cleanup of sys_msgrcv and sys_msgsnd: the function were too
  convoluted.

- Enable lockless receive, update comments.

- Use ipc_getref for sys_msgsnd(), it's better than rechecking that the
  msqid is still valid.

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] posix message queues: code move</title>
<updated>2004-04-12T05:53:50Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2004-04-12T05:53:50Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=c334f752d8e9d3847d4459d06f7544dea9a49923'/>
<id>urn:sha1:c334f752d8e9d3847d4459d06f7544dea9a49923</id>
<content type='text'>
From: Manfred Spraul &lt;manfred@colorfullife.com&gt;

cleanup of sysv ipc as a preparation for posix message queues:

- replace !CONFIG_SYSVIPC wrappers for copy_semundo and exit_sem with
  static inline wrappers.  Now the whole ipc/util.c file is only used if
  CONFIG_SYSVIPC is set, use makefile magic instead of #ifdef.

- remove the prototypes for copy_semundo and exit_sem from kernel/fork.c

- they belong into a header file.

- create a new msgutil.c with the helper functions for message queues.

- cleanup the helper functions: run Lindent, add __user tags.
</content>
</entry>
<entry>
<title>[PATCH] Fix error checking in IPC_SET</title>
<updated>2004-01-26T00:52:24Z</updated>
<author>
<name>Andi Kleen</name>
<email>ak@suse.de</email>
</author>
<published>2004-01-26T00:52:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=e67eee8619c521eee00cd6c8e2b984b304d831a1'/>
<id>urn:sha1:e67eee8619c521eee00cd6c8e2b984b304d831a1</id>
<content type='text'>
The LSM changes broke the error checking for queue lengths in IPC_SET. The LSM check would
set set err to 0, but the next check expected it to still be -EPERM. Result was that
no error was reported, but the new parameters weren't correctly set.
</content>
</entry>
<entry>
<title>[PATCH] ipc msg race fix</title>
<updated>2003-10-22T01:23:17Z</updated>
<author>
<name>Andrew Morton</name>
<email>akpm@osdl.org</email>
</author>
<published>2003-10-22T01:23:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux-bitkeeper.git/commit/?id=5ec371b75fa6109672477988216412c52805c6c4'/>
<id>urn:sha1:5ec371b75fa6109672477988216412c52805c6c4</id>
<content type='text'>
Backport this fix from 2.4
</content>
</entry>
</feed>
