From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E402C4332F for ; Mon, 14 Nov 2022 13:44:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=GWdt5Ibmk4Mlx8sPvaVCKT7O1inHOPttKJwUEwDh288=; b=mraVAAGkbGW+wi MztMqURKqe88/AEs1udM5Jhi7At4HNmwSjMfWLqSOk7Cr6PHCleLylO5n2kSJsIhI196XOsj7fUNg FqlKdw0PKHMTMMr6suq0jUEBjIP+uP0ZqaE0hMmbLimGsj73R9jkFR4o5I2jE6HhnlDacvsclvda9 qSNumCSRBhwrq9/rEX8efRIWYimIzRdQrmJ8XUqvL4rxvcSVm+X9PUsraEJCU2M148E/cMSzQH437 vJZf0NVPQi7+Kwnub6zLrauGSz8ps2RJkNdScJY3HH6l20Uol5Ql74kG23ZiPrHTI3w9fudcPACiE gyZhm3EtNhl6r39UmxYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouZkO-001LpQ-R3; Mon, 14 Nov 2022 13:43:36 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouZhL-001Jjw-3o for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2022 13:40:28 +0000 Received: from kwepemi500016.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4N9r5v4JhMzmVpp; Mon, 14 Nov 2022 21:40:03 +0800 (CST) Received: from huawei.com (10.175.100.227) by kwepemi500016.china.huawei.com (7.221.188.220) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 14 Nov 2022 21:40:22 +0800 From: Shang XiaoJing To: , , , , , , , , , , , , , CC: Subject: [PATCH 0/2] net: microchip: Fix potential null-ptr-deref due to create_singlethread_workqueue() Date: Mon, 14 Nov 2022 21:38:51 +0800 Message-ID: <20221114133853.5384-1-shangxiaojing@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.175.100.227] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To kwepemi500016.china.huawei.com (7.221.188.220) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221114_054027_355201_72F0A0B3 X-CRM114-Status: UNSURE ( 6.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are some functions call create_singlethread_workqueue() without checking ret value, and the NULL workqueue_struct pointer may causes null-ptr-deref. Will be fixed by this patch. Shang XiaoJing (2): net: lan966x: Fix potential null-ptr-deref in lan966x_stats_init() net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() drivers/net/ethernet/microchip/lan966x/lan966x_ethtool.c | 3 +++ drivers/net/ethernet/microchip/sparx5/sparx5_ethtool.c | 3 +++ drivers/net/ethernet/microchip/sparx5/sparx5_main.c | 3 +++ 3 files changed, 9 insertions(+) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel