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:	Sat, 18 Nov 2006 00:02:22 -0800 (PST)
From:	David Rientjes <rientjes@...washington.edu>
To:	Linus Torvalds <torvalds@...l.org>, Andrew Morton <akpm@...l.org>
cc:	Andi Kleen <ak@...e.de>, Nick Piggin <npiggin@...e.de>,
	Andre Noll <maan@...temlinux.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] mm: do not call bad_page on PG_reserved check

The return value of free_pages_check() indicates if PG_reserved was set.
If so, the calling functions return immediately and no pages are freed so
there is no need to call bad_page().

Cc: Andi Kleen <ak@...e.de>
Cc: Nick Piggin <npiggin@...e.de>
Signed-off-by: David Rientjes <rientjes@...washington.edu>
---
 mm/page_alloc.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index bf2f6cf..99bc29d 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -439,7 +439,6 @@ static inline int free_pages_check(struc
 			1 << PG_slab	|
 			1 << PG_swapcache |
 			1 << PG_writeback |
-			1 << PG_reserved |
 			1 << PG_buddy ))))
 		bad_page(page);
 	if (PageDirty(page))
-
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