Article View: linux.kernel.netdev
Article #25657Re: [PATCH] ieee802154: drop the extra phy reference in del_iface
From: Stefan Schmidt
Date: Wed, 02 Dec 2026 08:18
Date: Wed, 02 Dec 2026 08:18
21 lines
7945 bytes
7945 bytes
Hello Wentao Liang.
On Wed, 04 Nov 2026 02:28:09 +0000, Wentao Liang wrote:
> ieee802154_del_iface() takes a reference on the phy of the interface and
> then looks up the phy named by IEEE802154_ATTR_PHY_NAME, which takes
> another reference. When the optional attribute names the phy of the
> interface being deleted, phy and phy2 are the same device, the lookup
> reference is not dropped and the function later puts the phy only once.
> Deleting an interface while passing its own phy name therefore leaks a
> wpan_phy reference.
>
> [...]
Applied to wpan/wpan.git, thanks!
[1/1] ieee802154: drop the extra phy reference in del_iface
https://git.kernel.org/wpan/wpan/c/aa0363c1b535
regards,
Stefan Schmidt
Technical Details
Message-ID:
<179619949876.3922458.9503553453874675855.b4-ty@datenfreihafen.org>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375626-linux-kernel-netdev=dewy.ruReferences:
<20261104022809.1484165-1-vulab@iscas.ac.cn>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!feed-us-ny.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375626-linux-kernel-netdev=dewy.ru From: stefan@datenfreihafen.org (Stefan Schmidt) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH] ieee802154: drop the extra phy reference in del_iface Date: Wed, 2 Dec 2026 09:18:38 +0100 Organization: Usenet Network Message-ID: <179619949876.3922458.9503553453874675855.b4-ty@datenfreihafen.org> References: <20261104022809.1484165-1-vulab@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1921612"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:3+f4hJ3/ZirFUQT29TKHCLcR8fA= sha256:ljILYpd8UIAuD0wvKz6qsdGoFYIl0zRb70WeBksPLMg= sha1:dDjScXaOcLgHY+93Z4G3DwrXbkY= sha256:M1XhLXXIPHTKeOiNulp9v53AeJlTNBmYeyZEyqJttPQ= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 7202B11759F; Wed, 2 Dec 2026 11:19:06 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id te5YfTavTRiZ; Wed, 2 Dec 2026 11:19:02 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375626-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=datenfreihafen.org X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id A933311759C; Wed, 2 Dec 2026 11:18:58 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 1B50D600FFA; Wed, 2 Dec 2026 08:18:58 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796199536; b=4IF+Vhb/X+pc8vNKn44MUIIey+nd9VrhVSRZmECyZKJXoky6xzHV0OiZFfpBQ3R/7WUi osc23VLbZ5X4cgx2CloInrP9bpcFs5pG5tm5Si4AGQQ3QpgfnG60nlwf2U5EiBFbpV6LS 1RupLmj1pVMMVBXBCe+CB4WCMpROuP1SD0DiMr8CQIxUPfrxGn1ITzBhXnYmi2q/pu8f0 aoY3o81O49MRFsPfVhYPOPzCB1qzHJh01hO/WBb83pXDf+7cyQqGPwv79Rif6KrQoz4tE PyxOxFLtW/I7MdYC5hVw4p5X9E0pJB3oNWQzLFCye8lE4Ijkv7D+Ng1FuStvTXAyIFQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796199536; h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=JsU/KCW3NjI1m3h+w3oYXgFyacPPrtkmyMrpAN/xX8o=; b=FHZLf22heefJO+FZWiNc3UIAQZicwJBtEsqiBD/EqtpV7azqGwsW/Pwa0uw7NoiKPLTB rPG6Pci4TeuF5Ps7RhLU+zA9vKDD1dYrdwInLv2fdMQf7x0hNkyPBMWZkPPGpKS/mYCKI fjJMwYcWP3kQMvxKjNKUhcczUbhq0O/YxLh/939IFl9kUK/FwdwKXC0AFQ/eD+fZvjszN V9QoPo8SqaZ40y9y5j/ZBxXBHApliAsews7RJtsq5nJ1DVNuYNmuwhQVjR5Z00gXKB3rp lKXpTyVl5wHcTjGKq/OYy78SdRguGq0DzlMrJMRpFPFgXmzqBJSdacGqI17GbpEJqwQ== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=datenfreihafen.org; spf=pass smtp.mailfrom=datenfreihafen.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 59D34606A331; Wed, 2 Dec 2026 08:18:56 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=78.47.171.185 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796199535; b=k+IVItB46iQdtv3qtsBDnz3krNW8riIuppETqMjwVqD/96zh4sTTlLf8gZ8CzMXAc3YZ 2/mISyqKE3XKg/+8mtIPjVylqlhcnKdbh1BTIa3moaLBRaKV/LeiCephiBkIiTURjIk2B 2NVLt5wj9LneYWnOMoID/ImU6nhzuudfn+768/Ooy9xW7GURl58ToP9Xngy4ICLPKBSKu 2js7xVlNLnhePhoee9St/fNEJFQfZhfxh+yQydSmP3SY5dffcXckhpxT/M4pxTj91oOQM 7U74KHdr4zhPwFJlvFaHkpRg6POZSiuGLlIZKDlUMn9p3OQzI3DPF1wvWoY/lE2wNbg== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796199535; h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=JsU/KCW3NjI1m3h+w3oYXgFyacPPrtkmyMrpAN/xX8o=; b=N96ICjCnROw/FZP+p19zB/EdYmRFvO1N2EPi9J0KsKUEqad+nSSmEtyBe/MBf7ifPjOM zCCeIIWdjVt/svQeoAjOCjxVd3zP8UHuFSbfIZqvSeUWpEd/IrJ9ny59D2EKojiSYRK2B XjDkfCL3ZMb3o1+dp4irITCtCFEGeNNxOLk62kABEcO/OlK/yZPor31iSoZVTs/QUxesK VAjZKc1dygfvWIpHUpzCFdznzRIZthiJNvSvRL3i16hWQJvZAEwAFQIGnAj7Fa/fhr3Eq eHGVTThrcvQtJPS91Nv1ZUXBFsE94VJexxdDUeDUjzF+sM5AtaTPZvtjvm/ri2YsjJQ== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=datenfreihafen.org; spf=pass smtp.mailfrom=datenfreihafen.org; arc=none smtp.remote-ip=78.47.171.185 X-Received: from proxima.lasnet.de (proxima.lasnet.de [78.47.171.185]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7FDE1606A31A; Wed, 2 Dec 2026 08:18:53 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 7FDE1606A31A X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=datenfreihafen.org X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=datenfreihafen.org X-Received: from work.datenfreihafen.local (unknown [46.253.254.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: stefan@sostec.de) by proxima.lasnet.de (Postfix) with ESMTPSA id 69ACDC0B04; Wed, 2 Dec 2026 09:18:45 +0100 (CET) X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>, linux-wpan@vger.kernel.org, netdev@vger.kernel.org X-Mailer: git-send-email 2.56.1 X-In-Reply-To: <20261104022809.1484165-1-vulab@iscas.ac.cn> X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list