[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: 2.6.10-ac11 announcement?
From:       Dave Jones <davej () redhat ! com>
Date:       2005-01-31 23:19:37
Message-ID: 20050131231935.GD24577 () redhat ! com
[Download RAW message or body]

On Tue, Feb 01, 2005 at 12:02:49AM +0100, Rafael J. Wysocki wrote:

 > > Nothing terribly exciting here security wise but various bugs for problems
 > > people have been hitting that are now fixed upstream, and also the ULi
 > > tulip variant should now work. If you are running IPv6 you may well want
 > > the networking fixes.
 > 
 > Is there a broken-out version of the patch available?  It reboots at startup
 > (before it mounts the root fs) on my dual-Opteron box (SuSE 9.2), but -ac10
 > works fine, evidently.  I could check which changeset actually caused this to
 > happen, but I'd need to separate them.

I see this happening too. It seems to go away when I back out
this chunk..

		Dave

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.10/mm/mmap.c linux-2.6.10/mm/mmap.c
--- linux.vanilla-2.6.10/mm/mmap.c	2004-12-25 21:15:46.000000000 +0000
+++ linux-2.6.10/mm/mmap.c	2005-01-13 17:24:50.000000000 +0000
@@ -1346,7 +1346,12 @@
 	address += 4 + PAGE_SIZE - 1;
 	address &= PAGE_MASK;
 	grow = (address - vma->vm_end) >> PAGE_SHIFT;
-
+	
+	/* Someone beat us to it */
+	if (grow <= 0) {
+		anon_vma_unlock(vma);
+		return 0;
+	}
 	/* Overcommit.. */
 	if (security_vm_enough_memory(grow)) {
 		anon_vma_unlock(vma);
@@ -1409,6 +1421,11 @@
 	address &= PAGE_MASK;
 	grow = (vma->vm_start - address) >> PAGE_SHIFT;
 
+	/* Someone beat us to it */
+	if (grow <= 0) {
+		anon_vma_unlock(vma);
+		return 0;
+	}
 	/* Overcommit.. */
 	if (security_vm_enough_memory(grow)) {
 		anon_vma_unlock(vma);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic