Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1591660yba; Fri, 17 May 2019 01:45:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDfyHnF//eeP1S7PWiiL1aHwJqiDQhmsslD8cR2Hxx5GrQOPCIYN92kvPUmiev5PldvNk6 X-Received: by 2002:a17:902:c01:: with SMTP id 1mr17773546pls.142.1558082702975; Fri, 17 May 2019 01:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558082702; cv=none; d=google.com; s=arc-20160816; b=CQz6fDA/jnOb5cSIgvyEczmJDsXphTKfWD5/H9GpOrtvj1JCP7mdheZ2CtdQ9ZBBvr MCuTwbodTa7xnS9yli6ZOAcLL6z17oZQwSainol6r8jpJl7PqW05dA9nrj0ZXOXHPpUO MvDMF9MuEOQpsOE1YnkUclbRSXcu+mznzXOeVJOBnh/boeGGwT6cu6iO48oIFGaiLGgc sUsF00RSYRkwKMs96uVDp+PrzEz1+eioIcDJkYBR6ChR+qkTB0nwhOTj358frNLfXn8b 2Io3XtrCq8ljm6FcxpiHzrc1hT233fJFF0KeRWWB5R2DUZHM1LeLBYIGfBOSPFLgabG2 un2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=09Q+LrLhfcaE14z9JhES7+BDRnSZDodco93ACKC4Ayw=; b=w5JbATkCmVm6BHioq9f+Z2aGjzomY0fzAn0fW1gWy7NGpQRXevpR0zESkBpOtB6Mne BubgSXUBiPFLUxrn4gpCojv7yrTU7+7G7er5eIyyRB3i6LJhitAryWc9bv3+lGP5rVSB DmWzDnCcHEyIXvafrkUEUr+B8/lM1tz9MQODri3cGdV5jCYKyChLNrdAqBeZZcXdEamX qbi22pSe+7ExreFIS9lPO4UMFrBFZs/c0+XcfxHXlEzZ0wK7PNdAiwIuGRZ5FPRadXLJ EMkyQW0aLuc7IIgodJ6bLiPqQwUmTSfpYJjyljJK+JIoytW3hVPxX1VkVMeHWfLAu/di wgfw== ARC-Authentication-Results: i=1; mx.google.com; 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 m1si7668176pld.236.2019.05.17.01.44.48; Fri, 17 May 2019 01:45:02 -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; 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 S1728784AbfEQIQp (ORCPT + 99 others); Fri, 17 May 2019 04:16:45 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59751 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727386AbfEQIQp (ORCPT ); Fri, 17 May 2019 04:16:45 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 4A918803AC; Fri, 17 May 2019 10:16:33 +0200 (CEST) Date: Fri, 17 May 2019 10:16:42 +0200 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Claudiu Manoil , "David S. Miller" , Sasha Levin Subject: Re: [PATCH 4.19 042/113] ocelot: Dont sleep in atomic context (irqs_disabled()) Message-ID: <20190517081642.GC17012@amd> References: <20190515090652.640988966@linuxfoundation.org> <20190515090656.813206864@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bKyqfOwhbdpXa4YI" Content-Disposition: inline In-Reply-To: <20190515090656.813206864@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --bKyqfOwhbdpXa4YI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed 2019-05-15 12:55:33, Greg Kroah-Hartman wrote: > [ Upstream commit a8fd48b50deaa20808bbf0f6685f6f1acba6a64c ] >=20 > 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 >=20 > Fixes: a556c76adc05 ("net: mscc: Add initial Ocelot switch support") Is it right fix? Warning is gone, but now allocation is more likely to fail, causing mc_add() to fail under memory pressure. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --bKyqfOwhbdpXa4YI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlzebeoACgkQMOfwapXb+vJ/CwCfa6vQLNtyTZ0M7WK1NylWwZSv AwoAniRk1HNlXKY50kn9UDlJv9mqDPtX =KwS2 -----END PGP SIGNATURE----- --bKyqfOwhbdpXa4YI--