From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64B45C7618B for ; Tue, 14 Mar 2023 21:41:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9623B6B0072; Tue, 14 Mar 2023 17:41:56 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 912408E0002; Tue, 14 Mar 2023 17:41:56 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7BC4C8E0001; Tue, 14 Mar 2023 17:41:56 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 663026B0072 for ; Tue, 14 Mar 2023 17:41:56 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id BB6161C622B for ; Tue, 14 Mar 2023 21:41:55 +0000 (UTC) X-FDA: 80568826590.28.B93C26E Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by imf18.hostedemail.com (Postfix) with ESMTP id 6BAB01C0006 for ; Tue, 14 Mar 2023 21:41:52 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=kc+Zp4wL; spf=pass (imf18.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1678830113; a=rsa-sha256; cv=none; b=C0Tr2jszAhE8wH0klSooNLMqsKozchkosYufuqIClgXmT9oMH9uL7lUkZqpbh3flEeOb2I Jo8QzM4VVf2OFXOVPSaD1KcHuyl4W/5Blv5Kvq9UIY3x8SNJLyigBPhcaY4HOpk0p09YNK xbN4NCuLkLvYmCL9CQSXyxmGpNetvrg= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=pass header.d=linux-foundation.org header.s=korg header.b=kc+Zp4wL; spf=pass (imf18.hostedemail.com: domain of akpm@linux-foundation.org designates 145.40.73.55 as permitted sender) smtp.mailfrom=akpm@linux-foundation.org; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1678830113; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=lluK40yHd4lXNWi3l9zJ9DIY22lhYdIurPq4TrkDTy4=; b=T7ri9ECSlfwPSZt8W2Hx/+jzjb8w2ayR7meKZbVoQCRnH9igmZEKEoa9XQPhNvjpMY/IyB HYnLR9wG9iyo0NVVhi7rFtufgikadlUs+2lXMkHwcdiWswso4TAs800CIY3k9AtrJIRY2O GRnDN3IV6xEucybuMe9+TvzJ2JbwOMU= Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 28748CE136C; Tue, 14 Mar 2023 21:41:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 540C4C4339B; Tue, 14 Mar 2023 21:41:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1678830106; bh=U1RO7x5Ui4dGDPqI5i5TFQ60IFKJiPJunBWUL3JLSEc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=kc+Zp4wLwh0UoIB6PNYPG7LJwTAyWR9ruOjRsv3nu2Qo/ViMlRDEsJb/wCvWzAKs8 vogEXuB4jm/QDkAD6casuLkrmp5sO28O+KF1lMfygVjg8YvPRMVE/6QwBWZqb/gscc Z8LbguyeXWHodNYoHVvedkdQuiuXpuc9T73NFuZc= Date: Tue, 14 Mar 2023 14:41:45 -0700 From: Andrew Morton To: correabuscar+kernAlbugs@gmail.com Cc: bugzilla-daemon@kernel.org, Alexander Potapenko , linux-mm@kvack.org Subject: Re: [Bug 217191] New: test_meminit: failures: 70 out of 130 / reference already released. Message-Id: <20230314144145.07a3e680362eb77061fe6d0e@linux-foundation.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspam-User: X-Rspamd-Queue-Id: 6BAB01C0006 X-Rspamd-Server: rspam01 X-Stat-Signature: pisghisc7br97wp6mi14td56ggrx63bw X-HE-Tag: 1678830112-93962 X-HE-Meta: U2FsdGVkX1/HCcvsXBYABMWNH6Gb0+OMgFfYI8SZKc/GzitnAcdDkn/WSKa/wG7ALjOu9tw5tI+WxoquOlC4e2FZhk852vTUyJFzY/ad6II508J/qP8ZDwNiH3BPSfuCs9Mh0TTfY3GdtT1PyS4WVMujR7x3JQ/pcWzuXe4Gt+ARaUnYYbpFRIzu+AA+Yvmpaps0J0EiuoMPW70eVMKcvJMQrPgq4aKgyHz/kwY0p8jzUA130NPydxPY26VLzP+hoAYGLDSfr3U6vwGEApMhKim5fUNV/pwwcRfDjZ8132yZtKJL/wSSpwQpRk45uWS96dTPPWsYHDseXTgeSlux35BZ0dNPAnTiOr5VJNb/f/ECxXVjMpyuxGvqHczZoR+6rzX9vzrZnmqJpOHj00P6Tk36yl42peC6c3qkueJVQ0TEjMW2mNZz/UZgtNo+KmpeViaEwGN6fkaYwUNjlnUVaQ76y+Ol7yUrZYaxLrElkKS6lU2EwFLUlTso4cZCEGAzp+0OSfkeDUsVxrMmcMwrJDbqbMaEdIVK9v9ibDUIs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ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: (switched to email. Please respond via emailed reply-to-all, not via the bugzilla web interface). On Tue, 14 Mar 2023 05:23:31 +0000 bugzilla-daemon@kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=217191 > > Bug ID: 217191 > Summary: test_meminit: failures: 70 out of 130 / reference > already released. Alexander, could you please take a look? Thanks. > Product: Memory Management > Version: 2.5 > Kernel Version: 6.2.6, 6.2.5, 5.17.11 > Hardware: All > OS: Linux > Tree: Mainline > Status: NEW > Severity: normal > Priority: P1 > Component: Other > Assignee: akpm@linux-foundation.org > Reporter: correabuscar+kernAlbugs@gmail.com > Regression: No > > With CONFIG_TEST_MEMINIT=y (at least), looks like this has been happening > since, at least 5.17.11 kernel, on Gentoo, and I've only noticed it since 6.2.5 > and now on 6.2.6 kernel as well. > > I've some logs saved from previous kernels, if needed. > > ``` > [ 0.000000] Linux version 6.2.6-gentoo-x86_64 (_kernelbuilder@i87k) (gcc > (Gentoo 12.2.1_p20230304 p13) 12.2.1 20230304, GNU ld (Gentoo 2.40 p3) 2.40.0) > #1 SMP Tue Mar 14 05:47:58 CET 2023 > ... > [ 25.431948] test_uuid: all 18 tests passed > [ 25.432064] test_memcat_p: test passed > [ 25.435701] test_meminit: test_pages failed 10 out of 10 times > [ 25.437724] test_meminit: test_kvmalloc failed 40 out of 40 times > [ 25.447595] test_meminit: test_kmemcache failed 20 out of 70 times > [ 25.447797] test_meminit: all 10 tests in test_rcu_persistent passed > [ 25.447912] test_meminit: failures: 70 out of 130 > [ 25.448044] reference already released. > [ 25.448153] allocated in: > [ 25.448260] test_ref_tracker_init+0xa6/0x1e0 > [ 25.448374] do_one_initcall+0xb1/0x210 > [ 25.448485] kernel_init_freeable+0x197/0x250 > [ 25.448597] kernel_init+0x11/0x1d0 > [ 25.448708] ret_from_fork+0x1f/0x30 > [ 25.448818] freed in: > [ 25.448925] test_ref_tracker_init+0x185/0x1e0 > [ 25.449885] do_one_initcall+0xb1/0x210 > [ 25.449885] kernel_init_freeable+0x197/0x250 > [ 25.449885] kernel_init+0x11/0x1d0 > [ 25.449885] ret_from_fork+0x1f/0x30 > [ 25.451220] ------------[ cut here ]------------ > [ 25.451331] WARNING: CPU: 2 PID: 1 at lib/ref_tracker.c:136 > ref_tracker_free+0x233/0x2a0 > [ 25.451464] Modules linked in: > [ 25.451572] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G U TN > 6.2.6-gentoo-x86_64 #1 644473e507c86b163c18e9f84729e44d3514c8d0 > [ 25.451710] Hardware name: System manufacturer System Product Name/PRIME > Z370-A, BIOS 3004 07/12/2021 > [ 25.451843] RIP: 0010:ref_tracker_free+0x233/0x2a0 > [ 25.451956] Code: e9 71 ff ff ff 48 c7 c7 e8 88 d7 9b e8 96 3d a5 ff 8b 55 > 14 85 d2 75 51 8b 45 18 85 c0 75 34 4c 89 e6 48 89 df e8 6d e7 b2 00 <0f> 0b b8 > ea ff ff ff e9 42 ff ff ff 48 8d 7b 08 b8 ff ff ff ff f0 > [ 25.452119] RSP: 0000:ffffb4c68000bdf8 EFLAGS: 00010246 > [ 25.452232] RAX: 0000000000000000 RBX: ffffffff9d200ee0 RCX: > 0000000000000000 > [ 25.452361] RDX: 0000000000000000 RSI: 0000000000000000 RDI: > 0000000000000000 > [ 25.452490] RBP: ffff9ac5c0989900 R08: 0000000000000000 R09: > 0000000000000000 > [ 25.452618] R10: 0000000000000000 R11: 0000000000000000 R12: > 0000000000000246 > [ 25.452747] R13: 0000000004500000 R14: 0000000000000000 R15: > 0000000000000000 > [ 25.452876] FS: 0000000000000000(0000) GS:ffff9ad51a280000(0000) > knlGS:0000000000000000 > [ 25.453006] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 25.453119] CR2: 0000000000000000 CR3: 000000040200b001 CR4: > 00000000003706e0 > [ 25.453258] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 25.453387] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 25.453515] Call Trace: > [ 25.453622] > [ 25.453729] ? test_ref_tracker_init+0x19a/0x1e0 > [ 25.453841] ? do_one_initcall+0xb1/0x210 > [ 25.453952] ? kernel_init_freeable+0x197/0x250 > [ 25.454065] ? kernel_init+0x11/0x1d0 > [ 25.454175] ? ret_from_fork+0x1f/0x30 > [ 25.454285] ? test_meminit_init+0x940/0x940 > [ 25.454396] test_ref_tracker_init+0x19a/0x1e0 > [ 25.454508] do_one_initcall+0xb1/0x210 > [ 25.454619] kernel_init_freeable+0x197/0x250 > [ 25.454731] ? rest_init+0xa0/0xa0 > [ 25.454841] kernel_init+0x11/0x1d0 > [ 25.454952] ret_from_fork+0x1f/0x30 > [ 25.455062] > [ 25.455169] ---[ end trace 0000000000000000 ]--- > [ 25.455281] leaked reference. > [ 25.455389] test_ref_tracker_timer_func+0x18/0x30 > [ 25.455502] call_timer_fn.constprop.0+0xe/0x80 > [ 25.455614] __run_timers+0x22b/0x270 > [ 25.455724] run_timer_softirq+0x14/0x30 > [ 25.455835] __do_softirq+0xb9/0x210 > [ 25.455945] leaked reference. > [ 25.456053] test_ref_tracker_init+0x9a/0x1e0 > [ 25.456165] do_one_initcall+0xb1/0x210 > [ 25.456275] kernel_init_freeable+0x197/0x250 > [ 25.456386] kernel_init+0x11/0x1d0 > [ 25.456496] ret_from_fork+0x1f/0x30 > [ 25.456610] ------------[ cut here ]------------ > [ 25.456721] WARNING: CPU: 2 PID: 1 at lib/ref_tracker.c:39 > ref_tracker_dir_exit+0x110/0x180 > [ 25.456854] Modules linked in: > [ 25.456962] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G U W TN > 6.2.6-gentoo-x86_64 #1 644473e507c86b163c18e9f84729e44d3514c8d0 > [ 25.457101] Hardware name: System manufacturer System Product Name/PRIME > Z370-A, BIOS 3004 07/12/2021 > [ 25.457233] RIP: 0010:ref_tracker_dir_exit+0x110/0x180 > [ 25.457347] Code: 48 89 c5 48 c7 c7 a3 88 d7 9b e8 3b 40 a5 ff 41 8b 7e 14 > 85 ff 74 a7 e8 8e fd ff ff eb a0 48 8b 34 24 48 89 df e8 10 ea b2 00 <0f> 0b 8b > 43 08 83 f8 01 75 35 8b 43 0c 83 f8 01 75 37 48 83 c4 08 > [ 25.457509] RSP: 0000:ffffb4c68000be70 EFLAGS: 00010246 > [ 25.457622] RAX: ffffffff9d200ef8 RBX: ffffffff9d200ee0 RCX: > 0000000000000000 > [ 25.457751] RDX: 0000000000000000 RSI: 0000000000000000 RDI: > 0000000000000000 > [ 25.457880] RBP: ffffffff9d200ef8 R08: 0000000000000000 R09: > 0000000000000000 > [ 25.458008] R10: 0000000000000000 R11: 0000000000000000 R12: > ffffffff9d200ef8 > [ 25.458136] R13: ffffffff9d200ef8 R14: ffffffff9d200ef8 R15: > dead000000000100 > [ 25.458265] FS: 0000000000000000(0000) GS:ffff9ad51a280000(0000) > knlGS:0000000000000000 > [ 25.458396] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 25.458509] CR2: 0000000000000000 CR3: 000000040200b001 CR4: > 00000000003706e0 > [ 25.458637] DR0: 0000000000000000 DR1: 0000000000000000 DR2: > 0000000000000000 > [ 25.458766] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: > 0000000000000400 > [ 25.458894] Call Trace: > [ 25.459001] > [ 25.459108] ? test_meminit_init+0x940/0x940 > [ 25.459220] test_ref_tracker_init+0x1c4/0x1e0 > [ 25.459332] do_one_initcall+0xb1/0x210 > [ 25.459442] kernel_init_freeable+0x197/0x250 > [ 25.459554] ? rest_init+0xa0/0xa0 > [ 25.459664] kernel_init+0x11/0x1d0 > [ 25.459774] ret_from_fork+0x1f/0x30 > [ 25.459886] > [ 25.459992] ---[ end trace 0000000000000000 ]--- > [ 25.460106] test_div64: Starting 64bit/32bit division and modulo test > [ 25.460858] test_div64: Completed 64bit/32bit division and modulo test, > 0.000637198s elapsed > [ 25.461843] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64 > [ 25.461955] crc32: self tests passed, processed 225944 bytes in 108224 nsec > [ 25.462193] crc32c: CRC_LE_BITS = 64 > [ 25.462302] crc32c: self tests passed, processed 112972 bytes in 54045 nsec > [ 25.471308] crc32_combine: 8373 self tests passed > [ 25.480294] crc32c_combine: 8373 self tests passed > [ 25.480908] atomic64_test: passed for x86-64 platform with CX8 and with SSE > [ 25.481038] interval tree insert/remove > [ 25.483347] -> 8535 cycles > [ 25.483564] interval tree search > [ 25.500073] -> 61061 cycles (2692 results) > [ 25.500346] pciehp: pcie_port_service_register = 0 > ``` > > -- > You may reply to this email to add a comment. > > You are receiving this mail because: > You are the assignee for the bug.