From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0073.outbound.protection.outlook.com [104.47.36.73]) by dpdk.org (Postfix) with ESMTP id 60E15683E for ; Mon, 23 Apr 2018 15:40:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7QiYvEkVuZrMZNAetZPYBh1inbp5ThOhrBdxhJ63DYc=; b=SxCYm/gEgmGow/msG16rd0XWzS1n7JM9kAejPV+XVLV6s83ZGmdpBGVpkcnu6NE1Af/o4Szyzo4OnkGl+FOLBAR+Ee945iVwMcHWkWrWWGsUUNoLT3t/26wUPoBwuirzG1/OukmVZW/ZgcsRshJy3r2E2J4Te6Sy0V7+U14qKP8= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (111.93.218.67) by BN6PR07MB3459.namprd07.prod.outlook.com (2603:10b6:405:64::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Mon, 23 Apr 2018 13:40:15 +0000 From: Pavan Nikhilesh To: harry.van.haaren@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Mon, 23 Apr 2018 19:09:33 +0530 Message-Id: <20180423133933.31334-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: SG2PR02CA0003.apcprd02.prod.outlook.com (2603:1096:3:17::15) To BN6PR07MB3459.namprd07.prod.outlook.com (2603:10b6:405:64::22) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN6PR07MB3459; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 3:DgLwF4XlyQMpyORdh6B6QskmEoQvk52DWTCgGXTSfrz3++WhjhTZz0nlHfSkllKJA5EM7rgSnth4yK4jWppTKd+25cM1pDdwSwWkBBS0FSxQuaB6kWrjGYaaH4r2YoKKey5mylQ+2IjqjKNk/DQEClV85EBANne1AEMvqsK71vpICP4+ZZojhUpG41G5MSOvan9+wvsZrRHIDDA4Eltf/7r6lJaJXdVbS8P8IHgiBB6nt0Ze8fMLVC51aRiGN5X3; 25:+ZrRmvK2O9TWVw3d4eJH9mZdURKJUpsQJf1iiJzVavqFvgn5JWsVw9eJzdxNLHaoBNv7EJigzw3QxviJ7uhXtl5Ofoj5l3QT8juRDFPfW/YSgAdWaBZIZo841yf5mVSBQM3DFXMZu0/5tnnxEhNCviMYmE/Fvn02VG08T7xr+i2m2Nfc7bHB2auhbG6mJm75Nkm6DfUOqkg7SVVdNovTJRuoTW4i1rsi76O43pH1EKan8dMhvF7AMqgXp8bg0lUZI1yIKCnyrQWtkxMzcXFO2LumgPeKRGRsWt4VkPQxc8pZ7GLiLTlGPIAThYrVLxYdfO5u3Rhe5uEYhiMKQqd6rA==; 31:P0J9G6J1SUeY71/nunLJO7pY1T3zMyV1s32LrPcJR4HOapmjq+ayfLHc6iX+9Q5wG2A4IjPepC2SeLxkil1ZkRt2uqjBAm9rWlLf7UWajR2xH3VWx9QuN5rpMHqaxzHq4kxzWGXbWSLERU8ipDD0ogedeiKnEOC3aRynwvJ3gntZ0jJn+FpFAtbgq7VZVA2HsrAOl9b68xKXYfq2KfaOksonanH29A2uWMC5pe++ItI= X-MS-TrafficTypeDiagnostic: BN6PR07MB3459: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 20:ZsPo9ouf9aK+HDjkCtPY7xr2yCZllGaN4E0Z310t/U5qHPcsg2hJ1ibnBB68g+P071tG3k2TtT8WwtuNqSAB4bNHzYhPNCt8LA/NGwyiur5QBwo9YKEAcbW69qcEW3GH9W7g9bpCmgnlh6F5aUGtieEjc1py0IdQvc80+gLnIT5GfHgs57d54Ovm6YFNFmhjagjVkIQY8miojZ9W8kObUk44z2HOlpdRgM53RTD/cVP5B3wPIhVOwDR3aLsS3+V9GjUPokE4RgzccBHKXGZ7r8RNzHv+Zzp41VTfOElKj1FPwCRzd31AZbX3EI9/O12VYE/eEHZfV1JxOYn98nxoSWF16K5T+40+QMUGClDebv4fUfpigOSuV+K2uK17hv0lYByXcXCTs3d8n+EI0rY+URww975IR5H99BhkKnPzrUtMORSs/Saw7++iEc77wj9XqIymjZCM1Jd1ksOIAnJCZ5eKdZsfICsZX6QvFav7LOaDLiDP84O1szxT48Q/KTnOi4YMoyFi8b+KsABTELEWvcrTg/FH+4TkDGv/LAKE8BJxbcd1sfWzTVM+uws/mFAFn5SWuuFDwrMn3uj2ptIOJQQoW2+rX2Qnh2aQoArxFnE=; 4:F7A8NvzCv+OdEDrWjfNX6sxLDHYDjR7ULzd8SnJdARj1pVAXhAmNYevRJ7aTbAzvDAkYrb3wS5nABFWyTHmX3SMiFC6pJ3bxD3XU+eoQy48XwdCJrn5ToZt6yFhRjyniFPNeIJV4OdAix11bFPFwzHeQ+L2TPe5ujugUkxjMwI8ykgkvAEfyrsL8L9okcHzE5LuaxqXEa5t2VaMvR5NTEGn0U6vO1V8H5oTM3zOKDkCpap63+QVmx23xzzlVf9v1aqjHx0rt/woK1HJS3lP6/+iUEHg/y18Bk0/0St7Y0cg+4mNByTjducl43ai46rgg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231232)(944501410)(52105095)(10201501046)(3002001)(93006095)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:BN6PR07MB3459; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3459; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(39850400004)(376002)(346002)(396003)(386003)(59450400001)(6506007)(316002)(6116002)(50226002)(3846002)(2351001)(16586007)(4326008)(26005)(16526019)(186003)(6666003)(6916009)(52116002)(5660300001)(81166006)(72206003)(6486002)(476003)(2616005)(956004)(107886003)(66066001)(47776003)(48376002)(1857600001)(478600001)(53936002)(50466002)(42882007)(8676002)(2361001)(6512007)(36756003)(8936002)(305945005)(7736002)(1076002)(25786009)(2906002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3459; H:localhost.localdomain; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3459; 23:GBjcnOr5oxyDV0P3c1N43EwOgj+Bj0UPoBEPswHZE?= =?us-ascii?Q?TIYvqRuPA9rRNmeEWvP4MlE1gRqj2Ze49+RSdSu5VYSTCGl5g0L+HvUlkbet?= =?us-ascii?Q?sk1l3+9i9V/QZszk7PSy40wfSbKPGtW2MOE8EcqTbX9mSc/LOaW8XMW0MlhU?= =?us-ascii?Q?AHNLSz7BAKu3kR7tio/dcxUMYLX3e1jqKzmlDblwhXmXJe72vayYR5vCvtSD?= =?us-ascii?Q?D+gwr+NyoG6N3u+eTBjQdEEKgQpX5ahvrU62SYEu2Ab/TR28G3fxCjB/Yyz9?= =?us-ascii?Q?PJrpMoChzrugnMxgZLGozSes4o4nr45E0ytdioE9+7sz4TPF0OYNTgEWqAgX?= =?us-ascii?Q?RhhjLhrRVHOi2MPzUfb8jTrpFtVxCewIfNiLLWLw2qzojDV/ZWgz0KVv1AeF?= =?us-ascii?Q?ibenWrAyabVAPBfqdo4cKxzAxpWHCii9uWymiJI81Nai8co+LoXW6VGZRXB6?= =?us-ascii?Q?BzXGTKI814Lgb3pi2Pf4KTxAgj1C3BLM4Mc0EH7TYOgF00tv+9KsHaqzuRWZ?= =?us-ascii?Q?7xzdJshNKNWU/G6nTNbKVi1CDqIzK64LNvX+N3L4g3P7trVeadAbSTaMcgJZ?= =?us-ascii?Q?emmsCRa/Rloxm9ixOKk+HlvurPH8tTWhWduEgv7A5+yGNKGYvhwivZ8AoxHG?= =?us-ascii?Q?pc33Rv2nzNmkuPzaPHyafGJ/SR0XWAjpEe6Hi2zEwdsrrWIYDYYGmQ4xFrCj?= =?us-ascii?Q?KC4TklJ7Y8eetg6B/mmg/b1fSLdDJDj6d6jV0e5kM/X10EchXC7RJcmIq3Ms?= =?us-ascii?Q?YtCl59lScETCLREKJt4zXwp43l8PbOr1zstlXHZ9feeKBA+s2g5mdm+giz4a?= =?us-ascii?Q?LQxbagqPuMzU1xayKEAtX+eLWgEu0j9LALqsIqUkJgve//TXgKTu70kly7nK?= =?us-ascii?Q?RiR8sIz96caqRn5Kr6Vjtd1gmF48elLEtcX48WmtDNu/3ZEbyOqBAiFk4ZUE?= =?us-ascii?Q?3C1mnoZCnMDD5NWUOJDOFxGsMkvjo+JBHb8QCuFZsIH/V3XpePjCbqd1C0TF?= =?us-ascii?Q?ztNRSpytfgvn0tyZkW0LnUL2ap0yUoJmjOJNBWHZ/olwptSlCZIvqRVXHK/y?= =?us-ascii?Q?VBBMOzEVtVujE1E96yPXxc17FGEjPvTea+D0hJy3W6YrBhqRiC0mjECbFUGY?= =?us-ascii?Q?3okiPgUtkk=3D?= X-Microsoft-Antispam-Message-Info: VtGQdLTf7Q6pUIkotHKIaYZQOh1kKnhqYzT1iOPPaadHnYroSbgOt/5FfZVk1C4kIp4CunbRNBVm1nZWQE/b/rd8mGDEOxI+GtzjqG7fo5kx4RptIR1pJ4MWepsv0Cq4TdPymhqJ7hjQAT5A8UfSVEgOUvvILw6fKASa708R5miiM8pVpST1ucwd4TFmyzMi X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3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4WQg64eojlCPe X-MS-Office365-Filtering-Correlation-Id: 95ceea14-3950-410f-9d24-08d5a91fbfb4 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 13:40:15.3470 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 95ceea14-3950-410f-9d24-08d5a91fbfb4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3459 Subject: [dpdk-dev] [PATCH] event/octeontx: fix snprintf mempool name overflow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Apr 2018 13:40:19 -0000 Bugzilla-ID: 28 Fixes: f874c1eb1519 ("event/octeontx: create and free timer adapter") Reported-by: Harry van Haaren Signed-off-by: Pavan Nikhilesh --- drivers/event/octeontx/timvf_evdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/event/octeontx/timvf_evdev.c b/drivers/event/octeontx/timvf_evdev.c index 22f534be6..c4fbd2d86 100644 --- a/drivers/event/octeontx/timvf_evdev.c +++ b/drivers/event/octeontx/timvf_evdev.c @@ -294,7 +294,8 @@ timvf_ring_create(struct rte_event_timer_adapter *adptr) if (timr->bkt == NULL) goto mem_err; - snprintf(pool_name, 30, "timvf_chunk_pool%d", timr->tim_ring_id); + snprintf(pool_name, sizeof(pool_name), "timvf_chunk_pool%d", + timr->tim_ring_id); timr->chunk_pool = (void *)rte_mempool_create_empty(pool_name, timr->nb_chunks, TIM_CHUNK_SIZE, 0, 0, rte_socket_id(), mp_flags); -- 2.17.0