lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Fri, 18 May 2007 07:37:28 -0700
From:	"Paul Menage" <menage@...gle.com>
To:	"Balbir Singh" <balbir@...ux.vnet.ibm.com>
Cc:	"Paul Jackson" <pj@....com>, LKML <linux-kernel@...r.kernel.org>,
	"Andrew Morton" <akpm@...ux-foundation.org>
Subject: Re: [PATCH] Fix a simple issue w.r.t mounting of containers

Thanks. I've added that to my tree.

Paul

On 5/18/07, Balbir Singh <balbir@...ux.vnet.ibm.com> wrote:
>
>
> Fix containers mounting issue. With the current v9 patches if a container
> hierarchy is mounted and then umounted. A second mount of the hierarchy
> fails
>
> Steps to reproduce the problem
>
> 1. mount -t container container /<mnt point>
> 2. umount /<mnt point>
> 3. mount -t container container /<mnt point>
>
> Step 3 fails with -EBUSY. This is due to the fact that when we unmount,
> in container_put_super(), we need to delete the current root from the roots
> list.
>
> The patch below fixes the issue
>
>
> Signed-off-by: Balbir Singh <balbir@...ux.vnet.ibm.com>
> ---
>
>  kernel/container.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff -puN kernel/container.c~fix-remount-issue kernel/container.c
> --- linux-2.6.21-mm1/kernel/container.c~fix-remount-issue       2007-05-18 17:59:40.000000000 +0530
> +++ linux-2.6.21-mm1-balbir/kernel/container.c  2007-05-18 18:00:02.000000000 +0530
> @@ -574,6 +574,7 @@ static void container_put_super(struct s
>         ret = rebind_subsystems(root, 0);
>         BUG_ON(ret);
>
> +       list_del(&root->root_list);
>         kfree(root);
>         mutex_unlock(&container_mutex);
>  }
> _
>
> --
>         Warm Regards,
>         Balbir Singh
>         Linux Technology Center
>         IBM, ISTL
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ