From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (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 DC64B368D42 for ; Tue, 7 Jul 2026 23:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783466711; cv=none; b=UqUClDm2EBVIuYiUeJWBjDG3IB0gRawVw0whFjjPKELWwxDz7f14m1vxh6xGA4ou8sSpBnI+5hyUP6j9FuENJgB2tg/lx71d6f5I7nMVxE1/xyQr2yEEohjXnZgnX9r+Jwb6QdN3bpqxa0zlm/ZZzVR3nM5ruOjFzJTXkzd1Utw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783466711; c=relaxed/simple; bh=M+7bvJKOTLnluVGlWoHQoosQ90nnjEwk93vpK6OFD18=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PxG6pbfOzD7Sg3ovszc3KGWeg2lsy5wt4MhSSUyr8WJq1pSWA9kpmhPHgxNaxLuKIdCjhjr6WnHESClPHe6e4y0qmQ+31GHl9UtCbQJf2cuS4Jel03nDQ3iO6L/8s/tMqHqdphaD25YMhpI9ELKEg/bZULDrP0Ht+bA9oIEHQgE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org; spf=pass smtp.mailfrom=mailbox.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b=lreddFeQ; arc=none smtp.client-ip=80.241.56.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=mailbox.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mailbox.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=mailbox.org header.i=@mailbox.org header.b="lreddFeQ" Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4gvy4c1sx3z8v8K; Wed, 08 Jul 2026 01:25:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1783466704; h=from:from: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; bh=vqvYzcU0tp5QSJfTyNPQpTOuLqhjrEz7KwgIVfCBFAY=; b=lreddFeQoHLa1Xyd6Y4KkPd0RO2AD786VpeaTVEA2mWRO35oRc9A4pcPqeXshhyQ7qATKU eOJ2qllCRoADBij4MiCItoBnaLtmqZRLOuIchMAHo0rYdV2WAH0KNaoh4vjV6DhZ4rplw0 Cp2Qrwsq98bR2GHmPE9/oDZMxzHhbq8ubCH9x0zadZohDCP8eaZS/LOquEhYAMUg7HKEtq MSg4q7HEolelRPkZzVC2nW8IhgF4pU9PQZ81tZzPsTW98gybdWtAA1wjq0b0IS2CNJukpW wYropi/VNbVvkjwHQubDGcgoKaIZA6MqNEQyHzUAdjd785OuSq5JXn3iAlixUw== Message-ID: Date: Wed, 8 Jul 2026 01:25:01 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: test_bitmap fails on ppc/ppc64 on kernels v7.1.3, v7.2-rc2 To: "Christophe Leroy (CS GROUP)" , "linuxppc-dev@lists.ozlabs.org" , Andy Shevchenko Cc: linux-kernel@vger.kernel.org References: <98d65de7-e5aa-4197-85bd-219eab01e572@kernel.org> Content-Language: en-US, de-DE From: Erhard Furtner In-Reply-To: <98d65de7-e5aa-4197-85bd-219eab01e572@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-MBO-RS-ID: 3151ac94355c5f55dc0 X-MBO-RS-META: 86s8qnt4tknem1r8n6pn6iix6dpmfk4h >> test_bitmap: loaded. >> test_bitmap: [lib/test_bitmap.c:397] bitmaps contents differ: expected >> "1,3-4,9", got "1,3-4,9,65-71,73-79,81-87,89-95,97-99" >> test_bitmap: parselist('0-2047:128/256'):    912 >> test_bitmap: scnprintf("%*pbl", '0-32767'):    5977 >> test_bitmap: test_bitmap_read_perf:        1191082 >> test_bitmap: test_bitmap_write_perf:        1270153 >> test_bitmap: failed 1 out of 208655 tests > > On QEMU (pmac32_defconfig) I get: > > test_bitmap: loaded. > test_bitmap: parselist('0-2047:128/256'):    2200 > test_bitmap: scnprintf("%*pbl", '0-32767'):    26440 > test_bitmap: test_bitmap_read_perf:        1819760 > test_bitmap: test_bitmap_write_perf:        18189840 > test_bitmap: all 208655 tests passed > > On QEMU with your confirm I get: > > [    1.162486] test_bitmap: loaded. > [    1.177069] test_bitmap: [lib/test_bitmap.c:397] bitmaps contents > differ: expected "1,3-4,9", got "1,3-4,9,65-71,73-79,81-87,89-95,97-99" > [    1.180599] test_bitmap: parselist('0-2047:128/256'):    2920 > [    1.190105] test_bitmap: scnprintf("%*pbl", '0-32767'):    65560 > [    1.427378] test_bitmap: test_bitmap_read_perf:        9546321 > [    1.438769] test_bitmap: test_bitmap_write_perf:        9344481 > [    1.457679] test_bitmap: failed 1 out of 208655 tests > > So there is something with your config Interesting! As I get the same test failure on my Talos II too. Anyhow, I was able to bisect the issue. Offending commit is: # git bisect bad 6b5a4b68736798df1031404a2fad06d031253ef7 is the first bad commit commit 6b5a4b68736798df1031404a2fad06d031253ef7 (HEAD) Author: Andy Shevchenko Date: Thu Feb 26 12:16:44 2026 +0100 bitmap: Add test for out-of-boundary modifications for scatter & gather Make sure that bitmap_scatter() and bitmap_gather() do not modify the bits outside of the given nbits span. Signed-off-by: Andy Shevchenko Signed-off-by: Yury Norov lib/test_bitmap.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) Reverting this commit on top of v7.2-rc2 lets the test pass: test_bitmap: loaded. test_bitmap: parselist('0-2047:128/256'): 888 test_bitmap: scnprintf("%*pbl", '0-32767'): 6074 test_bitmap: test_bitmap_read_perf: 1190938 test_bitmap: test_bitmap_write_perf: 1259471 test_bitmap: all 208655 tests passed Your hint about my config made me check a few options and I found the offending one, which is INIT_STACK_ALL_PATTERN=y. On a kernel built with INIT_STACK_ALL_ZERO=y the issue does not show up. Regards, Erhard