Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933834AbdC3NhR (ORCPT ); Thu, 30 Mar 2017 09:37:17 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:52371 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933002AbdC3NhP (ORCPT ); Thu, 30 Mar 2017 09:37:15 -0400 Date: Thu, 30 Mar 2017 15:37:12 +0200 From: Pavel Machek To: Andrey Ryabinin Cc: Maninder Singh , jeyu@redhat.com, rusty@rustcorp.com.au, akpm@linux-foundation.org, chris@chris-wilson.co.uk, joonas.lahtinen@linux.intel.com, mhocko@suse.com, keescook@chromium.org, jinb.park7@gmail.com, anisse@astier.eu, rafael.j.wysocki@intel.com, zijun_hu@htc.com, mingo@kernel.org, mawilcox@microsoft.com, thgarnie@google.com, joelaf@google.com, kirill.shutemov@linux.intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, pankaj.m@samsung.com, ajeet.y@samsung.com, hakbong5.lee@samsung.com, a.sahrawat@samsung.com, lalit.mohan@samsung.com, cpgs@samsung.com, Vaneet Narang Subject: Re: [PATCH v2] module: check if memory leak by module. Message-ID: <20170330133712.GA23946@amd> References: <1490767322-9914-1-git-send-email-maninder1.s@samsung.com> <460c5798-1f4d-6fd0-cf32-349fbd605862@virtuozzo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <460c5798-1f4d-6fd0-cf32-349fbd605862@virtuozzo.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 958 Lines: 37 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable =20 > 3) This might produce false positives. E.g. module may defer vfree() in = workqueue, so the=20 > actual vfree() call happens after module unloaded. Umm. Really? I agree that module may alloc memory and pass it to someone else. Ok so far. But if module code executes after module is unloaded -- that is use after free -- right? Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAljdCgcACgkQMOfwapXb+vLc/ACgm3QTosZ7AzF/e1PutXhiK1sc 7OEAn0iw3DxK+F475u4NNXpSYVExn74k =M7SU -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--