Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2472510ybx; Sat, 2 Nov 2019 21:03:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvD44dzqlpbfEPXLHZSZUWcxTqebsg2L7TvQyxjnuQGtPrqvAKEvwzDshz5UIxrcyfLp2E X-Received: by 2002:a17:906:a388:: with SMTP id k8mr15265714ejz.223.1572753811220; Sat, 02 Nov 2019 21:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572753811; cv=none; d=google.com; s=arc-20160816; b=jSxpbQ3rO4fmH6tBmFl7lEwi8LEyii2pO3IbM0KCwumdWxB2IQaduVRwnzyNT0QOZ/ NqTyjEkofisRH2ra6LpDigdJN5QEY82nVRtgBbS3AENt5PpHF8nlRn97pt3isRXAmjuL OGaosc3pbF5pgagIB/+Sk2w33raQAFESovOfcfEF9ehe9ZW1q3LBk+LS/M/N7RfJWdi1 4f55jFKvxDvb4kbiHR698Gsb6pDdGRo1Dckl+mqPqwfJiUuyKLV+HrslGWVoiu9667mj aGmdfSwvGctAj/SH0PdoQiDGZ3aNqoxsOg+1LVRyq8nFPqjbG9zfqLoR+9SucdG9mMva ZMGQ== 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 :content-disposition:mime-version:references:in-reply-to:subject:cc :to:from:message-id:date:dkim-signature; bh=SRkLd0edVxqGevzqPBW+HuFTjKCt6OoYiAcmt6g2Zw8=; b=DfqUXWVxPQAp59E7oOxdnk2T0WfOCab0eb3v73i3fcsVVbQ9KUlG7qYF+iTYYsm5Id gVekB91HTS3sg0JBbTvekNLb9s9js6XibCmhURIFWNwE5peZjf9+QUUjeu97ATFO/mgG uH0q9BUJXOYFs4TfLP+ndYmUuIQmKqxduvp3CNde250vWG6wJtmq9keKcbKdYFtxf1yB CWB78wwNjKnHeW/ygVJU4pW6I4TTmUqqoMOoRuxvNxh/2mu7yrV5NRyY+rALyJmePmuO 15EiQU2+iYi/V47t9wg5vK7eNIP1O0TI6GUyNE98KGFpis8dSE+2aYmDQyuHGw7OmiiA 79XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bvoCC6Vi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q10si8763519eje.222.2019.11.02.21.03.07; Sat, 02 Nov 2019 21:03:31 -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=@gmail.com header.s=20161025 header.b=bvoCC6Vi; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbfKCEB1 (ORCPT + 99 others); Sun, 3 Nov 2019 00:01:27 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:34695 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725832AbfKCEB1 (ORCPT ); Sun, 3 Nov 2019 00:01:27 -0400 Received: by mail-qk1-f196.google.com with SMTP id 205so13067151qkk.1; Sat, 02 Nov 2019 21:01:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:from:to:cc:subject:in-reply-to:references :mime-version:content-disposition:content-transfer-encoding; bh=SRkLd0edVxqGevzqPBW+HuFTjKCt6OoYiAcmt6g2Zw8=; b=bvoCC6ViHEr7oWLqc0Kk9v7kH4HqLubeobIvqXpYyOZgk9CNf6ZaMyKj9wKWfwPuPZ xHqtOEg5U/CPpkQsAp6t7lb1lSvOSfmXyVd3/Vo4VLM1RAIKpTdxZdw4SDINZT0JlUIo txNX5+zdYqpLdXQFfmwVZEhFZHDFVwIPywcpHUab3FEJGpnNU+9J+WkDq7nkdF503ASy H2uQZNagXSAv9kqBJeweMgNbWsFkz+KzeXS/NfoP7OoPo7L6LUYbJdxPLwfkKEbRF/LI /aK7cMp7a1DyEgqKVjY9b+UCfHWLlHwtlqUxErOo43EabOjQ7iXPtFJWoReYAkb3Q6ID lWVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:from:to:cc:subject:in-reply-to :references:mime-version:content-disposition :content-transfer-encoding; bh=SRkLd0edVxqGevzqPBW+HuFTjKCt6OoYiAcmt6g2Zw8=; b=aJa3J7HD95TP1WJb/t9LX8JbOO2pwKORv/bmTGhuogasopDs/Xj2u5hCWzMtd+W/2D A/wfrOvah2TKF4ooFS77Sg8eW5IND8NDl/jqies/rmYk1DcVDrjyP0UHdDubWvU+AXUV fuYd3wn9Xu41/Ggy5ziTTWggFMXfhOEAHduNKTVmNdAPixOMBhXhFXmRzXFv2OE7UChH Jq5JNLKpPAkkRMydALr4f3DvF8yJ33GhOY0p/TJX63vSIbOlIS3moHooa3kWLzUqCW6x QjIg92hchyBNsZUxpsK9B85/Bs8nP/GQgjp7RUJimKE4XZgLf+4Up9et19OoJZjPyTcy 69EQ== X-Gm-Message-State: APjAAAWq5Jr/ztZaFNRYnzrvk38GxF76tFT25c7zNOLNX80OW/rKze0u lxFNKIPc+IgJ0/pg6WEUlwM= X-Received: by 2002:a37:a64d:: with SMTP id p74mr13363739qke.285.1572753684708; Sat, 02 Nov 2019 21:01:24 -0700 (PDT) Received: from localhost (modemcable249.105-163-184.mc.videotron.ca. [184.163.105.249]) by smtp.gmail.com with ESMTPSA id q34sm8434905qte.50.2019.11.02.21.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2019 21:01:23 -0700 (PDT) Date: Sun, 3 Nov 2019 00:01:23 -0400 Message-ID: <20191103000123.GD417753@t480s.localdomain> From: Vivien Didelot To: Florian Fainelli Cc: netdev@vger.kernel.org, rmk+kernel@armlinux.org.uk, hkallweit1@gmail.com, Florian Fainelli , Andrew Lunn , "David S. Miller" , open list Subject: Re: [PATCH net] net: dsa: bcm_sf2: Fix driver removal In-Reply-To: <20191103031739.27157-1-f.fainelli@gmail.com> References: <20191103031739.27157-1-f.fainelli@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2 Nov 2019 20:17:39 -0700, Florian Fainelli wrote: > With the DSA core doing the call to dsa_port_disable() we do not need to > do that within the driver itself. This could cause an use after free > since past dsa_unregister_switch() we should not be accessing any > dsa_switch internal structures. > > Fixes: 0394a63acfe2 ("net: dsa: enable and disable all ports") > Signed-off-by: Florian Fainelli Reviewed-by: Vivien Didelot