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 6CD3341EB0; Thu, 16 Mar 2023 13:06:37 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 04B7D40DF6; Thu, 16 Mar 2023 13:06:37 +0100 (CET) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2060.outbound.protection.outlook.com [40.107.237.60]) by mails.dpdk.org (Postfix) with ESMTP id DF40740A89 for ; Thu, 16 Mar 2023 13:06:35 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bcc8rMhmefXAuWQAI/VGmCd2jkDcXodEsalxNsnJ+pi8J7FC4txa5bUM+jDleBDh+UZ7JgKBq8MdwxSGdzitFJBZ0qaFXK083qdQJ5Wx+XCu57bQn0KaBwcAcQ/nTgIPHlFXNdQVSjDqOuPyDb66ibumenvGcRDAZjX74+pVq8h5/WGbYenjtzzjTRqUtc6VPH1NxCmb0F0GaSzDk0DjfyMNry/5swtnPKpFoGoEzN+7ISMeUUPxPyXDAIXwh06gUbSI2h4n4z93lQlyYfa5WTmo6fcAJinoSNR7W5sE/FA+ZlS5ug9UAsILHgvpJHFkBoVflf3+CFEtsoRdguFSdA== 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=cZtZKhil1VmbNW6gMjrPKEOyZrXolQrlObOt996TNLY=; b=XhPWiKsmdWiN+gECXARFx5lVxa8h5wevNXHcucj2AENMbuGVAKGdgmCv+S95k6VlnwkHpBSWkvhniwH0s+gP5l6pmdZhHSf74ZYwFWYgZeNdRCBTmfImYR05PCjxP85JXoGj/n+LIZeIUORUNrWjfBXP8389qLYC3dDYS4Ksr3hBNKLzcmzdrPvY9+8X5ruDx8kH9UZGNbQbG2Mrxyh4JYx6he09NB4DWO+G6y/a/3ttAQHSKk4mss2M46mTXj3W5nftSzXuFuEA5/bj9A8dRMDsCNOLGqzltUtFmKklW2qmrP6sRWe2lsDw91sWYv8yMuqHOAXA9jnpZcepPPLJ6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cZtZKhil1VmbNW6gMjrPKEOyZrXolQrlObOt996TNLY=; b=ahvbOYRy0oN/Uhp/toJ6lm52B14BPnpLOeVxesQS45CZOvAbq0UVWKmJMtBN12vlIU3O7zWJryZMFpSvzyesWNN3wKw3Q4SpdIVK4JcoIOM53crncGiBjKhj/aqQjb12MYPZK6rsYmyhCUaEObpgbiH28wjP9vItXkkKrA7imIY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by SJ1PR12MB6314.namprd12.prod.outlook.com (2603:10b6:a03:457::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.24; Thu, 16 Mar 2023 12:06:33 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::dd5a:8a5c:f493:9640%5]) with mapi id 15.20.6178.026; Thu, 16 Mar 2023 12:06:33 +0000 Message-ID: <391b4f23-91a2-43ec-5193-488bed785d1e@amd.com> Date: Thu, 16 Mar 2023 12:06:27 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v1] ethdev: fix address sanitizer bug Content-Language: en-US To: Ankur Dwivedi , dev@dpdk.org Cc: dukaix.yuan@intel.com, jerinj@marvell.com, thomas@monjalon.net, andrew.rybchenko@oktetlabs.ru, skori@marvell.com References: <20230316094808.3253873-1-adwivedi@marvell.com> From: Ferruh Yigit In-Reply-To: <20230316094808.3253873-1-adwivedi@marvell.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0435.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::15) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|SJ1PR12MB6314:EE_ X-MS-Office365-Filtering-Correlation-Id: 59ac8706-aa96-4eb8-8e90-08db2616e278 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uD6190C7OLYxCi0J/A5okP+IKjjHYSDTvvmr++A7ydlreg9mY2cs+piEgw/Wb7zmsp8N0kkKexOfPl8xw43S2JGmLyrggjn7p6hHilz4rSxzWgzrOGLC2WKvHinqFKoqvJ5a4y+UPnCiPBN1F9Y/X9JxvlDEz3Vm+M+TiYpvSuUn4LsaXGKa+IQ1bvdt5omj+wapGlYcAsbNKhaxMZYEUkPFA7OMyst/FORG5WvBtVnXVonSUjpVUYTXLkd8O8UEYke4+66akMCZYlnTKxrrLqF2JEknPFKawticBuwuPeLOfP/tB4K+hWsU1DZleUukFa1KAY0S795NDqKY4A3Wp7TRf315RpCTkDJe6xwgsKn+yLxVvCfYShXs812Xvj74/rA5MDLGTPBE18bGBnJtgI5O8dhKoak2yEH0DVj0Lb7Jp15Qg8W4VQRX1ohSALiKjXSzF7abbbYLSxCOB52gtNjbRCTEktrfR1KkWnLfnV4X4WF0ZosZnHIZLpM2KK69I+Ca1fJ41bMV/l5+ij/YGeMH8F8OZwn6cn1AYAvyxY7PKfP+BcFW7ae1C8CwH9TpXwjML2yPga+kF2k/eNKD9thmYT9rxMCAfLg49CKb962oEg3qChqiK1I+pywCXHnLV/r/BwsWeha+xv9lmInGG33LMgdw2SKIcWMQPhvQDHFXo37R+CXzq+owwjnqG3Zag2WYJRyep4Sn1l3Oxk3bkfKtVwMOvokewFQOsq/St5Y= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(396003)(136003)(376002)(366004)(39860400002)(346002)(451199018)(2906002)(31686004)(41300700001)(5660300002)(4744005)(44832011)(66946007)(36756003)(31696002)(86362001)(66556008)(4326008)(316002)(8936002)(38100700002)(66476007)(478600001)(186003)(8676002)(26005)(6506007)(2616005)(53546011)(6486002)(6666004)(6512007)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?a05RMDNpMkFJQkNLaDN4cjRzaHlLMFFEYVh5LzE0Z3pJNTFtMlIxd0JXcjNh?= =?utf-8?B?ZGpCRUhyVUxEV20wSFNLVmMxQjJiT1BqRktPclhnL0g3Q0FiMzRXWllza2RD?= =?utf-8?B?L0NKUEZ5RDJydjRBNnlVdlFQRzI4aklQanViQjNoY2tnVjg1QWFtOFFRVzZh?= =?utf-8?B?NWhIMzdvVDZUYUlWcmRyQVFzdzZiUGJhQWlRNjBsZzUrTkt0QmQrejRDZmlD?= =?utf-8?B?NlY0N05oemNKdGxNUXJqNXNJZTExWXVlTERIMm1na0pSbUI5TFMxYkN1NkpG?= =?utf-8?B?YTk3eDhMeXZ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dweWR3Wnd4VkZX?= =?utf-8?Q?g46XtX5crGH7fzfst2p8s5RSU?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59ac8706-aa96-4eb8-8e90-08db2616e278 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Mar 2023 12:06:33.6556 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: A0IXpVr9iZbMHYaHVDadXdVZ1lZIARxERi/O0OUdJhghTM9sn8VrYXe4DJZywh2w X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6314 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 3/16/2023 9:48 AM, Ankur Dwivedi wrote: > With clang 10 compilation, the address sanitizer reports global buffer > overflow issue. The issue is observed during trace point registration > in rte_trace_point_emit_string, for strings in iterator structure. > As a workaround for this clang issue, this patch removes the > rte_trace_point_emit_string and instead adds rte_trace_point_emit_ptr > to capture the iterator pointer. > > Bugzilla ID: 1184 > Fixes: 6679cf21d608 ("ethdev: add trace points") > > Signed-off-by: Ankur Dwivedi Acked-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.