Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp163718rdg; Tue, 10 Oct 2023 07:07:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEotTFbl8dVKkQWRhh/Pbz8FJ6nJzjRyp8OdUrKpGJqZweLlIj5H+SKaYQSxzfBroYPTH7E X-Received: by 2002:a17:90b:1bc7:b0:274:589f:ba35 with SMTP id oa7-20020a17090b1bc700b00274589fba35mr16390544pjb.8.1696946840783; Tue, 10 Oct 2023 07:07:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696946840; cv=none; d=google.com; s=arc-20160816; b=EsxjsTOZDwRgsX6IhevJPQ+T1acDqrxAGPejMW9N2nl9at0FlpipMey6TtWp5oq2/6 agkwT3n/lPPJjs4jCmAfJ0ERbSBGHWTeblzcXX1npc3ncEw4IbhpZtr5b3ULc687gQJq rhoWsE2bwm5q4cQctXh27E8sz2t39G830VEo9/FU0WKBVm6AfUa+21AGBe85e8SOgruz fVBlRmPbmLwRar+OVCfaZjjM6zsMn0IPL0AdDeCYOM5v/85V/ARUAkPQt70p89EyYo3L 9c9yinrwfHuozq8WU1uk9luYTEDdLMYoEH+q4P6/1xAp0+OmCADzAo6LiYNuJDcTbrl9 i1Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WvVJSuploogbry/5+vlY4UrajqKjgEpimkSZQtt9RdA=; fh=rTV0uGAokNKUwwXRpCz/gbD+x0pHo1fj3u1T9ODpcTI=; b=Hi2oJT8HLK+0FAM2KnbBmJLtY19tJJZK3IhfaG6/Z+9fstMUyV1OwzOXlnmDrGEJKA ro517peSxuU0dXPdvlC/GZxNNtI1ntyeJfvKyqX7uozhX3L05SmshRjhsXWejwokXQ7p 6mDjKB+YrY5Yiu+8gZ1+fPKL9SUBXqafG+28S1y0DgZD6m9dg3jw2h+v++fvVZZbBruN 685iUQPXjPIuZ9siTGMA2Jiau4E60rpITcs7gwpRIgxwfszqysfOCifmElTXJjQjcJ7X O2Xy8UF6+aF/6iFzOikWOTrTcwPyQcU67lIUp59+lxKay2v5197jKYj4RJM5zmHkf2nl Rfww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MoYa9HLK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id w11-20020a17090abc0b00b00278f79e4fabsi13712260pjr.93.2023.10.10.07.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MoYa9HLK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 60159804C6F8; Tue, 10 Oct 2023 07:07:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232670AbjJJOHL (ORCPT + 99 others); Tue, 10 Oct 2023 10:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232646AbjJJOHK (ORCPT ); Tue, 10 Oct 2023 10:07:10 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0FDBA9 for ; Tue, 10 Oct 2023 07:07:05 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-307d20548adso5212985f8f.0 for ; Tue, 10 Oct 2023 07:07:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696946824; x=1697551624; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=WvVJSuploogbry/5+vlY4UrajqKjgEpimkSZQtt9RdA=; b=MoYa9HLK3DiNhFgqiuy1/TJnRYjQFcLlxiO5QxgEyBoesQOq8VJ8G2/plTVqi817HZ 3W0RGQR4meFN+IlGu+nMo9fQLQcB5WxrotkfhaCW0ieCC33yHpDK4MhAu9SlXPKRMtFg szoCy/I7kqZwZX/QYFZV7Znn+qEIox9xwgfnlNSVPkl5NfGKnG8XnQQvPiREVQNLsQIq XrhERXbpaLKwOeKGohOTLMx7iyH+EXDHXjal88Y4fnkQEDTw2ynwzFEF2bQiTIWYHRQE qgnAyX2+7K81XG1VcC2YmwUGTSH9JctgJjlO7syIrdCgMl1Wh1S3VpMNuYd40/hcmGa4 bSxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696946824; x=1697551624; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=WvVJSuploogbry/5+vlY4UrajqKjgEpimkSZQtt9RdA=; b=bDBIU62NCFVpbC8gqjbTQVhInVgOfwNSRmWt0sAjKUxVHUZtKfjMW0xXu/tXDQM+as 0b5LfaX3UkJwLolfaMPLgvTgnhPzSPO2Ec47rqMDUlQ8KJeZcFrEw1w3EcIUjz8ZZXQn 0jONXPlo6stm9kIzw/XcQKymteJRwB1DiPz8gTTVtZHNT18IYuGafuo/PvMq/93fUfoi 8in/XNSoQdD8Owmj5PX41Gfgb6ST4Lygwe3OB4DtwB6PIy5SnNz7+e/MqTcrOTVvAfQs CDiPUzNWFeBJ7NsOX/P0+1OsGV68RwSeDFWOM00Pou/hZCN0tG5Hgu252YsN20x9bHJF CtWg== X-Gm-Message-State: AOJu0Yxvw6HFDzbJSSAghgG4oUonaVnP6pTyUUV5ke053+6AtS9eq49z Bv1kIy8SL3VIdcPCQ/JjojsMdw== X-Received: by 2002:a5d:568e:0:b0:31f:d2dc:df26 with SMTP id f14-20020a5d568e000000b0031fd2dcdf26mr15707129wrv.28.1696946824289; Tue, 10 Oct 2023 07:07:04 -0700 (PDT) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id k1-20020adff5c1000000b003258934a4bcsm12798664wrp.42.2023.10.10.07.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 07:07:03 -0700 (PDT) Date: Tue, 10 Oct 2023 17:07:00 +0300 From: Dan Carpenter To: "Paul E. McKenney" Cc: Frederic Weisbecker , LKML , Boqun Feng , Joel Fernandes , Josh Triplett , Mathieu Desnoyers , Neeraj Upadhyay , Steven Rostedt , Uladzislau Rezki , rcu Subject: Re: [PATCH 23/23] locktorture: Check the correct variable for allocation failure Message-ID: References: <20231010115921.988766-1-frederic@kernel.org> <20231010115921.988766-24-frederic@kernel.org> <97ecfb49-e500-45f4-86bb-769b2d32e91c@paulmck-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97ecfb49-e500-45f4-86bb-769b2d32e91c@paulmck-laptop> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 10 Oct 2023 07:07:18 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 06:55:40AM -0700, Paul E. McKenney wrote: > On Tue, Oct 10, 2023 at 01:59:21PM +0200, Frederic Weisbecker wrote: > > From: Dan Carpenter > > > > There is a typo so this checks the wrong variable. "chains" plural vs > > "chain" singular. We already know that "chains" is non-zero. > > > > Fixes: 7f993623e9eb ("locktorture: Add call_rcu_chains module parameter") > > Signed-off-by: Dan Carpenter > > Signed-off-by: Frederic Weisbecker > > Reviewed-by: Paul E. McKenney > > A name change to increase the Hamming distance would of course also be > good, though less urgent. ;-) "Hamming distance" is such a great phrase. I'm going to use that every time I complain about confusingly similar variable names going forward. regards, dan carpenter