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 B110C42C52; Wed, 7 Jun 2023 19:24:53 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A2EB142D1D; Wed, 7 Jun 2023 19:24:53 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id B142542D1A for ; Wed, 7 Jun 2023 19:24:51 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 357DvhIG028122; Wed, 7 Jun 2023 10:24:50 -0700 Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2044.outbound.protection.outlook.com [104.47.66.44]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r2a7bvs3s-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 07 Jun 2023 10:24:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GyoK43QYiPukOmMuFVWkdYDtd6U3fXoSgc8t36S0EfEhj10cHy0vPGOWate5HHRVfNzpz0U2RET2pvlheX7IFvgP8P7gDCTg6AJIclYmsZmgRpFxCkZWIzY+Im/BeK/eax6RLKbH6Bz/UATAC4BNHN3y12Oen8mmp+hZeiSlmROh+3BHPEvWuLDToRrrvsrClgoWQ70ijOt6d+X/h9nXRmNjTMiv4LjfbMAd1VIZ9bH4gJY+RF78EHs486vLaVyxxkUTjhn8ZGMvn8MUR5SAncaZvA7WxOTjdQEjSQtEq8MC60nDra3lgLW7RjVAdmNj/Oxj+DpRi1hewRZTWobj6A== 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=UUDx9+SBVm/SDc09/WQElyshejNNMR7IfufI6OOwR74=; b=MNmSLbQp/gem0EHAL3e7pOH8h4lmY7I+lzd4hO+8cqpjlkkgxBeA1Xtkc9mSceqJqFLwchPWgEu4cikv/xotqLO0ky0vlYeJg100/XAWvdMZMDmS+lHo0oPBaP8AojnY2Wl7rMzhvnP9ADkL2RA/a3iraPlF76RAj6hGT90GAjL0ModcIY72ACIx2qAQOISDnM1wkqe9DnyZWR01wX93VhhrA04aB5mbVUj40rxsoQTiiUkzUwjCSNNp0y+J1ltqB1kdAhT6aZ3Q7W8GtKQGqlyFyoMFd18TrsAitQQZ1XdxuafomtFEqXixuD5+3H3Nv8r8sMsOIK6LJqtcVG0AQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UUDx9+SBVm/SDc09/WQElyshejNNMR7IfufI6OOwR74=; b=d3AHNwLMcFf+GFJFINuZFOQUlp0m1gY6G10j5mQCAdyTDicovYIAEPc75GhCQ0kwkBu2jIr+SV8vQgyGqa/D6QAyY70YrPPewq0dKUh+4G+8Ibsa23zSIk3jK+GfSNie5ZMqdMzZhnW2hKEpsf/79gxAL2Z0usKKLMxuLXZXwWM= Received: from CO6PR18MB3939.namprd18.prod.outlook.com (2603:10b6:5:34d::18) by DM8PR18MB4456.namprd18.prod.outlook.com (2603:10b6:8:3d::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.33; Wed, 7 Jun 2023 17:24:46 +0000 Received: from CO6PR18MB3939.namprd18.prod.outlook.com ([fe80::c803:2c80:48bd:a4c2]) by CO6PR18MB3939.namprd18.prod.outlook.com ([fe80::c803:2c80:48bd:a4c2%6]) with mapi id 15.20.6455.030; Wed, 7 Jun 2023 17:24:46 +0000 From: Srikanth Yalavarthi To: Stephen Hemminger CC: Anup Prabhu , "dev@dpdk.org" , Shivah Shankar Shankar Narayan Rao , Prince Takkar , Srikanth Yalavarthi Subject: RE: [EXT] Re: [PATCH v5] app/mldev: add internal function for file read Thread-Topic: [EXT] Re: [PATCH v5] app/mldev: add internal function for file read Thread-Index: AQHZmVwANU6AGSwxVkegPnjwLA0AX69/jUuAgAAJzMA= Date: Wed, 7 Jun 2023 17:24:46 +0000 Message-ID: References: <20230323152801.27666-1-syalavarthi@marvell.com> <20230607162030.3004-1-syalavarthi@marvell.com> <20230607094921.5b8b63c7@hermes.local> In-Reply-To: <20230607094921.5b8b63c7@hermes.local> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-dg-ref: =?us-ascii?Q?PG1ldGE+PGF0IG5tPSJib2R5LnR4dCIgcD0iYzpcdXNlcnNcc3lhbGF2YXJ0?= =?us-ascii?Q?aGlcYXBwZGF0YVxyb2FtaW5nXDA5ZDg0OWI2LTMyZDMtNGE0MC04NWVlLTZi?= =?us-ascii?Q?ODRiYTI5ZTM1Ylxtc2dzXG1zZy0zMTI3YWUyZS0wNTU4LTExZWUtOWYxZi00?= =?us-ascii?Q?ODJhZTNiNmU1MWFcYW1lLXRlc3RcMzEyN2FlMzAtMDU1OC0xMWVlLTlmMWYt?= =?us-ascii?Q?NDgyYWUzYjZlNTFhYm9keS50eHQiIHN6PSIxMjgwIiB0PSIxMzMzMDYzMjI4?= =?us-ascii?Q?NDUxNjUyMjAiIGg9IkZncGFRT1dPdVVGSCtNRlMvMDVIZE1ROG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UFBQUFBQUFBQUFBQVFBQUFBQUFBQUFDQUFB?= =?us-ascii?Q?QUFBQ2VBQUFBYlFCaEFISUFkZ0JsQUd3QWJBQmZBSFFBWlFCeUFHMEFhUUJ1?= =?us-ascii?Q?QUhVQWN3QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUJBQUFBQUFBQUFBSUFBQUFBQUo0QUFBQnRBR0VB?= =?us-ascii?Q?Y2dCMkFHVUFiQUJzQUY4QWR3QnZBSElBWkFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFB?= =?us-ascii?Q?QUFFQUFBQUFBQUFBQWdBQUFBQUEiLz48L21ldGE+?= x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CO6PR18MB3939:EE_|DM8PR18MB4456:EE_ x-ms-office365-filtering-correlation-id: 036d0132-0a42-4e4b-bc41-08db677c1721 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: +DCN+HnqSNGYA0r5R+KRLXnVutEyKWjAWEcutdZve28g3wJaI4D/R0tmVdxlgaTUGjFwZamxZcrexP8kt53ae56L1eHiSS/+HLvrc2lEGJ9KsrkUBt5iunl3xKt/b3+Mm3y5F+p8GLHYhKjh9lMdCCHQLhGhZEh8113sZSBYNXh0dbpssZWHwt5d8b/NfiY5H6uVthy/To2wN6J93w0sTasd41e1VFD4YUPJczlcysT9+eMI93SScikhPFAaHR6BywkUuZa2Tm57IVodoeX+wozJsdlXDU+2uJxFkONtvX10+ZVUM4GQx4SlLwhCdFvusLpP4X5/stE+WtydguayRiyLPLNn/9vtyiZzWAdtkgdFtrUzEki0v8/sSXeY081Z2LP9kIAcdkdFB9WjmCToCAvJZdglXVepbrXoH3+7LeX20gS1jgvOAlL19tomZZt+0m5OSZvGRbmJCkWnqh1n6biOWc7KSsLsHzJcvJzSlxoVzUJ6kdyI5u9kw/vslCRn1+hd94VTVuY0WmMBIhcqkTbTH1RE7gz62lVC6Z/IV9hH0tTbFYUYc6lyVHqHMUDOsie3wxwjUHy0hXtQssDUFjQOzKnk4fGzlaKlgljnHP3Wq8hJGJe84+kbRL72qRBX x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO6PR18MB3939.namprd18.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(376002)(396003)(39860400002)(136003)(366004)(346002)(451199021)(4326008)(76116006)(66946007)(66556008)(66476007)(66446008)(64756008)(4744005)(2906002)(33656002)(186003)(38100700002)(478600001)(52536014)(5660300002)(316002)(55016003)(8936002)(8676002)(71200400001)(41300700001)(6916009)(54906003)(86362001)(7696005)(6506007)(26005)(9686003)(53546011)(122000001)(38070700005)(107886003)(83380400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LwynvXO7EyIzNxCJouX8rStCSm7u6uaNJScWQWi1S134xjBQ04W89uMHdYJd?= =?us-ascii?Q?9HRrEQ9xpfX7s/Ytrn7xUt25wxivosQKjnJW7uYYhPvpRTkzZMIm3wyB3w/G?= =?us-ascii?Q?4IJ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0c90qaMszSDn7QVom?= =?us-ascii?Q?+sMaUdfwGCb3+/+mJf42A7ZSDyjPb8PQVLeipcgXeraEv9zFVuO4+6ufdbDX?= =?us-ascii?Q?UTmWbTJ/wnU8DhBHp1YkNHc6NPBSpUL6Kk4oqctetdWukc9mPAlFi0OAt0ia?= =?us-ascii?Q?tniPjXCfmm0ZgljjNPYCToKOFiLkXxL8T4gPtHzt1l8J/17cmpkaFPAisFiG?= =?us-ascii?Q?tRKH/B6lt4dGhrzTOQf3M2DE+0MSaoX6MyWgwQcnBtRNUUzkWrBe/EPKw/gl?= =?us-ascii?Q?ZtrpinDbd2bkt5bp0PAgDZ0Z4TtD+A5odqaAaacPRBp6/nSjEA5C9q4+iwIB?= =?us-ascii?Q?SrGwhKCd8APKS5XQmr+o64KvpW68hAb64Kk3jBkUXdFRLbMXgxyAozeC0iqR?= =?us-ascii?Q?L47JAfjDFI2fUkyfMol64iHi8Tju3AbE2P2YL6Z2OJfsgTNeNAk2/lYFQpNa?= =?us-ascii?Q?5xcw2kJ58H0JUyN74oeb2aZ+WWqDUpkx1JFZrgD6elrwD4lAtbvZQM8dAYrm?= =?us-ascii?Q?E3iJ/fsHwJ4sBdxWsMz8q2kRiw4ASNVDoULrDD+5gh43GMLMQktmDJ66Zv0v?= =?us-ascii?Q?nFiu48UHAPrBBiB/DSgpp4icOsbuf5r8+OJxfv6K?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: marvell.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO6PR18MB3939.namprd18.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 036d0132-0a42-4e4b-bc41-08db677c1721 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2023 17:24:46.4161 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: j14ncsi8RWJZIL7zmdOxeAilsPCkcMpPWE/lyI64l30KEoYgWUtT6fLjMSp/XP6AnwSF327LNGdVQYJioOOGSA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR18MB4456 X-Proofpoint-ORIG-GUID: BNraIu7bbRCIajpz5WaUzNqXVBucHqOz X-Proofpoint-GUID: BNraIu7bbRCIajpz5WaUzNqXVBucHqOz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-07_09,2023-06-07_01,2023-05-22_02 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 > -----Original Message----- > From: Stephen Hemminger > Sent: 07 June 2023 22:19 > To: Srikanth Yalavarthi > Cc: Anup Prabhu ; dev@dpdk.org; Shivah Shankar > Shankar Narayan Rao ; Prince Takkar > > Subject: [EXT] Re: [PATCH v5] app/mldev: add internal function for file r= ead >=20 > External Email >=20 > ---------------------------------------------------------------------- > On Wed, 7 Jun 2023 09:20:30 -0700 > Srikanth Yalavarthi wrote: > The normal case leaks the open file descriptor >=20 > + > + file_map =3D mmap(0, file_stat.st_size, PROT_READ, MAP_PRIVATE, fd, > 0); > + if (file_map =3D=3D MAP_FAILED) { > + ml_err("Failed to map file: %s\n", file); > + ret =3D -errno; > + goto error; > + } > + > + rte_memcpy(file_buffer, file_map, file_stat.st_size); > + munmap(file_map, file_stat.st_size); > + > + *size =3D file_stat.st_size; > + *buffer =3D file_buffer; > + > + return 0; >=20 > Missing close() >=20 > > + if (buffer) > > + free(buffer); > > + >=20 > Another needless if() Updated in v6.