From patchwork Fri Jul 10 13:41:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 1326844 Return-Path: X-Original-To: patchwork-incoming-netdev@ozlabs.org Delivered-To: patchwork-incoming-netdev@ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=netdev-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=idosch.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=ivrC0mXd; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by ozlabs.org (Postfix) with ESMTP id 4B3Dk40wp9z9sDX for ; Fri, 10 Jul 2020 23:42:20 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbgGJNmT (ORCPT ); Fri, 10 Jul 2020 09:42:19 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:54729 "EHLO out3-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbgGJNmS (ORCPT ); Fri, 10 Jul 2020 09:42:18 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 690615C00E4; Fri, 10 Jul 2020 09:42:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 10 Jul 2020 09:42:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=NZVc2jYrpO+Z6+o5i BrmG1cdb/LQ+8fCCNj7gY7MCqA=; b=ivrC0mXdmi/NOD1VI3YjS3Q4aMug3tYad 1gPtOZStYxYCGUgtI3SjYT4OEZnEhHKHaGdIfZfFPdCXPbPipKkUJVnCeDx9WB3G BAliMLwVQmx455y2mnLWqiloc5QiwX7rjWlyVM3jd3cWuY1Qw9ydmyxKyUHLN++2 ZGM71qDYD5FnmqjkEzEZ5LYtsNkEHr250ZaoPEI36CpfqzFWrOKQ9IpTq0cRAiV0 cdTqwBlfnGHCwbwihvy/V78jKIJOOyalnnMuxbt9frcavcxgv/5HIDpAtMIxJOIl GC8IIcxN3A5du6y1eSm7Ox+QrKxxBTZcNFQi6wKUENeel2IVBGCXg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrvddugdejudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhstghh rdhorhhgqeenucggtffrrghtthgvrhhnpeetveeghfevgffgffekueffuedvhfeuheehte ffieekgeehveefvdegledvffduhfenucfkphepuddtledrieeirdduledrudeffeenucev lhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehiughoshgthh esihguohhstghhrdhorhhg X-ME-Proxy: Received: from shredder.mtl.com (bzq-109-66-19-133.red.bezeqint.net [109.66.19.133]) by mail.messagingengine.com (Postfix) with ESMTPA id 1B1C63280063; Fri, 10 Jul 2020 09:42:14 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@mellanox.com, mlxsw@mellanox.com, Ido Schimmel Subject: [PATCH net 0/2] mlxsw: Various fixes Date: Fri, 10 Jul 2020 16:41:37 +0300 Message-Id: <20200710134139.599811-1-idosch@idosch.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Fix two issues found by syzkaller. Patch #1 removes inappropriate usage of WARN_ON() following memory allocation failure. Constantly triggered when syzkaller injects faults. Patch #2 fixes a use-after-free that can be triggered by 'devlink dev info' following a failed devlink reload. Ido Schimmel (2): mlxsw: spectrum_router: Remove inappropriate usage of WARN_ON() mlxsw: pci: Fix use-after-free in case of failed devlink reload drivers/net/ethernet/mellanox/mlxsw/pci.c | 54 +++++++++++++------ .../ethernet/mellanox/mlxsw/spectrum_router.c | 2 +- 2 files changed, 39 insertions(+), 17 deletions(-)