From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 0E7D045EDB; Wed, 18 Dec 2024 12:19:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E043840DF5; Wed, 18 Dec 2024 12:19:08 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 642E140DDE for ; Wed, 18 Dec 2024 12:19:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1734520748; x=1766056748; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=/YCfxUgH7ppvSBgi3BTQ15iT3kSTk5sSGnVqThncVDQ=; b=OiJhAwyGC3mbOX+v5LEgTAPFdJS01xfKpwn9sHCHblIfp9ZNbgH3qF/X I0PZytQ+T981+UbOQGsKK2HH05HNmWTqMOuoGz+CCH1h4jPtojC82+ZXC Lgeqnn756DewabxxJaqU6/OGx0rrz7fUNgbdAyQfzq3f+vT1oyc228T35 PweOvVT+n4e8YfS2Z/2GbYCmkAyT3KC2F4BnfusJH3iwdd6dDOih5RPt+ JceVZY96i+HxrVpSblV+0jyOfksgkKMzVH2d3WFGh9p5nt6iZ/o1Nm4GF 0ZS6UfNwmQDNd7CknfCndgvaKcuLi6JnT1w6jm0xHr2J1IOCghnX2Ygrb A==; X-CSE-ConnectionGUID: mzGpjOE9S3iCnFUuIZudKQ== X-CSE-MsgGUID: 00b2vVdxRaO5w3kBFdtOAQ== X-IronPort-AV: E=McAfee;i="6700,10204,11289"; a="52399919" X-IronPort-AV: E=Sophos;i="6.12,244,1728975600"; d="scan'208";a="52399919" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Dec 2024 03:18:59 -0800 X-CSE-ConnectionGUID: vNebWl7bQGKeMxt2N1UfkQ== X-CSE-MsgGUID: VMV2jhiqS4mIwHzqo1sq9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,244,1728975600"; d="scan'208";a="98252993" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by fmviesa010.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Dec 2024 03:18:57 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Wed, 18 Dec 2024 03:18:56 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44 via Frontend Transport; Wed, 18 Dec 2024 03:18:56 -0800 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.171) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Wed, 18 Dec 2024 03:18:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DxwUVKfVa5LaHPorAntV/uoGLQk3dFR9/5NifpgmkfmyWc3zBIu/lVFFfsajenwuvy5nIS91LsDq7qU2LyT0oeEtRWC+yhy+ysOMx21kH/qjuf8JTs93r/d1HCv7YkMPVH3dj4p82Yk3eIo9I7gonuOsW3S/Snd9TJAW8Tivp3D2MuN1jjK3dJ9savsjr9WrMgBnSm1v46wXhYe29kYZ/x8JpiHlL2PYdftAKq9cWCIklnJBdZdFLEgWukVwziDfaN6b0sK6Pkobi0tIZ98kmX+Z9ZgEhUZm+bisB0In58kaZw9GDM7I/8pcUmvz7FQ42sEAr1M1CL0o+PLg7m6pPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=kUTQVoMz6q1aiWzgLZAFUXgk9lb/VaaP4fIU19XqoEw=; b=xu60nonI0BLnPG+rcyoZGrUXZ/s9Zod5hnZSN40z+Z/Rq0zJlusSolziU3SL/8NM3q/lzyYo71R5PqomqhEZUSLDL8pr4SERxkvERwparAfc134dvxrF+ME28GQA/CK/ok77a9T3MDWp3e2LfvDLx+fQo8auKLSDNfvxnV94yzngs+l4FDCLmJncApOmHVihf0XMDg0M9ZKCT1YYvdl7vQ+TZ8/5yAK+E8AePadoeSV3LpEBrtuvJ4gMsrHds6BWT8Y2tg/Seurrler1VEtpSn6ua35yweXZb0wTwzMn6V1b7rE1PTFoZorfAaA0ivswxB9wxjSP4rKBq+jU4NJTMw== 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 DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) by CY8PR11MB6915.namprd11.prod.outlook.com (2603:10b6:930:59::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Wed, 18 Dec 2024 11:18:33 +0000 Received: from DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a]) by DM4PR11MB6502.namprd11.prod.outlook.com ([fe80::21e4:2d98:c498:2d7a%3]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 11:18:31 +0000 Message-ID: Date: Wed, 18 Dec 2024 12:18:25 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/5] eal: check lcore variable handle To: David Marchand , CC: , , , Tyler Retzlaff References: <20241205175754.1673888-1-david.marchand@redhat.com> <20241217085954.3310414-1-david.marchand@redhat.com> <20241217085954.3310414-2-david.marchand@redhat.com> Content-Language: en-US From: "Burakov, Anatoly" In-Reply-To: <20241217085954.3310414-2-david.marchand@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB8PR09CA0024.eurprd09.prod.outlook.com (2603:10a6:10:a0::37) To DM4PR11MB6502.namprd11.prod.outlook.com (2603:10b6:8:89::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB6502:EE_|CY8PR11MB6915:EE_ X-MS-Office365-Filtering-Correlation-Id: 930a771f-7f49-4985-700a-08dd1f55b442 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016|7053199007; X-Microsoft-Antispam-Message-Info: =?utf-8?B?RUhhdUZIU2N5a1BkMlFDYzBOQXFWVEVFQzRDYW1JUTZHclVDK21pdkJSWmM5?= =?utf-8?B?RzduRnpDYlNETDYxdHBkWWFWVjR4Q3hTWXJvRFBhL3Y1bkNkOGxxQzBCOVNU?= =?utf-8?B?aXBSQVZPV0ZLTDVrQ01BQU8xK2FZMWUxSVdvOVVIcVIxUndINUJHNzZDOVlI?= =?utf-8?B?OTVaTmk3bStlWjhvTFdRdkdnM3JXNUsrd3E2S29EbHV2a2x3bUVTQmtoTGdU?= =?utf-8?B?ZEVnODlBMUNGamNTV3ltM0xVNkpKQ1YzLzEzSm5QUmxhSHBpWjljYkxyV2kz?= =?utf-8?B?TkhEK2lNd2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pZcDNVMnY4eDhqbjFBYjVkemZlM3Q2UGdiYk1OMVZxMDdIcmI5?= =?utf-8?B?UU1KSkZvL0h0dm5Va2c2b2paQnh6Qmwxck80ek1OdjlmenZZdWExY2R6QjE0?= =?utf-8?B?YTRRU3BDZjBQbFF4R1JRQklleE9yTHFkZHRseHVxekJ4MWd2MHVzKzJRMVZk?= =?utf-8?B?eW1NOENFNnZzcHdlYmNvdWdCblJpUEZlZ2owM2ovZW0rOXhEbGdkdnIzU0do?= =?utf-8?B?d293REVHb0RxQ3ZZUXB6UjN0QkV0d1FkVjRpOHdhTUtUdklSRG8vK0dPTTdG?= =?utf-8?B?N2cxYlVUN0F5dGFuYWtqR1dRY0hEanpJZjh0VjFvQkFrRHArdVh5elgxTU1w?= =?utf-8?B?dEw3N29rTzhtRVM4M1FGc2pCRWx6eENQbWM5T1Roa1lENWgyOFUyeHNOMWo2?= =?utf-8?B?Q2N4VUlERmoyVloxcS9EQ29Za2k2US9yeFRPNmRodXZlR1BTaFp1TmIveXAz?= =?utf-8?B?Z2FpZG1OTlpWNG56ZTZQT2FZMWdKVnN0d2d0R1hKS2R5NVl3K21HSDJmZmJt?= =?utf-8?B?RjZtVjdZSUdHK0ZKMG5YMm1KTTdBb25DM0JGT1pTNmxkaEVwT0E1RmJ1dUdQ?= =?utf-8?B?bGQ2WnMwL1E0bjZyaFE5RUxDMkNGKytvRVVhejRFbURnOFFnb1VMVnExdUpR?= =?utf-8?Q?GdMwxZAG3JHXj?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR11MB6502.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(366016)(7053199007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T2VzMlFHRGpzU3g0Mk5LMjFwMFRjTEFDRjhFYURMdUwv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Q5MVR4VXEwdjNxQmpZM1k1R1p1RmRNK1BodXdZYmRleTZCbzdn?= =?utf-8?B?bnJ6dFJZdWRBNFgyLzd3NUFWVml5dHAvZ2QvTDYwenN4a0Zwdy9UMExKQjFn?= =?utf-8?B?M1hhaTg0NkE1TzNUQTVxckhRQzB3c3g0amZNWEh3OGlUSkJnc2RiaWZRb1Uv?= =?utf-8?B?SFF6RFdhNzNkNzNEbk9RWXVIWmJBek4yL0ova2k5RCs5OW1jNlVXTEVReGdG?= =?utf-8?B?dkVzYnlGeU5ha0h5Y2NsdXFqTllCalRtb1JqMXBxcENoSjZ4R011OTdCWCs2?= =?utf-8?B?bXFCQkIzZTBRU1FMMmVwVmlWN0hITUFaQUZONXhOd2hHdTZ6L2xCSDV6K2k3?= =?utf-8?B?R3c9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: 930a771f-7f49-4985-700a-08dd1f55b442 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB6502.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 11:18:31.6328 (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: vYJG0kvvwjIn38VCcl9giWkxDZEqzC0NbKfs3bORzUiqU1I+e7inRQWXoL7W7QQWQ64KAsmwNawSsHBrYMAXP7W/J6HORwUDnHj958O/0YY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6915 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 12/17/2024 9:59 AM, David Marchand wrote: > Add an assert to double check the passed handle is not NULL, as it > points at an initialisation/allocation issue prior to accessing this > lcore variable. > > Signed-off-by: David Marchand > --- > lib/eal/include/rte_lcore_var.h | 2 ++ > 1 file changed, 2 insertions(+) Acked-by: Anatoly Burakov -- Thanks, Anatoly