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] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 05 May 2009 14:41:01 +0100
From:	David Howells <dhowells@...hat.com>
To:	Greg Ungerer <gerg@...pgear.com>
Cc:	dhowells@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: BUG: failure at mm/nommu.c:518/add_nommu_region()

Greg Ungerer <gerg@...pgear.com> wrote:

> BUG: failure at mm/nommu.c:518/add_nommu_region()!

Can you find out some more information about the region in question, perhaps
with the attached patch?

Also if you can check to see whether the region is within the ROMFS image.

David
---
diff --git a/mm/nommu.c b/mm/nommu.c
index cdc6f60..ba9e230 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -515,7 +515,18 @@ static void add_nommu_region(struct vm_region *region)
 
 	validate_nommu_regions();
 
-	BUG_ON(region->vm_start & ~PAGE_MASK);
+	if (region->vm_start & ~PAGE_MASK) {
+		printk(KERN_ERR "___ REGION ERROR ___\n");
+		printk(KERN_ERR "%lx-%lx\n", region->vm_start, region->vm_end);
+		printk(KERN_ERR "fs=%s file=%s\n",
+		       region->vm_file ?
+		       region->vm_file->f_path.dentry->d_inode->i_sb->s_type->name :
+		       "*anon*",
+		       region->vm_file ?
+		       region->vm_file->f_path.dentry->d_name.name :
+		       (const unsigned char *) "*anon*");
+		BUG();
+	}
 
 	parent = NULL;
 	p = &nommu_region_tree.rb_node;
--
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