From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [203.10.76.45]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.ozlabs.org", Issuer "CA Cert Signing Authority" (verified OK)) by bilbo.ozlabs.org (Postfix) with ESMTPS id D7C5FB7084 for ; Thu, 16 Jul 2009 17:43:51 +1000 (EST) Received: from bilbo.ozlabs.org (bilbo.ozlabs.org [203.10.76.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "bilbo.ozlabs.org", Issuer "CAcert Class 3 Root" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id C8DD0DDD04 for ; Thu, 16 Jul 2009 17:43:51 +1000 (EST) Subject: Re: [PATCH] kmemleak: Allow kmemleak to be built on powerpc From: Michael Ellerman To: catalin.marinas@arm.com In-Reply-To: References: Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-okPXwpUUnxj6/rc68Hil" Date: Thu, 16 Jul 2009 17:43:50 +1000 Message-Id: <1247730230.18228.5.camel@concordia> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Reply-To: michael@ellerman.id.au List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --=-okPXwpUUnxj6/rc68Hil Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2009-07-16 at 11:25 +1000, Michael Ellerman wrote: > Very lightly tested, doesn't crash the kernel. >=20 > Signed-off-by: Michael Ellerman > --- >=20 > It doesn't look like we actually need to add any support in the > arch code - or is there something I'm missing? Hmm, I think we want to add annotations in lib/lmb.c don't we? That's our low-level pre-bootmem allocator. And we have the same problem with _edata as x86. And I'm seeing lots (~250) of these: unreferenced object 0xc0000000fcd2e2f0 (size 16): comm "swapper", pid 1, jiffies 4294892393 backtrace: [] .create_object+0x164/0x2a8 [] .kmemleak_alloc+0x74/0x120 [] .__kmalloc+0x20c/0x2ac [] .kvasprintf+0x64/0xb0 [] .kobject_set_name_vargs+0x44/0xb4 [] .dev_set_name+0x50/0x6c [] .scsi_sysfs_device_initialize+0xd0/0x16c [] .scsi_alloc_sdev+0x1c4/0x284 [] .scsi_probe_and_add_lun+0x144/0xbd4 [] .__scsi_scan_target+0xfc/0x658 [] .scsi_scan_channel+0x78/0xe8 [] .scsi_scan_host_selected+0xcc/0x154 [] .do_scsi_scan_host+0xe8/0x10c [] .scsi_scan_host+0x250/0x294 [] .ibmvscsi_probe+0x4f8/0x630 [] .vio_bus_probe+0x360/0x3cc cheers --=-okPXwpUUnxj6/rc68Hil Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEABECAAYFAkpe2jAACgkQdSjSd0sB4dJPnwCgo8e6jk+jiZyDP2sw6ZpM+Yxy uU0AoKQzES5kG297PhCZ4FCpv6H7lnKR =4Vxm -----END PGP SIGNATURE----- --=-okPXwpUUnxj6/rc68Hil--