Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp2220903rwl; Mon, 26 Dec 2022 10:46:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXu5fvSvDZKD1Gxo8VL7ERO5aA5RCzjVG/ai/pcNyxdcu48P2INItsNTQXVvyHNb81xOP6lm X-Received: by 2002:a62:3081:0:b0:578:5e94:22d0 with SMTP id w123-20020a623081000000b005785e9422d0mr21512764pfw.19.1672080402049; Mon, 26 Dec 2022 10:46:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672080402; cv=none; d=google.com; s=arc-20160816; b=GCRHOnZJrtf0d2HUgH7UDmdD5v6TyHxUcrisDnsVIv9s1qJNfQXtJbCOF87sxK/RXm 74qh1i5qeC5HIUyvvtbyvH948a2H8ddeM78EbSOXwe2XQts+FkNdzeseI2zOvbaI3rNH 2VeQNkbLtWj0828ExV2mdVXHK/nH4Fz+uFUaC6CDeYt4SdTguAjoGFMPtW3bKtd/P2VH ApnJKv7WfpiWpRk3XB9/yzJKvQbw0xpdaDhgU79wjMR02fjS5EM5GqPY5eicvtWPC202 LJFno9g/fnBkT8laEYeG0ZAKXTYM9y4j5JzivkodDD+3rkI6nVs53qLA+qAwjwxjastd nCZA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a056a00158500b00580df3f248fsi8132470pfk.209.2022.12.26.10.46.29; Mon, 26 Dec 2022 10:46: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 + 66 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 ); 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 To: , Greg Kroah-Hartman CC: Nikita Zhandarovich , =?UTF-8?q?Dima=C2=B7Chumak=C2=B7?= , Saeed Mahameed , Leon Romanovsky , "David S. Miller" , Jakub Kicinski , , , , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 to correct the issue in 5.10 branch. Found by Linux Verification Center (linuxtesting.org) with SVACE.