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 EDF31438D1; Tue, 16 Jan 2024 06:43:07 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7A2674029F; Tue, 16 Jan 2024 06:43:07 +0100 (CET) Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by mails.dpdk.org (Postfix) with ESMTP id 868064027D for ; Tue, 16 Jan 2024 06:43:06 +0100 (CET) Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40FNZTSj009646; Tue, 16 Jan 2024 05:43:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-11-20; bh=QkqHf1WOvZ04tcr5Rk+mXzE0Y9zApw1YH4jZ+5So064=; b=DmxVuYgq5G0qi6LNp7+J8sH6fCwslQ4G6SLdbTfuEiDz3dm4ePof+Yf6JrLI8YddeBIO y73bKZHnZasgUNSFvRQrXixAuIx31UU6g5vZShfFxFYxwRc5nfcblfiI8PfB+RCsu2Px lerimmtN3wLj6n3NWYVFCHJ6ZWrKDE6vjY1LPy/Iq1WGYw+kwNwvntjK8RMZytxwBN88 b99w+2TcjjttysHxaoez3c4DK9dGsIwXzjapc3bkPZ7RarjZnjwk5alnQU1B//GV7UKy 3/mu6D8+MEo1JTTXUgzl7l+YsaSaPXzY9Kn6Bf6s6D+he7JTPw8+1UGGONEPxuStaYSh +Q== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3vkjjebqfy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jan 2024 05:43:03 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 40G5Ovn8005109; Tue, 16 Jan 2024 05:43:03 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2168.outbound.protection.outlook.com [104.47.56.168]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3vkgyd97e0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 16 Jan 2024 05:43:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Bbdv+G1KPfBBdiv21ft4gBTRVw/DQEkJYl73dXfsqSv2hQPrGAUwc8fwrsTS04aYQw8MKRQMjq/GqK5ZUS3Ru2lloL4SdOs0tr/r9Ciufpx0KBGwYTx7FjV30bI/Ka1zZnZ/2mCfz89xkAmKz+v++yUptomMGpaee3VRIM07pXUowq2jPPMrSTV4WABqB3+wmZu6H8kXHd4+xiCTxwcQ2Q/CO338NijgoLeS3S2/SyYVGcI+OM9OC0Qa0PLQ0oh7BjWCtGu3YyYwaIXI4+cqHj+aEqGquHsVpyOmexmtOJ7JNXF8u1xM6F8OXNrMsAZBQW8QzbEiNjlF9N0eoGGrJg== 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=QkqHf1WOvZ04tcr5Rk+mXzE0Y9zApw1YH4jZ+5So064=; b=MJg9aoGODEULDT3tdwVdFmvO2PhWPTIEN6CcRJq4RtMCMjqayuFzR+3sb4Cv6+acTT/5A6vGK4XFzYKJMCnpb7uw559iWzOuwnrgmqbtkot69X/phexVO5ted9Y9n0kpi7uwC7SK96v71j6KmtVdPXzvALImNZmp5BfIEjwsLQ0YfKXK9yDCF7IN9784Q/4/EsiIJ38TJpyVqHkAl8qV8zwkamvpwjf8Na5izadn9Ia+TBHKHDQOfNxU/uyJg6zpgNP2w2K9nNA8VW2tOM6pJYAlJ9lAVL1hkHiZnq+FF6oGjME/wBtvXjwTe6jI37k5ov+S0NbjEB/CFf1OLi1raA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QkqHf1WOvZ04tcr5Rk+mXzE0Y9zApw1YH4jZ+5So064=; b=juJ2UccwxPNsqa0YxBfG0AvqyTKRuQM2X8WPcbHlVDtTjxSyewwqqDnHBRq/RR6vc0ar6bmRclpOVTVGehC4O/ghql3IFxDLdpEzl411VrBmrAcJHV+afHdnHJwCo5pUYu7HysveANgpKjg9WOjKUicwjhak9Myv7wWK0xK6Ek4= Received: from SJ0PR10MB4798.namprd10.prod.outlook.com (2603:10b6:a03:2df::8) by CH3PR10MB7501.namprd10.prod.outlook.com (2603:10b6:610:15d::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.21; Tue, 16 Jan 2024 05:43:00 +0000 Received: from SJ0PR10MB4798.namprd10.prod.outlook.com ([fe80::bfe7:9456:17cb:cb09]) by SJ0PR10MB4798.namprd10.prod.outlook.com ([fe80::bfe7:9456:17cb:cb09%7]) with mapi id 15.20.7181.027; Tue, 16 Jan 2024 05:43:00 +0000 From: Madhuker Mythri To: Stephen Hemminger CC: "dev@dpdk.org" , "ferruh.yigit@amd.com" Subject: RE: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements. Thread-Topic: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as per the Kernel-version upgrade requirements. Thread-Index: AQHaRV4Rf7RgLGk4B0C7Hxjh8lHukrDWYecAgAGlXXCAAARbgIAD5emA Date: Tue, 16 Jan 2024 05:43:00 +0000 Message-ID: References: <20240112134821.2067-1-madhuker.mythri@oracle.com> <20240112084224.5121cce4@hermes.local> <20240113100607.389c9ba6@hermes.local> In-Reply-To: <20240113100607.389c9ba6@hermes.local> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SJ0PR10MB4798:EE_|CH3PR10MB7501:EE_ x-ms-office365-filtering-correlation-id: 7dd40f2b-9ad1-4749-6d7d-08dc16560026 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: kjVE+qDOUMm7z51KAU7iiUV9TwvZHsibwXmCbC69gwHK2GUnOf/0Vc8tfhZ9tz99GDbwVmi0e3RTOgG7xcOCUeQpFJ+l9ZZJKL6nbt1MsdXjWuY3ncNNA2lA/cnIMb/AE4Q2L0sZvZ3JiI1pi9nhMkQD+1/sLYSHACKTj6eWa+YTZiRTEGM2Vn8Mdq9b2/yTuxXdUgkFzM/qNLLNfQ75Zolobo+UyYUmSSmzcGjc4Gcr6kpZ3KxLp7RaWwOtp/ee5gY5KAQkurLg6buADlVcK6N1cvd5dus3GJXCi6SM5TNdWwiKqUNyTXRE/WVjgTj8uKCeguLkFXyAkt95x41u4X2rx1MPk0f3W0YFmVe186lw6HBoyBq3+5eBsXuxSKL3jBM0xm6w17NNrb6kROFxupYm+30TROJ22XLgYJfpr7moDKnsvqMxD03cWTgqxNWT/srMhcXWl2dZytNvBHaHzuQqbvrKHryIUCMg2E/GcjKlGg9TB+XXQvdrAuFjocCnmm4N0Hy5fYOjUdrE1it+3KLq8LrScyIUH8Woh9bQyp3rcqPPjcukCfo8lgHazlwhAQTDk5Vaxyy+RuD9nig6roNnT+1xZJ4h9ydrL2jv+7dlEg3y2/au25h8tLtfMR4AmUKhpdjic8YTpNYaDgFIFw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR10MB4798.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(136003)(396003)(346002)(39860400002)(376002)(366004)(230273577357003)(230922051799003)(230173577357003)(451199024)(186009)(64100799003)(1800799012)(41300700001)(122000001)(38100700002)(83380400001)(38070700009)(33656002)(86362001)(44832011)(52536014)(316002)(6916009)(66946007)(76116006)(66476007)(54906003)(64756008)(66446008)(66556008)(4744005)(2906002)(5660300002)(8936002)(8676002)(4326008)(966005)(26005)(71200400001)(478600001)(53546011)(6506007)(7696005)(9686003)(55016003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Aw+RSvgX/nk08P9STeleHsim/D996I41Rfo55EQ/7T7lNEEWA4viDFwVGHtQ?= =?us-ascii?Q?dgLoFaGjYKzBeqEPyFruOq6WHdtoj4Uk+xCVH5HpK0Cid0eNXrdOWYz5SlIW?= =?us-ascii?Q?ZxtC3i+lAWfGaeNnGaM5kTRdBvQ4wKdhxreXyv22IiALrErZW6lH3QT/VsRw?= =?us-ascii?Q?oCH8/VZtJgPMjSFdVpadS11xp1wwATthTx1PClBlMyO6pKMEYth1ESxibj7C?= =?us-ascii?Q?s91ca9m+9oVJ9uBtDnQi6iRjtN4ZZ7eKW9hjRYkjxDzbpkg8qx2EHHCqIprR?= =?us-ascii?Q?5OudujU1QEmDeOSEuWlh+eAPWupjxwM/YSFoQPAvw5q9Tv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BZAbiZ/hleFmrz+ykNiI+Urc5haZWDWJSD1nv?= =?us-ascii?Q?qA5KRW59fy2YytGMuicuxAQ16Glop7LUWsET6HSbJAi/X3LkUwK+7rOczeh7?= =?us-ascii?Q?YV4NrWbaxWLoiLV0p/6cBqLJLbgoj2WNW53m08JNx0MNeEIT+c7zc/DxGjZn?= =?us-ascii?Q?wTfy0s074GhbnZh1bVr5J9idUb32HawEdJnmOu/NSiqTs3Iz6EYoEmfiHkNK?= =?us-ascii?Q?ZAxJiIVsjiXwVUnaAvlMwB63jRbSO9EAme/P93HF9PxjXhw93L/F+vLW02/S?= =?us-ascii?Q?L+e7j1wY6b4dFj15jkIluTYwIZK+go9JLOQcVClXnE/Z2NXf5d5h+x6gUg/K?= =?us-ascii?Q?d2JURyrSonnLGCQISQNsZ0h1R7zXGH4P5kZeFW1m?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: Y2jevg5xmut0biRjhLok4CxxVEY1tCkRIMbxZgzr0MOpFAy68vacu9zM/wGtk90MALon+zolnWMAId+iX6h5Yg+aGfctsAd3vH2qQpuRA1AfkVZ2PklOs2ys2ALp/H3Ki8TAnF8FjZsvp+c2elBtzlqizPMPA5OHW67lnAiVgfTjFXQz/PXX6d2bZvYmK4NSY73W3FhMFxaUOfRLqLHoFudVR3KrRglY1RMk8kKTg+/XUJ4WvqEdBhT/2vgXmmOEaHrXSKY0y43P3SQu/8Pnb+irRxZuhdbbEjjh1sMXqnq3BOmvgiryRMp9hqeH3R/MIXX+QVbbbtjX4l0CRWmc2RqceAvW6VOB+v5XF7ncRBASSE7vW2tq5kHyAn28ZHeBofh5qA+X2VdzBQ+8RGqQpH4L3jXAexrmgY9JZGN5ZPMOcu420n8DJEY73FA5+WYbHsl28Ht7hhsxLhmyphhZhF7YoaPVr3YtmzfIPreoSQClBvupRT5Vvt7it5N1MaxJ2ae6/KThJZYvijE5z0ZN/iEu3azpRNsocUT+kML6j6VD5taC4yggy+i+5CAB0AQeFOIj9fi+ENxrAB+4yH1BP+BDPz0XK7MawQWjS1sVL0c= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB4798.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7dd40f2b-9ad1-4749-6d7d-08dc16560026 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2024 05:43:00.4907 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: gOeCQiTEemNds8fzaabmSsu/MMX8Gwxp1BfOtDymNE2C/uYNI3IdNPLccMPm+VyX4/hd9M6B4jez8K4Ru57Mj9ir5ATlCWuH+Uka2CI+wJ4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR10MB7501 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-16_02,2024-01-15_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 adultscore=0 phishscore=0 suspectscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401160042 X-Proofpoint-ORIG-GUID: Z3b_Jp-p7GgfmfJTwRsRHymnqFurVvEO X-Proofpoint-GUID: Z3b_Jp-p7GgfmfJTwRsRHymnqFurVvEO 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 Hi Stephen, Yes, I found that the Kernel we use has more Verification added for safe ex= ecution: https://blogs.oracle.com/linux/post/bpf-in-depth-the-bpf-bytecode-and-the-b= pf-verifier Here they mentioned about SKB pointer direct access, math on pointer and ar= ray with undefined access is denied on BPF code. Thanks, Madhuker. -----Original Message----- From: Stephen Hemminger =20 Sent: 13 January 2024 23:36 To: Madhuker Mythri Cc: dev@dpdk.org; ferruh.yigit@amd.com Subject: Re: [External] : Re: [PATCH] net/tap: Modified TAP BPF program as = per the Kernel-version upgrade requirements. On Sat, 13 Jan 2024 17:52:34 +0000 Madhuker Mythri wrote: > That's true, SKB pointer access denied and throws error. > So, I have to replace with this BPF helper functions. It does not for me using current Debian kernel. You may have enabled something else.