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 C8915A00C2; Tue, 8 Mar 2022 16:12:24 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B06934068B; Tue, 8 Mar 2022 16:12:24 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 4FBC640141; Tue, 8 Mar 2022 16:12:22 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646752343; x=1678288343; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=Cqw0Uh8XiziDEeFHdjqofu8PBfgnGyjctw08cfjcQYs=; b=iiLt4CfASiHRfbrKVY3+UKe6tXuLfRzR88VGmLU6lUjY+Y3jS+wkxakD 0cYCdE4YVNhB4W4f1laa716U4PW5Y5p/IkT6LxpqyB08Nk9HLqpwym2aY sWL5YnnCmBBUpTNJK+UzN4HKXc53HPhveKWZWt/2Yrcex5OF81Xcnzw1l eHZPx0KVGwVTBgZWcj43uZN0jQ9lFPKC4kKVPqi9N+huZGUQaXoyYTq3c YcPer9JD/Gu9DwIzkSaplWCAOkC9MZB7aVuj4lkUzEEojQHNs0/ozqopc W+/jbBoHBGhLtKBoIYdEFd+yzZNgcOmEnnb1ips8yBmP3tXA68NwdDu1s Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10280"; a="242144799" X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="242144799" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2022 07:12:21 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,165,1643702400"; d="scan'208";a="553653109" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by orsmga008.jf.intel.com with ESMTP; 08 Mar 2022 07:12:21 -0800 Received: from orsmsx604.amr.corp.intel.com (10.22.229.17) by ORSMSX606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Tue, 8 Mar 2022 07:12:20 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx604.amr.corp.intel.com (10.22.229.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21 via Frontend Transport; Tue, 8 Mar 2022 07:12:20 -0800 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (104.47.56.45) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Tue, 8 Mar 2022 07:12:20 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CsS66OZqJG17PjBq+p+x0A1AoT1tG6ORNBOryfohpkjKcyncHrZMJOS+b8DI3smdlbdfT34dt6s7u3M1IQnuTzqzezkzJ7S+C24kFbJ+kN4yGaQ13oNTHoW+MHX2z+SCDH2/Pqpgr0TbTU55fFk2sHboeBb7eP4mlXdP7LL60EZ3lKWkgU7gGVzaohhQtI051CrU370AH8xtAMM7htg1Mjtg1SGTrM6jKecJCKaHinzVaSJyPvjp9swG+34qBzZNeHSvThsBpGozGWYhVIAUoowxrKg1dzZqkH4F7LjIoIvCZYPsWlBJiO6UapPq2mlyL4kDWGTeKVvVErUfhZ6fNw== 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=cFzOHq6grA9kfKxgUOE1+rw8qBi+/NlYJ8bNUuHpiFk=; b=YJ0+we6lJEBwtVGrIZW9qIfJsPW0kHYxr+CQ/DVs8ArQzxm0JFTBY4WF75b+UhLI/7YRqUS759fY0sUPloUttlILirU0u6loYuOIHECZHqrGTZ3Xlvrg6gAju5PwlPrlqIcrZNwalN2Le3kPaa/UTxjldZdfWSpfTR+PLkQrJSsi3R5F+ohhcirTGsPR/9KMWDlHMhUJaSnHhLLXkOYikUyup2z9RlDoyVeL5C3grTddTOHftXIZrSRsgvI5cJ7lHqcbQsdEIwLuKhkrDYGT3cnZphRmalfOzkUTtCtav0+KdoY1CB0NnTHQyT1NtfR0YptwX8++P8RS61cszctNgg== 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 PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by MN2PR11MB3694.namprd11.prod.outlook.com (2603:10b6:208:f7::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Tue, 8 Mar 2022 15:12:17 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bd21:6fbe:8308:2ecf%7]) with mapi id 15.20.5038.027; Tue, 8 Mar 2022 15:12:17 +0000 Message-ID: <80725e8c-74ec-e0d5-56d8-3352140f2e0b@intel.com> Date: Tue, 8 Mar 2022 15:12:12 +0000 Subject: Re: [PATCH] net/iavf: fix potential out of bounds access Content-Language: en-US To: Leyi Rong , , CC: , References: <20220308055617.1465853-1-leyi.rong@intel.com> From: Ferruh Yigit X-User: ferruhy In-Reply-To: <20220308055617.1465853-1-leyi.rong@intel.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB9PR06CA0006.eurprd06.prod.outlook.com (2603:10a6:10:1db::11) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 98723738-9fa3-49c9-f691-08da011608b7 X-MS-TrafficTypeDiagnostic: MN2PR11MB3694:EE_ X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: p50BV7ZaAXhmCglL6GAGCtcRUJTEKetG6vKVOUxkCG2Rv5hu9Iu2A8EWSBjojW7fWBmqBTn7Yl6I2JuiE+jqS6krtlpaHt+b75QiwF50p/Vpx1ttoIRKo/UEBaoG4SFsNj4bOQGbXDL1Ra6Y3h0JK8kJKeMb7DggbbC7BVgHndB2wZ6gM2iT077W/SoWdTf47/D1Wc+S91DSEPn8+heev3n1UHmBjoUtzCFInPQyWDs5mw847TYlPYFuQtAQYcgWdSElKAHPQF9KWKhInBLQcorcJCvRzXiTlIUfm2xGO3B1mXDcb1P85M44lS1vZ6QwOxHItEyISr+uDiB11HKzhW+/Vu6cy5sxPPNThlrw7Y+2fymkUs5UkKH3ZDd4SEJzvRCTBTCEJPghnCXo8CsaySWW9FRahxfUr82NehT2S8/E22HWjfAc8hfw23qSEfJTRSrcinvJ+X8KVik9lnKo8s1Yo3UnsMItb/UwgJhq+pqKob+uvtJU3GJ2Sdj4Tr5GXr4lE6em2zUtEy23ZEzk0603zGcrNop2qJQFogMCgrwPppgAJj62a1QePYI5HLjEOVK9/nAlGRyDuD99MVq92z/feNIJk07bAHIRvykDRQfegrSg0dgNRTY8tHSDv16bHmrs7pB9lyAEIHaslOm+rjmZfm4k9tG9zL8XLkLwbFy0XhrdbZ9u54IRssDvAExIRYSywQEauZ8mkErRwH01tQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(366004)(508600001)(31696002)(6486002)(316002)(6506007)(86362001)(6666004)(2616005)(36756003)(186003)(26005)(6512007)(31686004)(83380400001)(53546011)(450100002)(66556008)(82960400001)(4326008)(66476007)(66946007)(8676002)(38100700002)(2906002)(8936002)(5660300002)(6636002)(44832011)(4744005)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?VzAwd1E3VmkremZxcUpHWjdLaUE0WFpBOTh6M1pYNmJrQlpKYjJIbzUyN29G?= =?utf-8?B?UEt6RVVOeCtUeEJNcko0WWpkb040MU9Rb2JPUytzaEt6eTJpdGZBT1Vzb21l?= =?utf-8?B?Q25EVWxURWFrR1c3ZU9LcHExZHhkVmtRdktIMFZjWG1CNUo2N1VKNlZNeDR3?= =?utf-8?B?dnMzUG5JM2xKZ0E0cnFkaXZqbjl6cTNWdldWMlpnU09sOUJKc0w3RHlWS0U2?= =?utf-8?B?ZWRIMlE1MzdwdnFzemZvcW5lckpRaDY0MFlNRDFTTXRFNDVQUjMrMnJzNjA1?= =?utf-8?B?cGtkWTY2VkFJa1BEUlZ0UTRURUN0YUpsU0xObGF0VHVVWmJBc1VZSEJpNGlH?= =?utf-8?B?U0drQXdDdE5Zb3FUaVV2QTVta3MvS0owTkJKMUxkbmxpTW5vYSszeEdqVDI2?= =?utf-8?B?M3BBUFMwTWwwMElGUFZHM1ArbUlhcTJrMVVwdlFaQTFiZjBBdEwwSXJXTkNC?= =?utf-8?B?c1VLK2x3SUJOL1FCODFQbmRsejFQdlp1Nk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qbUowRSszTmhQdWFmU0Yzc0FJ?= =?utf-8?B?UzllcEQxckowZTl0bnFpNzlhaGdGeDNoYlpuUGZ6VTRyOWNmU1ZZQ1ZVenFk?= =?utf-8?B?VFZLWGVpbFJXUVMzQ0dpK1hUWUZ0VVZpRFUwMzBRcHJuZC9vQUkxWDg2K3dZ?= =?utf-8?B?aTR1eVhOa2d2aUgvYmpDcm8zVUx0ajIyMXVxWnh1K2V5d25xd1Jnd0p4clFG?= =?utf-8?B?bk5WWGlXb1ZNVmp6WDU1S3pNQnAvWFNiZ25BR1c5c1hMU1NjZjNURThram9y?= =?utf-8?B?Q3R0MlRuY2tac2ZwMUJNakxlYXJoMEdrSzJaSzJHb0dydDhQazcwVlR5dEdF?= =?utf-8?B?UzRvWFkzTzJsM0dPQXRiakZRN1dGVzN3WmpRTUFrL05PU3luNDh2eURrR2dI?= =?utf-8?B?SXZkdnlXVjdES1lWVnZYNlVPa1N1SGo5ZmJsTGIxcXdlM1pObXJGQXdVM3R1?= =?utf-8?B?ZWFobktwUDlja2oyL3B0eUNkV1NHRWI3N0xOcWVjV2xvYVpYVHBCV1Q3TmxJ?= =?utf-8?B?c1FMR2NlMVRlWTdxclU1VnNra2htdE9WUklCaGFJUDgyNEc3TTN6aFpyOGdn?= =?utf-8?B?M0gwb0lRRm5vR3pWYkFSaWZ6dFpLNnA5dHpNWXNTRzdiZ1M4THBDTlo3KzBU?= =?utf-8?B?UWh5SkJZRVIxcXhhS0l2MkQzZGcwMXhrNEwrZXIrT0VRR203UGxlN2RKSitM?= =?utf-8?B?cjAxbkg1dzNEYmVKOGtHNEx0NDVUN0h6S1pPWi9HSm9UeGhyd2c3SEhybUkw?= =?utf-8?Q?spQrXNFiik1s5KrKewRTaWg=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 98723738-9fa3-49c9-f691-08da011608b7 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Mar 2022 15:12:17.7746 (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: J5YWhiws1iRjLZh842JLzAEXOQ+ChE76omF/9wbMUzTG/5Cb0zw2O23/b7TECbe/yhHVUqyUbkXHiWxpaiycGg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3694 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 3/8/2022 5:56 AM, Leyi Rong wrote: > Fix potential out-out-bounds access as overrunning callee's array of > size 26 by passing argument rxq->rxdid(which evaluates to 63) in call > to iavf_rx_scan_hw_ring_flex_rxd. > > Coverity issue: 376616 > Fixes: 7b1ba38904a0 ("net/iavf: fix function pointer in multi-process") > Cc: stable@dpdk.org > > Signed-off-by: Leyi Rong Reviewed-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks.