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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 037DFC636D6 for ; Mon, 20 Feb 2023 19:47:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231697AbjBTTrD (ORCPT ); Mon, 20 Feb 2023 14:47:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjBTTrD (ORCPT ); Mon, 20 Feb 2023 14:47:03 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A00BCDE2; Mon, 20 Feb 2023 11:47:02 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id B543DB80DB6; Mon, 20 Feb 2023 19:47:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ECAEC4339B; Mon, 20 Feb 2023 19:46:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1676922419; bh=Zim4BTwaWJ5LW+ey7LEUKLQwBzXyAFrmCFyU7jEmkQ0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=Ni5gGKzqNc5uv3ipbV5+58jGCO1r2pvYYtzEvFGYGd2YXJZMsaOHImZRQWY3VgKpL v8/dzcveg3yePwHh+EaIsxPmCrdEmF6ySpcmvEtuelNVKHshqnOsCrT7fSvlMGGVqQ NPRbBDcgaHPqchkTScUxDHTlOshS0Rj375fRgOuOkY140cpp4gi1HJRMjy5jttT9B8 z1ziiZAGuXpBtBS8K/ERnWfN0T5C/j6kkVQJFh3i5Ds15cXXFQvL25Yu/pR841Jk2o AnML/hUQXgQetdSRaFT5HDSm7rLQnlYv0ZAAAh5J0/aLgaEm4PJ9LLwnhe1y1AWovt B08XR0Cdpjm2Q== Date: Mon, 20 Feb 2023 11:46:57 -0800 From: Jakub Kicinski To: Yury Norov Cc: linux-kernel@vger.kernel.org, "David S. Miller" , Andy Shevchenko , Barry Song , Ben Segall , Bruno Goncalves , Dietmar Eggemann , Gal Pressman , Greg Kroah-Hartman , Haniel Bristot de Oliveira , Heiko Carstens , Ingo Molnar , Jacob Keller , Jason Gunthorpe , Jesse Brandeburg , Jonathan Cameron , Juri Lelli , Kees Cook , Leon Romanovsky , Linus Torvalds , Mel Gorman , Peter Lafreniere , Peter Zijlstra , Rasmus Villemoes , Saeed Mahameed , Steven Rostedt , Tariq Toukan , Tariq Toukan , Tony Luck , Valentin Schneider , Vincent Guittot , linux-crypto@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [PATCH 3/9] sched: add sched_numa_find_nth_cpu() Message-ID: <20230220114657.7670bf71@kernel.org> In-Reply-To: References: <20230121042436.2661843-1-yury.norov@gmail.com> <20230121042436.2661843-4-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, 16 Feb 2023 17:39:08 -0800 Yury Norov wrote: > Despite that prev_hop is used conditionally on curr_hop is not the > first hop, it's initialized unconditionally. > > Because initialization implies dereferencing, it might happen that > the code dereferences uninitialized memory, which has been spotted by > KASAN. Fix it by reorganizing hop_cmp() logic. > > Reported-by: Bruno Goncalves > Signed-off-by: Yury Norov Fixed the spelling pointed out by Andy and applied, thanks!