Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp772057lqp; Thu, 21 Mar 2024 15:28:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVxI0eD4ERe0pAhxjZ9jay76SGrbQELZYz5LUvmzrA9fwL1SYsNOlWSk7SWbS309F6wQPwaHeHbOXALiU8Shuaje0Fqh43sfporJ+V6eA== X-Google-Smtp-Source: AGHT+IFonurXfFjUJGWanTeUNGB35TcuvG3sBeQjKys7pKEIvSmaW628PuIHVnUmvTBS4bZMOzke X-Received: by 2002:a05:620a:1a04:b0:789:f58b:7a8f with SMTP id bk4-20020a05620a1a0400b00789f58b7a8fmr647793qkb.52.1711060091271; Thu, 21 Mar 2024 15:28:11 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pj35-20020a05620a1da300b00789f2fe81b7si717762qkn.257.2024.03.21.15.28.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 15:28:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-110760-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; dkim=pass header.i=@intel.com header.s=Intel header.b=ajKFAKjU; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-110760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-110760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 D76541C21DCA for ; Thu, 21 Mar 2024 22:28:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B3501369A3; Thu, 21 Mar 2024 22:27:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ajKFAKjU" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) (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 598AE135A50; Thu, 21 Mar 2024 22:27:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=198.175.65.19 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711060076; cv=fail; b=OjOODPUgaXjYE+otwzWGuntAXqKiHadex3nZEvwcxJMVoiNxPmUHSWITg0L16s8vn1dhYjmFNBl/1XvZH6vdOmqK7lL5mPjr8Y7qSFMWfrkbNRl6PWRHtTVsogr/0TyeF6BXu6WyqtIfEH3J2gqm1IPLkZKKCdikYpOAfhWmfBs= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711060076; c=relaxed/simple; bh=ipPovo+1tzeVWYy8TWOAuh4eFz3rIOJo1DqKU/SG2hk=; h=Message-ID:Date:Subject:To:CC:References:From:In-Reply-To: Content-Type:MIME-Version; b=bkwsre6AUfp6fmqhatxpuimG6Iao2rOoDg9caINhFA1gv0O6L8dftDXNVeQ++NLBIZgTK9iV2aWq38Bzst/TwoN6LujniAJT5eV9eXU4WdjwosR+0igRUA4bMwQ8DBCztNUAcMtPaD6wmcG5T+7Z+ZrBwHdwJlYtSD/WH2VD/0U= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ajKFAKjU; arc=fail smtp.client-ip=198.175.65.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1711060074; x=1742596074; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=ipPovo+1tzeVWYy8TWOAuh4eFz3rIOJo1DqKU/SG2hk=; b=ajKFAKjUoYMbi3lOhb/3pETKQopZtSViEB2KBKNwekk+XG/J0+WZ7cVQ tYq32esq+4fCje986ilcLiVW0171oML0gKuvUTw+1Kt4nEkgAukkBe7PN dBLwlhNP/bJhDFycyvKpsnGJUBngjwroUi9JVFWpBOL58gk2CK9/g3FHF IVpZA0N8ZbbnNlG04JgiZEx2QCDMQOBTG0hu37Bn7WW/v2TeTBFln8ILC CHBOZMbWErUM/7umFa4QOC24cMJIJKEz/z4XDvLD0EFp0VqW0ozah+DOv NOgdN2qG4nE6PzmVnCwrPhXG569VuZsT4gTcrwLl5/Sgz3hzDP1r7FP2i w==; X-IronPort-AV: E=McAfee;i="6600,9927,11020"; a="5952973" X-IronPort-AV: E=Sophos;i="6.07,144,1708416000"; d="scan'208";a="5952973" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Mar 2024 15:27:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,144,1708416000"; d="scan'208";a="45663425" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 21 Mar 2024 15:27:54 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Thu, 21 Mar 2024 15:27:52 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Thu, 21 Mar 2024 15:27:52 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 21 Mar 2024 15:27:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k9pdZwuQv9NH0yNB7Wb0DSeXhxhDtYX0QhwQFZ6jc1wlhMPkXBEPZtCEsqzhrol607j7MBL2vlUVMu3vOP+lI+QIT0J8m7JXL+EHZRjwndJpp2WkPKAk1X9Rv0IaZMsQQaw36SySU/i4QVOcVgnTz6TePLhNadczeIqi6QGUfzXisj4NiOwBpRrxJM+0HAEdtjZFsDZJEgMKO8qlwBYu1ov05n0Fx7Hw/GCLsXpoJYspZmREH1tuhnjh0w2VeuaHtG0OKIdHEeB2vGAefv903trdG2gQEvUFaWmgSS+6b39BhpGw3MGccFSIe4+ey0yKV7TdPo5+wVrwrutL5dejMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QCUX8Oun6JYSLE5I1bYeGJYzq7FyOStr1+7NDovaDa0=; b=JjE6/xG1DI3izCYL37MXbbF6tz12RIvn+97nfjXvIH5sEWKYoXxW3jH+FKHw2gaYdex4n6i5R3HEKcH/ePUZPUzHxdIKWaerAavBx0iFAB0pIvut3boPi8xO1SBG2wS8+i6XEsldp9wv4Wt/yi1pZIzippW+kdeP9B8VMqTJoEpDt+73xH1hRuskLWlfWz4bRRhUXVIrUe3iI/X6F+HPpT+d+vYnm6rxMNVFVkKyb/8VvfF3YsN95B+BwxkYNcsX+9DRXa3yKPFJznC+ZA5ao2prYxzJYEGwfJhFGCkihkk9ioZ8MJLwcPS398HeJ93kbvB2oOsXYkjGfNzxVwLw4w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB4914.namprd11.prod.outlook.com (2603:10b6:303:90::24) by SN7PR11MB8043.namprd11.prod.outlook.com (2603:10b6:806:2ee::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.11; Thu, 21 Mar 2024 22:27:50 +0000 Received: from CO1PR11MB4914.namprd11.prod.outlook.com ([fe80::9d72:f2c2:684b:6b50]) by CO1PR11MB4914.namprd11.prod.outlook.com ([fe80::9d72:f2c2:684b:6b50%6]) with mapi id 15.20.7409.010; Thu, 21 Mar 2024 22:27:49 +0000 Message-ID: Date: Thu, 21 Mar 2024 15:27:47 -0700 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] ice: Fix freeing uninitialized pointers Content-Language: en-US To: Julia Lawall , Jakub Kicinski CC: Andy Shevchenko , Dan Carpenter , , , , "Maciej Fijalkowski" , Przemek Kitszel , Tony Nguyen , LKML , Alexander Lobakin , David Laight , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jiri Pirko , "Jonathan Cameron" , Kees Cook , Lukasz Czapnik , Paolo Abeni , "Pucha Himasekhar Reddy" , Markus Elfring , Dan Williams References: From: Jesse Brandeburg Autocrypt: addr=jesse.brandeburg@intel.com; keydata= xsFNBE6J+2cBEACty2+nfMyjkmi/BxhDinCezJoRM8PkvXlIGZL7SXAn7yxYNc28FvOvVpmx DbgPYDSLly/Rks4WNnVgAQA+nGxgg+tqk8DpPROUmkxQO7EL5TkszjBusUvL98crsMJVzoE2 RNTJZh3ClK8k7r5dEePM1LM4Hq1bNTwE6pzyHJ1QuHodzR1ifDL7+3pYwt5wowZjQr4uJXFA 5g5Xze8z0cnac+NpgIUqUdpEZ+3XmI92hIg2fUSRPUTgm+xEBijBv2OlTjZpzVfH8HlXeGCT E98Vuofvn2pgTZyJWJ6o0I9JUlxO+MMtMPuwL7Br0JqZQvvf80EFxbXnk+QSudg0sZAAec0g TSGWb7513siAqvAhxGjIf0cs2hEzRXbd4cVMZKPV2uai5g2LUsnS8m+zx/fzCC+KefKcxN8r Fs+9jNj2TOwmqahJqRBwxQZujNC96pkCQYzZtuz5BA7IMxC12TtnbvtUL6ef7GZVMv6b+rpe RmWnLIfGJItWefcse66l1wPQPi6tXmzBN6MaEDyVL6umiZTy7dnltaXsFZPPLapuk0qRoQtC aIjjk5VaK16t6pPUCRDW1um2anxOYBJCXzHrnzKf09hBgjbO2Tk5uKRQHpTEsm+38lIbSQ2r YUfOckMug/QHW05t+XVC2UuyAdjBamdvno7fhLaSTsqdEngqMQARAQABzTBKZXNzZSBDLiBC cmFuZGVidXJnIDxqZXNzZS5icmFuZGVidXJnQGludGVsLmNvbT7CwXgEEwECACIFAk6J+2cC GwMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheAAAoJEKaiMWVzwKZycZ4QAIayWIWvnV2PiZ0E Kt7NMvSB3r3wx/X4TNmfTruURh24zrHcdrg6J8zSlXKt0fzxvvX7HYWgAEXD9BoVdPjh7TDy du9aMhFCFOfPHarz8DdGbT8UpGuX8bMZyd16/7nMqoGisK+OnmJubPxID2lDmXDRbxROahNF 0ZJVXd+mw44FefzyJigJnfXtwyDuIit6ludKAs2iW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KDpby92GXQE2jZJ+5JCT+iW6dGQwrB9oMILx4V0WAvFsZT4t bq1MdS1n0qZD3t4ogYVqmYJyiB5ubTngI+s+VhDw3KbdhURJkQQ8dmojVfJZmeEH3u/eawAR AQABwsFfBBgBAgAJBQJOiftnAhsMAAoJEKaiMWVzwKZyTWQP/AlWAnsKIQgzP234ivevPc8d MOrOFslJrIutYqIW0V+B6teIcr73lejBl1fWtxn0mGPiTdNg/tJ48uN8K38yDzpxxmDDaKJa GGW6VPRezSpreqFjoEIz5NtJOo2dl7iK/6y7bAdlAeQj2Dvwj7Y1lB/JIbw8yoDg5Xl8D2db I8hchtsSXs8bxReEP1BGGsg4uyceOUexa1vAIGy80JDobbcjRaAo7xdwCXQjfEoC5UJVGd8g k21zDAUw3Eh47qO216txWwvOi+fq9o0UnOOAJ0xTRnQt1r5rMxEa8nLlChgfOSAdvBfaKAkn lIeWKK9LuETsiLpbofrey42d3wUUXggHYleYr9gR/7kQze78OATUHcud00B6EnmGDTOpbykp fby8AwgfbmcGz3LzgoZM7W9fnAkfVRuBOF5ge48kZecjHGxE69VB9180Aq6Bo2QVBlp3Le0j 97DvMAwMgzyvfHHBPV0B9uzfxyBcxc9bRHXk0IiVIjm2e4gR+5WdsgXFd867ezQr3EiIe+6U +k7ZSjyrj7tsJOk1tKAvQKvMlxfRecw/yJDcKwwBHgEXVEnKgbu/Ci+ikbqsLCBWbOWs6eYq 6m1nRM6nj0pgRDHIOQIxdWEysPWgmY2xxHb4yUq5YWa5+xu59zXdG72FqGqN8+Mkdw+M9m4D /fnLfll98Nhx In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MW4PR04CA0247.namprd04.prod.outlook.com (2603:10b6:303:88::12) To CO1PR11MB4914.namprd11.prod.outlook.com (2603:10b6:303:90::24) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB4914:EE_|SN7PR11MB8043:EE_ X-MS-Office365-Filtering-Correlation-Id: afb40969-dffe-4ef8-0c94-08dc49f62430 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dcG93zAzcpcyvo2239IqcR6xEWgKYoObjUgfKVLyTlax/bTmTfThh/XrMqhoFb07GIxdkSFGYfDUSTFrmcw/HiV52dHot8m8Sg2JNmnDF120b96nJ+FFGafuPgbq7BVc6BhucbQs7m75ZKGarip1faeZxfcJu2R2g8pakxvaatfZsHE4EzOyrmJevFN2LLgMXCh++BbIEWoR2K+01elYGegSCJ3W9wCCUiFn7HMpsvOwbGRb37CfpXmCK0WVXq+dRC1Y36GyQ/J2fSrJaaaK7FiQqgwEW6SxfSCBA3AJn2Gw45ss6/KbKSrAb9PMIddb9qcAklBP3cTw0IVOsdbhR3sy6uTPOCPwJ1yg0ZETKX6Syu2kGW/dU8HzfuQT3izPCqJLts9bNREF55i7EjDFuY/NvW3y90rqDfW3BX2GvFiTcYkt4U0Hfked+YYbZNOuv5DrZqnxE0HlVJIfBJlSm+Gk2ws5LwEFWFgWpdyfRBlre7JN2NXXTXr4w72iLIdPl5QFfeDdqCOk5N6u0EfNGyw2hjIXfB4PB+Jsv8DuDi3DnejKHA9ZNfgBcT7mQajmRS2IVifgOsCbVP9sTiwpPCkNvkPL0NCMCG2Y6hx1s+E= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4914.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(376005)(7416005)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dEZVeWM4aXQrMXpyVjZzU1BralUxN1hOVD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dSeFhhdnUyd2QyRE90UGNrcVF3NlEvNXg5WWRIclg1VWJ0?= =?utf-8?B?M0dXbEpEOW00Y21tbFgvMUJ3UUZKK0VLRnhRb3pwSEhtbHNsVGdKMFM2OEha?= =?utf-8?B?MHhnWDB4d0NHMmowQTY0dzdNL3l3TWM2aTdETFdIdGFKakEyc1VyMjd0ZGZD?= =?utf-8?B?OTRsdUtPL1Rtd0dpV1JCT243K3g5U2NmWnQ0b3JaSEltcWhKYkdCcUFnRzgv?= =?utf-8?B?UUdrUittSm96ZG9ZdkxkOW5rNkhuQmlyRStFSEV1eUVleDVwMHE2eGV2aWov?= =?utf-8?B?ZjJuS1FNNkdOdG4xdUlzRnhVcmxEZTQ2QkpxSjB6OTRiQW5ZQTA4WmdZTDB6?= =?utf-8?B?UWc9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: afb40969-dffe-4ef8-0c94-08dc49f62430 X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4914.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2024 22:27:49.8906 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nec6gPFeHjnr2S4yJSCui0x8tn8Au6Aywrht+EdsQd3A9MWAdLwmweL4v4tMeOoWHxzLpxFsXv5io5UCJ+3UuuId9w66UpI+t71evbDiaFo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB8043 X-OriginatorOrg: intel.com On 3/21/2024 1:20 PM, Julia Lawall wrote: > Does one prefer an initialization of null at the top of the function > or an initialization to a meaningful value in the middle of the > function ? I think the latter. There was a related patch explaining the direction, from Dan posted here: https://lore.kernel.org/all/171097196970.1011049.9726486429680041876.stgit@dwillia2-xfh.jf.intel.com/ We had been having some internal discussions about use of __free(kfree) in the ice driver. The gist of it is that we should instead be using inline declarations, which I also agree is a reasonable style for this. It more clearly shows the __free(kfree) and the allocation (kzalloc, kcalloc, etc) on the same (or virtually the same) line of code. I'm curious if Jakub would dislike this less? Accept? as an example: diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c index 88c86de82e09..822628d25b2f 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.c +++ b/drivers/net/ethernet/intel/ice/ice_common.c @@ -1003,8 +1003,6 @@ static void ice_get_itr_intrl_gran(struct ice_hw *hw) */ int ice_init_hw(struct ice_hw *hw) { - struct ice_aqc_get_phy_caps_data *pcaps __free(kfree) = NULL; void *mac_buf __free(kfree) = NULL; u16 mac_buf_len; int status; @@ -1083,7 +1081,8 @@ int ice_init_hw(struct ice_hw *hw) if (status) goto err_unroll_sched; - pcaps = kzalloc(sizeof(*pcaps), GFP_KERNEL); + struct ice_aqc_get_phy_caps_data *pcaps __free(kfree) = + kzalloc(sizeof(*pcaps), GFP_KERNEL); if (!pcaps) { status = -ENOMEM; goto err_unroll_sched; Any thoughts?