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]
Message-ID: <20081120121016.GE20724@elte.hu>
Date:	Thu, 20 Nov 2008 13:10:16 +0100
From:	Ingo Molnar <mingo@...e.hu>
To:	Catalin Marinas <catalin.marinas@....com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2.6.28-rc5 00/11] Kernel memory leak detector (updated)


got a couple of build errors and warnings on x86 with the attached 
config:

mm/memleak.c: In function 'dump_object_info':
mm/memleak.c:325: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t'
mm/memleak.c: In function 'create_object':
mm/memleak.c:435: error: implicit declaration of function 'in_irq'
mm/memleak.c:438: error: implicit declaration of function 'in_softirq'
mm/memleak.c: In function 'memleak_alloc':
mm/memleak.c:605: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'size_t'
mm/memleak.c: In function 'scan_yield':
mm/memleak.c:682: error: implicit declaration of function 'in_atomic'
mm/memleak.c: In function 'memleak_scan':
mm/memleak.c:828: error: implicit declaration of function 'NODE_MEM_MAP'
mm/memleak.c:828: warning: assignment makes pointer from integer without a cast
mm/memleak.c: In function 'memleak_seq_show':
mm/memleak.c:944: warning: format '%u' expects type 'unsigned int', but argument 4 has type 'size_t'

i fixed one - see it below.

	Ingo

------------>
>From bc8c69e82ba3a4e9ec2105a464362ac9bc44ef63 Mon Sep 17 00:00:00 2001
From: Ingo Molnar <mingo@...e.hu>
Date: Thu, 20 Nov 2008 13:13:24 +0100
Subject: [PATCH] kmemleak: build fix

fix:

 mm/memleak.c: In function 'scan_yield':
 mm/memleak.c:682: error: implicit declaration of function 'in_atomic'

Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
 mm/memleak.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/memleak.c b/mm/memleak.c
index 8fb5260..3adb5a4 100644
--- a/mm/memleak.c
+++ b/mm/memleak.c
@@ -36,6 +36,7 @@
 #include <linux/cache.h>
 #include <linux/percpu.h>
 #include <linux/lockdep.h>
+#include <linux/hardirq.h>
 
 #include <asm/sections.h>
 #include <asm/processor.h>

View attachment "config" of type "text/plain" (86260 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ