Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 9, 2011
  1. ... and the same kind of leak for mqueue

    Al Viro authored
    Signed-off-by: Al Viro <>
Commits on Mar 24, 2011
  1. @hallyn @torvalds

    userns: add a user namespace owner of ipc ns

    hallyn authored torvalds committed
    	Feb 15: Don't set new ipc->user_ns if we didn't create a new
    	Feb 23: Move extern declaration to ipc_namespace.h, and group
    		fwd declarations at top.
    Signed-off-by: Serge E. Hallyn <>
    Acked-by: "Eric W. Biederman" <>
    Acked-by: Daniel Lezcano <>
    Acked-by: David Howells <>
    Cc: James Morris <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
Commits on Apr 7, 2009
  1. @torvalds

    namespaces: ipc namespaces: implement support for posix msqueues

    Serge E. Hallyn authored torvalds committed
    Implement multiple mounts of the mqueue file system, and link it to usage
    Each ipc ns has a corresponding mqueuefs superblock.  When a user does
    clone(CLONE_NEWIPC) or unshare(CLONE_NEWIPC), the unshare will cause an
    internal mount of a new mqueuefs sb linked to the new ipc ns.
    When a user does 'mount -t mqueue mqueue /dev/mqueue', he mounts the
    mqueuefs superblock.
    Posix message queues can be worked with both through the mq_* system calls
    (see mq_overview(7)), and through the VFS through the mqueue mount.  Any
    usage of mq_open() and friends will work with the acting task's ipc
    namespace.  Any actions through the VFS will work with the mqueuefs in
    which the file was created.  So if a user doesn't remount mqueuefs after
    unshare(CLONE_NEWIPC), mq_open("/ab") will not be reflected in "ls
    If task a mounts mqueue for ipc_ns:1, then clones task b with a new ipcns,
    ipcns:2, and then task a is the last task in ipc_ns:1 to exit, then (1)
    ipc_ns:1 will be freed, (2) it's superblock will live on until task b
    umounts the corresponding mqueuefs, and vfs actions will continue to
    succeed, but (3) sb->s_fs_info will be NULL for the sb corresponding to
    the deceased ipc_ns:1.
    To make this happen, we must protect the ipc reference count when
    a) a task exits and drops its ipcns->count, since it might be dropping
       it to 0 and freeing the ipcns
    b) a task accesses the ipcns through its mqueuefs interface, since it
       bumps the ipcns refcount and might race with the last task in the ipcns
    So the kref is changed to an atomic_t so we can use
    atomic_dec_and_lock(&ns->count,mq_lock), and every access to the ipcns
    through ns = mqueuefs_sb->s_fs_info is protected by the same lock.
    Signed-off-by: Cedric Le Goater <>
    Signed-off-by: Serge E. Hallyn <>
    Cc: Alexey Dobriyan <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
  2. @torvalds

    namespaces: mqueue ns: move mqueue_mnt into struct ipc_namespace

    Serge E. Hallyn authored torvalds committed
    Move mqueue vfsmount plus a few tunables into the ipc_namespace struct.
    The CONFIG_IPC_NS boolean and the ipc_namespace struct will serve both the
    posix message queue namespaces and the SYSV ipc namespaces.
    The sysctl code will be fixed separately in patch 3.  After just this
    patch, making a change to posix mqueue tunables always changes the values
    in the initial ipc namespace.
    Signed-off-by: Cedric Le Goater <>
    Signed-off-by: Serge E. Hallyn <>
    Cc: Alexey Dobriyan <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
Commits on Dec 13, 2006
  1. [PATCH] getting rid of all casts of k[cmz]alloc() calls

    Robert P. J. Day authored Linus Torvalds committed
    Run this:
    	for f in $(grep -Erl "\([^\)]*\) *k[cmz]alloc" *) ; do
    	  echo "De-casting $f..."
    	  perl -pi -e "s/ ?= ?\([^\)]*\) *(k[cmz]alloc) *\(/ = \1\(/" $f
    And then go through and reinstate those cases where code is casting pointers
    to non-pointers.
    And then drop a few hunks which conflicted with outstanding work.
    Cc: Russell King <>, Ian Molton <>
    Cc: Mikael Starvik <>
    Cc: Yoshinori Sato <>
    Cc: Roman Zippel <>
    Cc: Geert Uytterhoeven <>
    Cc: Ralf Baechle <>
    Cc: Paul Mackerras <>
    Cc: Kyle McMartin <>
    Cc: Benjamin Herrenschmidt <>
    Cc: Martin Schwidefsky <>
    Cc: "David S. Miller" <>
    Cc: Jeff Dike <>
    Cc: Greg KH <>
    Cc: Jens Axboe <>
    Cc: Paul Fulghum <>
    Cc: Alan Cox <>
    Cc: Karsten Keil <>
    Cc: Mauro Carvalho Chehab <>
    Cc: Jeff Garzik <>
    Cc: James Bottomley <>
    Cc: Ian Kent <>
    Cc: Steven French <>
    Cc: David Woodhouse <>
    Cc: Neil Brown <>
    Cc: Jaroslav Kysela <>
    Cc: Takashi Iwai <>
    Signed-off-by: Andrew Morton <>
    Signed-off-by: Linus Torvalds <>
Commits on Oct 3, 2006
  1. @AdrianBunk

    fix file specification in comments

    Uwe Zeisberger authored AdrianBunk committed
    Many files include the filename at the beginning, serveral used a wrong one.
    Signed-off-by: Uwe Zeisberger <>
    Signed-off-by: Adrian Bunk <>
Commits on Apr 16, 2005
  1. Linux-2.6.12-rc2

    Linus Torvalds authored
    Initial git repository build. I'm not bothering with the full history,
    even though we have it. We can create a separate "historical" git
    archive of that later if we want to, and in the meantime it's about
    3.2GB when imported into git - space that would just make the early
    git days unnecessarily complicated, when we don't have a lot of good
    infrastructure for it.
    Let it rip!
Something went wrong with that request. Please try again.