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>] [day] [month] [year] [list]
Date:	Wed, 06 Sep 2006 09:07:11 -0700
From:	Don Mullis <dwm@...r.net>
To:	lkml <linux-kernel@...r.kernel.org>
Subject: Re: [patch 3/6] fault-injection capability for alloc_pages() [bug
	fix]

Fix compilation when CONFIG_FAIL_PAGE_ALLOC=n

Signed-off-by: Don Mullis <dwm@...r.net>

---
 mm/page_alloc.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-2.6.17/mm/page_alloc.c
===================================================================
--- linux-2.6.17.orig/mm/page_alloc.c
+++ linux-2.6.17/mm/page_alloc.c
@@ -938,9 +938,11 @@ __alloc_pages(gfp_t gfp_mask, unsigned i
 
 	might_sleep_if(wait);
 
+#ifdef CONFIG_FAIL_PAGE_ALLOC
 	if (!(gfp_mask & __GFP_NOFAIL) &&
 	    should_fail(fail_page_alloc, 1 << order))
 		return NULL;
+#endif
 
 restart:
 	z = zonelist->zones;  /* the list of zones suitable for gfp_mask */


-
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