Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp471677yba; Wed, 15 May 2019 04:43:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqxV+JUn4cdB+AFGtyk2DLU4FKfxIrdlbc1q0MEAw8Wge46JXW/44P7EJk4ZedSjdhIbooSd X-Received: by 2002:a17:902:2883:: with SMTP id f3mr17742720plb.26.1557920632619; Wed, 15 May 2019 04:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557920632; cv=none; d=google.com; s=arc-20160816; b=NCPvg08wqa7yZwCfiYi+nafcb4M61561izXPjwwAzZkV8fGqUQjXvanZpFZuOqXAWe cazaKY8NBFRI2Sf7yL8/L2x4jBi6vWod5yJfW9G6BUH4czmDJ/qWaQsf5ZBHECD8T6Z/ HMoCNHkf1oky3QdoPtVEs3z9VG2usY2VthFpHTzU4TLMelOSaVy6Ys4sX2wj61vQSR6d dsC0C4J58NO+/YTKk8vo8gZj47YyO6rEfaHVdYT7Fy5zvlE8DP/YcbZaVfM1+IZ4Twxx OW7AlwzU5hsn8mq0c1VXQn1pW5PJk8/co6oVCx8siFRUopCwkVbAwUVzaNITfAd8H+Gu ly8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0x0gIrNma55KM+0+jTW2dfQI2bXdBu8flYmpBI3Xhyg=; b=BrU06baZLpijuvdTyLqQZJ8bc2LF/PWeLlcII2nkKiS98wNlyUGhRxw47+8yvUKPpp k6eteevuxPY5CYVu6FM3dKk60MLfst1vj79Vyp3UxY1aYlfzm7Rwy+N2cC8fkGFvnit3 c3QkN2ken8PAHUBA9MrS3a+/RdRuAcvhxoIxRc/lBNvS9f+tP248Ohfp6fVOQN0cjFRM 7xU0iknfbenrJg7nBzfR2UNaaGDCOsJevEaPj+x3GxOGQU5x30yRtgZ07mTCioeM5iFh otkJnXFHCRHrGadet1dAC0Pkm4dGM+thK1hKRzGU0eCAryibKGRVdx32UAfugOjuZ0TA bTjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ducOcRVg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v18si1650830pgi.354.2019.05.15.04.43.38; Wed, 15 May 2019 04:43:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ducOcRVg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732355AbfEOL2O (ORCPT + 99 others); Wed, 15 May 2019 07:28:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:39142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731652AbfEOL2J (ORCPT ); Wed, 15 May 2019 07:28:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 40C172168B; Wed, 15 May 2019 11:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557919688; bh=PczNOFJktXN3VBGMmm6fxJmj8u3wVCD0yPxlwkl9P4Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ducOcRVgfBLvaiCceH0eqda57oHj2JB7FfVmvKW1XNXKxTdLYlyAdd+xqf1+TDjYV soEnzngMSjXkVKYmZmI7vHRMO8WnZxYtIkJuPHZHcP5gou6+0Os+uStG78i8shmi6s YqRkR/TBIcre3QQt8Ic+afCATrM3aM3jZuInEBIU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Manoil , "David S. Miller" , Sasha Levin Subject: [PATCH 5.0 056/137] ocelot: Dont sleep in atomic context (irqs_disabled()) Date: Wed, 15 May 2019 12:55:37 +0200 Message-Id: <20190515090657.560828436@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190515090651.633556783@linuxfoundation.org> References: <20190515090651.633556783@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit a8fd48b50deaa20808bbf0f6685f6f1acba6a64c ] Preemption disabled at: [] dev_set_rx_mode+0x1c/0x38 Call trace: [] dump_backtrace+0x0/0x3d0 [] show_stack+0x14/0x20 [] dump_stack+0xac/0xe4 [] ___might_sleep+0x164/0x238 [] __might_sleep+0x50/0x88 [] kmem_cache_alloc+0x17c/0x1d0 [] ocelot_set_rx_mode+0x108/0x188 [mscc_ocelot_common] [] __dev_set_rx_mode+0x58/0xa0 [] dev_set_rx_mode+0x24/0x38 Fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch support") Signed-off-by: Claudiu Manoil Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/mscc/ocelot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mscc/ocelot.c b/drivers/net/ethernet/mscc/ocelot.c index 215a45374d7b0..0ef95abde6bb0 100644 --- a/drivers/net/ethernet/mscc/ocelot.c +++ b/drivers/net/ethernet/mscc/ocelot.c @@ -613,7 +613,7 @@ static int ocelot_mact_mc_add(struct ocelot_port *port, struct netdev_hw_addr *hw_addr) { struct ocelot *ocelot = port->ocelot; - struct netdev_hw_addr *ha = kzalloc(sizeof(*ha), GFP_KERNEL); + struct netdev_hw_addr *ha = kzalloc(sizeof(*ha), GFP_ATOMIC); if (!ha) return -ENOMEM; -- 2.20.1