Message ID | 20221226180950.86129-1-n.zhandarovich@fintech.ru |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1036928wrt; Mon, 26 Dec 2022 10:19:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXuosyjA7ZEJuex46X0JOJCSFpiNaxbgM3CRCXZ5cww2QXVbhCEguX+NBcsdsRA+Ur80V01T X-Received: by 2002:a17:906:d052:b0:7be:e26a:6104 with SMTP id bo18-20020a170906d05200b007bee26a6104mr15886729ejb.52.1672078782955; Mon, 26 Dec 2022 10:19:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672078782; cv=none; d=google.com; s=arc-20160816; b=QARL3MaVkGZEO2l2qsmpDLtBAQo2bAsYoa5D/9FoTGupvIfr7lWuaTwDEah65+lfK3 8rT1NyPMsrrJeaFw84KQ8y6rqZ/oQZmg/aoLX+0RyKUIg1zLSeahYlqJ71YQgryEYOMw wwFoutWVjBztt/xON/UCYTZXbDACtY8e1vrFhVwd2+lRVNtfZMQYp6tEtdK7pex67Od8 bsNPDsp+PBjUVmMUnSZVlA9bVxv7M8zoCS7E3h3ePi7BNVYr5YYu2d9pGquOiDPjy5RI mV9dmH2rKILS5qC6hExKoBoPMXhTN5Ajch6GBRTww6WKVwzpEYQgV3IN9QM2mrg1C6YS uGPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=0bQvG3GL21bxrAovkPDtSY+Ey1KRdhccl9W8x5ezMq8=; b=L/TaAU2O+eUQM77/9rd2jeGMmpyW1ZSf7Q+Nh5ojSrnYfE/pFTTyA1L8CI6vjzFKly 7HPLHRwgrBQCQV+6BeSO9h87/bnnoRnGxgpen5uPIA9IE5Wj8jBUbyw7oV1xclW8DGoZ bwYgHm5/jLrN39JXUbnY2PYEN+V92+Xo3kbJvbNqVRMwZp0wvx6Do2I4SV9w+Q4yB6hL jYbR81aaHP2g6TeZMejwYFyY3Fa4e/4TgEWFu45vDenOqLNq0JO6gL0SLW9ZIhsf5LMq 0LWpvqic+rxXbNqVqYcwCcy/spLDz5kjfyoAmaeuwUFI2RhUr59oUevpiSGDnIZ0VwAY 2juA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz41-20020a1709077da900b008432fa22567si9384070ejc.649.2022.12.26.10.19.19; Mon, 26 Dec 2022 10:19:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232160AbiLZSLU (ORCPT <rfc822;eddaouddi.ayoub@gmail.com> + 99 others); Mon, 26 Dec 2022 13:11:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbiLZSLQ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 26 Dec 2022 13:11:16 -0500 Received: from exchange.fintech.ru (e10edge.fintech.ru [195.54.195.159]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C1B3C2F; Mon, 26 Dec 2022 10:11:13 -0800 (PST) Received: from Ex16-01.fintech.ru (10.0.10.18) by exchange.fintech.ru (195.54.195.169) with Microsoft SMTP Server (TLS) id 14.3.498.0; Mon, 26 Dec 2022 21:09:56 +0300 Received: from localhost (10.0.253.157) by Ex16-01.fintech.ru (10.0.10.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.4; Mon, 26 Dec 2022 21:09:56 +0300 From: Nikita Zhandarovich <n.zhandarovich@fintech.ru> To: <stable@vger.kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org> CC: Nikita Zhandarovich <n.zhandarovich@fintech.ru>, =?utf-8?b?RGltYcK3Q2h1?= =?utf-8?b?bWFrwrc=?= <dchumak@nvidia.com>, Saeed Mahameed <saeedm@nvidia.com>, Leon Romanovsky <leon@kernel.org>, "David S. Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org>, <netdev@vger.kernel.org>, <linux-rdma@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <lvc-project@linuxtesting.org> Subject: [PATCH 5.10 0/1] net/mlx5e: Fix nullptr in mlx5e_tc_add_fdb_flow() Date: Mon, 26 Dec 2022 10:09:49 -0800 Message-ID: <20221226180950.86129-1-n.zhandarovich@fintech.ru> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.253.157] X-ClientProxiedBy: Ex16-01.fintech.ru (10.0.10.18) To Ex16-01.fintech.ru (10.0.10.18) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753301655190808645?= X-GMAIL-MSGID: =?utf-8?q?1753301681591276426?= |
Series |
net/mlx5e: Fix nullptr in mlx5e_tc_add_fdb_flow()
|
|
Message
Nikita Zhandarovich
Dec. 26, 2022, 6:09 p.m. UTC
The result of __dev_get_by_index() is not checked for NULL, which then passed to mlx5e_attach_encap() and gets dereferenced. This patch backports commit <fe7738e> to correct the issue in 5.10 branch. Found by Linux Verification Center (linuxtesting.org) with SVACE.