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] [day] [month] [year] [list]
Message-ID: <tip-e5d490b252423605a77c54b2e35b10ea663763df@git.kernel.org>
Date:	Sat, 18 Jul 2009 10:57:35 GMT
From:	tip-bot for Mel Gorman <mel@....ul.ie>
To:	linux-tip-commits@...r.kernel.org
Cc:	linux-kernel@...r.kernel.org, acme@...hat.com, hpa@...or.com,
	mingo@...hat.com, mel@....ul.ie, davem@...emloft.net,
	akpm@...ux-foundation.org, htd@...cy-poultry.org,
	tglx@...utronix.de, kosaki.motohiro@...fujitsu.com,
	linux-mm@...ck.org, mingo@...e.hu
Subject: [tip:tracing/urgent] profile: Suppress warning about large allocations when profile=1 is specified

Commit-ID:  e5d490b252423605a77c54b2e35b10ea663763df
Gitweb:     http://git.kernel.org/tip/e5d490b252423605a77c54b2e35b10ea663763df
Author:     Mel Gorman <mel@....ul.ie>
AuthorDate: Wed, 15 Jul 2009 12:23:11 +0100
Committer:  Ingo Molnar <mingo@...e.hu>
CommitDate: Sat, 18 Jul 2009 12:55:28 +0200

profile: Suppress warning about large allocations when profile=1 is specified

When profile= is used, a large buffer is allocated early at
boot. This can be larger than what the page allocator can
provide so it prints a warning. However, the caller is able to
handle the situation so this patch suppresses the warning.

Signed-off-by: Mel Gorman <mel@....ul.ie>
Reviewed-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Cc: Linux Memory Management List <linux-mm@...ck.org>
Cc: Heinz Diehl <htd@...cy-poultry.org>
Cc: David Miller <davem@...emloft.net>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Mel Gorman <mel@....ul.ie>
Cc: Andrew Morton <akpm@...ux-foundation.org>
LKML-Reference: <1247656992-19846-3-git-send-email-mel@....ul.ie>
Signed-off-by: Ingo Molnar <mingo@...e.hu>


---
 kernel/profile.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/kernel/profile.c b/kernel/profile.c
index 69911b5..419250e 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -117,11 +117,12 @@ int __ref profile_init(void)
 
 	cpumask_copy(prof_cpu_mask, cpu_possible_mask);
 
-	prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL);
+	prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN);
 	if (prof_buffer)
 		return 0;
 
-	prof_buffer = alloc_pages_exact(buffer_bytes, GFP_KERNEL|__GFP_ZERO);
+	prof_buffer = alloc_pages_exact(buffer_bytes,
+					GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN);
 	if (prof_buffer)
 		return 0;
 
--
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