Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1286065rdb; Sat, 23 Dec 2023 00:36:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IGS2lFUT0TcZn+rX9tUMOyjK13ZhRSNzA/o7JqKhSVLbiLtBnWo9AMIZrH+rslqtmbg8+G9 X-Received: by 2002:a05:622a:cb:b0:425:4043:7622 with SMTP id p11-20020a05622a00cb00b0042540437622mr3547215qtw.74.1703320576118; Sat, 23 Dec 2023 00:36:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703320576; cv=none; d=google.com; s=arc-20160816; b=NFlQA6qn3Kii/JovZS98c4fub8uW/UXh0fYqOfwcB80eW8L5RsT7MmUurbd4R7MbEM di8NnCEVM2gDfNo0THGpdjhxXT32GhZi5f3Lu7sxixybDUIfloil0cmNTl2B2G96djnO 8uS2DT/z//MqnhJskGdR/BGAylL+ts8AMmZxcOEWrDIo37Cj8abck0+RAoc5EbUKW/7f FV3wWWi2QO66cph7JurFVhxsbUQaZGG6XRVAJqoMW5BricuvL0C8q3LaiIV7Heg1AdFa UFZPd7CtXwXafWMCNocVeoBt8deYi0CfhjNLt6yYNW078bgHSAac+nApwlrk2qjKZzfS CtCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:reply-to:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=SMuhObQPEZp/ihKrCijPuWa1j/vG7bnfHMTrrYbQLzA=; fh=tGqdiL5+djrlXy4w30RYVKDChNEysV2XIXUkoINqxiQ=; b=dnrSAxmy4QKJ0cDpS1+FQ202BrXO4dS1HkdRH4pFVBlN6WvWV/JF7FTdoldIvIUCyu 05XbcnvOHIRPp1wcZAo/1o4axu6q/kvb3zq3spE3LPZGGVn9OFlE9TnoOLLJNlD+HpFz whWZaRA6sGsrGkjLBXdl885FZVogm0m9JJWZknpV0EYn7Vb0vcGLIsjt8VZPqtpX7kJY FMeYpMjoyV7qDxkimpCgM9zCia6TsHKrGhr46R3ExmB6kqNKAlE6jSeud9wC/5LmIMG5 4jtRfArLI9dBR/CRHif7mwnJs7D8iKZ+s6CTxRSeE4DBrFUYoammOcfOoXB0NNP/fP9z orOw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10347-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v4-20020a05622a014400b0042377aef957si6147687qtw.288.2023.12.23.00.36.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 00:36:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-10347-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10347-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id D6CB21C225AD for ; Sat, 23 Dec 2023 08:36:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7AA37DDA2; Sat, 23 Dec 2023 08:35:41 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (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 21757D51A; Sat, 23 Dec 2023 08:35:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rGxTq-00062q-4m; Sat, 23 Dec 2023 09:35:34 +0100 Message-ID: <3035e75a-9be0-4bc3-8d4a-6e52c207f277@leemhuis.info> Date: Sat, 23 Dec 2023 09:35:45 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Bug in commit aa511ff8218b ("badblocks: switch to the improved badblock handling Content-Language: en-US, de-DE To: Ira Weiny , Coly Li Cc: Dan Williams , Jens Axboe , Xiao Ni , Geliang Tang , Hannes Reinecke , NeilBrown , Vishal L Verma , linux-block@vger.kernel.org, nvdimm@lists.linux.dev, linux-kernel@vger.kernel.org References: <6585d5fda5183_9f731294b9@iweiny-mobl.notmuch> From: "Linux regression tracking #adding (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <6585d5fda5183_9f731294b9@iweiny-mobl.notmuch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1703320539;46daaa1a; X-HE-SMSGID: 1rGxTq-00062q-4m [TLDR: I'm adding this report to the list of tracked Linux kernel regressions; the text you find below is based on a few templates paragraphs you might have encountered already in similar form. See link in footer if these mails annoy you.] On 22.12.23 19:31, Ira Weiny wrote: > Coly, > > Yesterday I noticed that a few of our nvdimm tests were failing. I bisected > the problem to the following commit. > > aa511ff8218b ("badblocks: switch to the improved badblock handling code") > > Reverting this patch fixed our tests. > > I've also dug into the code a bit and I believe the algorithm for > badblocks_check() is broken (not yet sure about the other calls). At the > very least I see the bb->p pointer being indexed with '-1'. :-( > > I did notice that this work was due to a bug report in badblock_set(). > Therefore, I'm not sure of that severity of that fix is vs a revert. But > at this point I'm not seeing an easy fix so I'm in favor of a revert. Thanks for the report. To be sure the issue doesn't fall through the cracks unnoticed, I'm adding it to regzbot, the Linux kernel regression tracking bot: #regzbot ^introduced aa511ff8218b #regzbot title badblocks: nvdimm tests were failing after switch to impoved code #regzbot ignore-activity This isn't a regression? This issue or a fix for it are already discussed somewhere else? It was fixed already? You want to clarify when the regression started to happen? Or point out I got the title or something else totally wrong? Then just reply and tell me -- ideally while also telling regzbot about it, as explained by the page listed in the footer of this mail. Developers: When fixing the issue, remember to add 'Link:' tags pointing to the report (the parent of this mail). See page linked in footer for details. Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr That page also explains what to do if mails like this annoy you.