[Users] Re: cat: /proc/self/mountinfo: Cannot allocate memory

Andrew Vagin avagin at parallels.com
Tue Mar 13 06:00:53 EDT 2012


On 03/13/2012 01:09 PM, Benjamin Henrion wrote:
> 2012/3/13 Andrew Vagin<avagin at parallels.com>:
>> Hello again
>>
>> This bug is fixed in latest OpenVZ RHEL6 kernel. Actually RHEL6 kernel is
>> fully supported by OpenVZ team now, it has better performance and a few new
>> features like vswap. Enjoy.
>>
>> [root at dhcp-10-30-22-214 /]# cat /proc/self/mountinfo
>> 33 26 0:21 /private/101 / rw,relatime - simfs /vz/private/101
>> rw,usrquota,grpquota
>> 40 33 0:25 / /proc rw,relatime - proc proc rw
>> 41 33 0:23 / /sys rw,relatime - sysfs sysfs rw
>> 42 33 0:27 / /dev/pts rw,relatime - devpts none rw,mode=600,ptmxmode=000
>> 43 40 0:28 / /proc/sys/fs/binfmt_misc rw,relatime - binfmt_misc none rw
>> [root at dhcp-10-30-22-214 /]# uname -a
>> Linux dhcp-10-30-22-214.sw.ru 2.6.32-042stab049.6 #1 SMP Mon Feb 6 19:17:43
>> MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
>>
>> You can use latest RHEL6-based kernel builds on your Debian or Ubuntu
>> machine. Here's how.
> Can you give a pointer to the source patches fixing this bug?
>
> --
> Benjamin Henrion<bhenrion at ffii.org>
> FFII Brussels - +32-484-566109 - +32-2-3500762
> "In July 2005, after several failed attempts to legalise software
> patents in Europe, the patent establishment changed its strategy.
> Instead of explicitly seeking to sanction the patentability of
> software, they are now seeking to create a central European patent
> court, which would establish and enforce patentability rules in their
> favor, without any possibility of correction by competing courts or
> democratically elected legislators."
> _______________________________________________
> Users mailing list
> Users at openvz.org
> https://openvz.org/mailman/listinfo/users
>

-------------- next part --------------
diff --git a/fs/namespace.c b/fs/namespace.c
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -888,8 +888,9 @@ static int show_mountinfo(struct seq_file *m, void *v)
 		   MAJOR(sb->s_dev), MINOR(sb->s_dev));
 	seq_dentry(m, mnt->mnt_root, " \t\n\\");
 	seq_putc(m, ' ');
-	seq_path_root(m, &mnt_path, &root, " \t\n\\");
-	if (root.mnt != p->root.mnt || root.dentry != p->root.dentry) {
+	err = seq_path_root(m, &mnt_path, &root, " \t\n\\");
+	if (root.mnt != p->root.mnt || root.dentry != p->root.dentry ||
+							err == -EINVAL) {
 		/*
 		 * Mountpoint is outside root, discard that one.  Ugly,
 		 * but less so than trying to do that in iterator in a


More information about the Users mailing list