From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 877361A2554 for ; Tue, 30 Jul 2024 14:17:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722349064; cv=none; b=rWskjUEcPs9TGhlRRkNZNJrFMkmg4eYRwYL4GGrf7V0mwOr9HCAG5CmkZYb0qGHgoGZrPPWoUPDRTfXG02KfsbVkQ9evLrSzrI4oYu7moPc293ndwcaNzuBcOPIQ6U8bRZe+mN1unxB+XF3KE00ulTx7AJeDHxbkBHEQkmOuHCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722349064; c=relaxed/simple; bh=nvcNOzRoAf7FeIn+zLFySCEXj8MUOpjhYWAKoZJ7GCQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bWA6Mth8+zAb3ZtvxPnwQXdliJi9UX+t8dM3oAovnNIswkZP/bkRHV8+ymzbSk8HcmTb1s7XMguREnti/LCz9BNdL7t5dvXFxau/tRyjgaf44ARsywXPlsFzZ8fJn/rcz1MF40EUpUtSnRUetI8PJ2moVjOtNJ2ZDoqDTqwyHyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 900F5C32782; Tue, 30 Jul 2024 14:17:42 +0000 (UTC) Date: Tue, 30 Jul 2024 15:17:40 +0100 From: Catalin Marinas To: Pavel Tikhomirov Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yongjun , Chen Jun , Aleksandr Mikhalitsyn , kernel@openvz.org Subject: Re: [PATCH 2/2] kmemleak-test: add percpu leak Message-ID: References: <20240725041223.872472-1-ptikhomirov@virtuozzo.com> <20240725041223.872472-3-ptikhomirov@virtuozzo.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240725041223.872472-3-ptikhomirov@virtuozzo.com> On Thu, Jul 25, 2024 at 12:12:16PM +0800, Pavel Tikhomirov wrote: > Add a per-CPU memory leak, which will be reported like: > > unreferenced object 0x3efa840195f8 (size 64): > comm "modprobe", pid 4667, jiffies 4294688677 > hex dump (first 32 bytes on cpu 0): > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ > backtrace (crc 0): > [] pcpu_alloc+0x3df/0x840 > [] kmemleak_test_init+0x2c9/0x2f0 [kmemleak_test] > [] do_one_initcall+0x44/0x300 > [] do_init_module+0x60/0x240 > [] init_module_from_file+0x86/0xc0 > [] idempotent_init_module+0x109/0x2a0 > [] __x64_sys_finit_module+0x5a/0xb0 > [] do_syscall_64+0x7a/0x160 > [] entry_SYSCALL_64_after_hwframe+0x76/0x7e > > CC: Wei Yongjun > CC: Chen Jun > Signed-off-by: Pavel Tikhomirov Acked-by: Catalin Marinas