OpenVZ Forum


Home » Mailing lists » Users » cat: /proc/self/mountinfo: Cannot allocate memory
Re: Re: cat: /proc/self/mountinfo: Cannot allocate memory [message #45496 is a reply to message #45494] Tue, 13 March 2012 10:00 Go to previous messageGo to previous message
Andrew Vagin is currently offline  Andrew Vagin
Messages: 28
Registered: November 2011
Junior Member
On 03/13/2012 01:09 PM, Benjamin Henrion wrote:
> 2012/3/13 Andrew Vagin<avagin@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@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@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."
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
  • Attachment: patch
    (Size: 0.64KB, Downloaded 647 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: music and movie in the CT during the migration
Next Topic: occasional high loadavg without any noticeable cpu/memory/io load
Goto Forum:
  


Current Time: Sat Aug 23 04:30:49 GMT 2025

Total time taken to generate the page: 0.06318 seconds