Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1532896rdd; Thu, 11 Jan 2024 01:55:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IF2Un5jVVWiz7KPYIHGwdAQzjPyBPfrTR3Njorxu3QQibrZUsDiNJc6a/KQjf/TV1o5kmqR X-Received: by 2002:a05:6a00:a8f:b0:6da:2469:a07a with SMTP id b15-20020a056a000a8f00b006da2469a07amr1112622pfl.10.1704966947139; Thu, 11 Jan 2024 01:55:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704966947; cv=none; d=google.com; s=arc-20160816; b=QIfJofuOMALYao8asGqj9LqGu9qdxFrDNq2RBtMsWVCCGOwN+Su3IFIZ3yYHo6uzxB ZglRtxdDdfqXR+hVMVIMTXTsNwzlzmbBzznvE9rx9qe8AkhwKkMfx1Leevv6ucST+HU7 b/xTDr6wGRKe03t0ToOXKhlkmj9ov3Ma+qT3VwpZb+VpFEaUpIlJAzqlcfnqfsYdZyXl b1GkIsQanOKKV6zTS0Vp7sh1beIlV6lP2ARpoU+B+7gVKEOnXI17yD9HeTyuKt4gSK65 ZbJj5xkXgW9CtrZfma8Em7ZAeukZAWH1kbmAu6NZDhZuQw1snDIMK6wcpQWeGfT7JMT3 5tBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=EgiHrGWYBA6aL4HOR5JD3n9X8Y9twX1PfVqPn+eiAKA=; fh=GXAsCdtHf+Sv7woD9hd70HI6uOuy/rctWVjPv3QKuZQ=; b=nWFmjoGpQT6u+hUX+WN6GZrXZpW9mNdEdF03HRWSQbEnr7Oz9UDBXDfYnncK4cKe4t 29RCwvKh+rN9C2DcTpOrgm43oRzCzv8Kz8Jk2ymjIAI2T74YukYiwjPy8A9IRXjbursE qpPclx5BrnvE9Om9KWtWdMoRQcJ/2hyHSWvADKbVnZH6jp0aN4LjtbcCQ2IGRL4rKF86 X2wJUMPPdBepkl74mSDpDKoqyJ1O6S28ckiST5LGzQJBy6Qg2uhIhCnxQJmGd3zsvgFl TDbVLS2pDBOaCNb12RsEwzNkw2XHrpwmTMEUtZN+LzUfGa0/Iwf98f3DoBOkzR3+Ue4v 0u9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=IpU5IN+B; spf=pass (google.com: domain of linux-kernel+bounces-23343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id du25-20020a056a002b5900b006db3cc0a934si677340pfb.312.2024.01.11.01.55.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 01:55:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=IpU5IN+B; spf=pass (google.com: domain of linux-kernel+bounces-23343-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23343-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id E80D6284E75 for ; Thu, 11 Jan 2024 09:55:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DAB68125CA; Thu, 11 Jan 2024 09:55:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="IpU5IN+B" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0C8F311722; Thu, 11 Jan 2024 09:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EgiHrGWYBA6aL4HOR5JD3n9X8Y9twX1PfVqPn+eiAKA=; b=IpU5IN+B34WDy0CdImrjCB5WZe OHDlJQaJKmKSVHc2w2Nh09yX4A+VhlZ9fwiWHxwOcL1G0tF3VMReE0HxmMDgNZpHTAojewAc2A/Sk XNYSABtgl+5qpYwKsAHCN2OsOgA4OQ2/fwFMiktkuoFJUmItKYSKmHQw/eq9J/2DvkJH56s6Uh9ka HxF2fqLpJOsUMyFWEByfyhCExC/8evs5UiBE3ipBoP0s9M91B0YguVS30aGydIXhZPgYFqOp0svMI 3u2sryub2gSy2g5+betsApN85KWVayl+YMFRJb3hZtJ5M/ECsNey1MOBCke7lVpdn0ORhrXWPWkap fS5FdDjg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47350) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rNrm2-0006Li-2J; Thu, 11 Jan 2024 09:54:54 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rNrm2-0006Fz-K2; Thu, 11 Jan 2024 09:54:54 +0000 Date: Thu, 11 Jan 2024 09:54:54 +0000 From: "Russell King (Oracle)" To: "Gan, Yi Fang" Cc: Andrew Lunn , Heiner Kallweit , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Marek =?iso-8859-1?Q?Beh=FAn?= , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "Looi, Hong Aun" , "Voon, Weifeng" , "Song, Yoong Siang" , "Choong, Yong Liang" Subject: Re: [PATCH net v3 1/1] net: phylink: Add module_exit() Message-ID: References: <20240104101255.3056090-1-yi.fang.gan@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Thu, Jan 11, 2024 at 06:38:58AM +0000, Gan, Yi Fang wrote: > Hi Andrew, > > Regarding the justification on why it is safe to remove phylink, > we had done some memory leak check when unloading the phylink module. > > root@localhost:~# lsmod | grep "phylink" > phylink 73728 0 > root@localhost:~# rmmod phylink > root@localhost:~# echo scan > /sys/kernel/debug/kmemleak > root@localhost:~# cat /sys/kernel/debug/kmemleak > root@localhost:~# > > So far, we didn't observe any memory leaking happened when unloading > phylink module. Is it sufficient or do you have any other suggestions to check > on whether the module is safe to remove? I have no idea why one would think that memory leaks are in some way related to whether a module can be removed or not. To me at least they are two separate issues. I'll continue waiting for the justification... -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!