Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp1029281lqo; Thu, 9 May 2024 02:37:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU//dZLbsMOL1DBmtpkMJF+vkMpqGGQ86g+kVSoXmwhVU6kLj0Rsn9658uPJdAfqfzZncQkH8QJMFB8eRted77pY49k3d6zjn1Js2tL4Q== X-Google-Smtp-Source: AGHT+IGtya3eazdV0A4dgS+e4z6aCYgYlVvgLWMwCdw3Rrr+Ms31RHHHq8Bs5Q7A7QAaWOLBvWrx X-Received: by 2002:a17:90b:4f4b:b0:2af:2be3:89c5 with SMTP id 98e67ed59e1d1-2b6167da448mr5048891a91.29.1715247430260; Thu, 09 May 2024 02:37:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715247430; cv=pass; d=google.com; s=arc-20160816; b=iDfQP0rJ3wmc4EcaElXOfu0TnxkGoxIGMk6SXtkIDPY8i28QHu72mFD9MwVSeEGCz/ s4AKiLc5E9wuoZmnetHOiJqIe9ZK9eAsftHRPluFergFJYxzb8wat3FU/8vDr/va3a0+ Y56XAvkIK6hb2Fexyx7pIPsp66mcSrpoQn9Nxap8L+K29sY/xHPjW0L3XfuHXgI24N6U 4yfi5eNBgQ2Vs+CPlUgQjB8GbvCWa/O3Hdvs9mlJYLctR0a8EHFHjnF2rxOxxkWim1Mh zw70dLKkmjAz9YAGjiJ2NWLH0S+FNHcaRCDm6WXe/jar6KCcvOgDbH1bZgHe8NmZUF5V Hoew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from; bh=HlTUmR+n1Vkj/vQTIDgCGZrXvfBOR3HdC/aAbSn52X8=; fh=/LIt4X7Xuv/2Lzg7BKnm2xWn6+vab5NImHNl9T7ljNs=; b=WmvB720i1v1mKa4eyDrAlhdqERChPwM0eUhYByuKstr3DIhQ4UXLcAYq/pq7HNn7xs ePFGRNU4sKvWddlDnB0g+nXfbDED914rNnTLElOJrMxbqDuQLqyDFsgxnkcr2DIhXFsj wJOTvi+tOVDMm7RSwZr7P2ON2oimLzCVj8/y5P3mh+7SIkpkvu9k87P2N9oIxDnFjCBq eCXiSjFNvB12ArENKCLa6pnfLW9ZdIPGAA4SwlYkyX3p0cgqJzzb/4x0by0v7OQ4DTOT DRczAarXvSjQjd7YBO5rX8a1oB8PxzMKc6Sqo3mpEWfqDRNYVBAEXzd4rirdLTTu94Bi Gu4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=zju.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-174355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174355-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b670f4d29fsi1143980a91.52.2024.05.09.02.37.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 02:37:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zju.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-174355-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174355-linux.lists.archive=gmail.com@vger.kernel.org" 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B03F7B21B82 for ; Thu, 9 May 2024 09:37:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6FD9514AD0D; Thu, 9 May 2024 09:36:49 +0000 (UTC) Received: from zg8tmja5ljk3lje4ms43mwaa.icoremail.net (zg8tmja5ljk3lje4ms43mwaa.icoremail.net [209.97.181.73]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C6CC114A0BC; Thu, 9 May 2024 09:36:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.97.181.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715247408; cv=none; b=vEUEGzdgMv5T4o4nIT8OkTh3f+FdSlWtrm6bVddtKe2maTx0zokd+ZWH7lgrDEqQLqy5LEYgN/yjKJEJtvPjed8Nwbg2VQQGBFl9FlzQFFry+CG4drhqJHEBtRzDjCU8p76gNPpgi7dUUIIy58aK2drx2ggVNfUqTfOdYZbiWfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715247408; c=relaxed/simple; bh=r0c0ahyUWvezkT2rASO2cH1RBbFGC1x3V4yiqp/3QCY=; h=From:To:Cc:Subject:Date:Message-Id; b=n3pfdRZtxKZlQHDrHA2IEYcAOBF8zanW760jjXFQvpwGF5b2hVzZPmGrkNIUFfdC7RN+Sx+t+zIq+ZWNCPYwm8PaqkLodIWCWHbOHgoh0tTbbqJ0qTunpFASOPuDji3Nq6OM9deslp6q4prAHbWVneq2IhYNuer8tPAJCqzwnoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn; spf=pass smtp.mailfrom=zju.edu.cn; arc=none smtp.client-ip=209.97.181.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=zju.edu.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=zju.edu.cn Received: from ubuntu.localdomain (unknown [221.192.180.131]) by mail-app4 (Coremail) with SMTP id cS_KCgA3xLEBmTxmxsBPAA--.52084S2; Thu, 09 May 2024 17:36:23 +0800 (CST) From: Duoming Zhou To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, linux-hams@vger.kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, jreuter@yaina.de, dan.carpenter@linaro.org, rkannoth@marvell.com, davem@davemloft.net, lars@oddbit.com, Duoming Zhou Subject: [PATCH net v7 0/3] ax25: Fix issues of ax25_dev and net_device Date: Thu, 9 May 2024 17:35:59 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:cS_KCgA3xLEBmTxmxsBPAA--.52084S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYA7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVWxJr0_GcWl84ACjcxK6I8E87Iv67AKxVW0oVCq3wA2z4x0Y4vEx4A2js IEc7CjxVAFwI0_GcCE3s1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE 5I8CrVC2j2WlYx0E2Ix0cI8IcVAFwI0_Jrv_JF1lYx0Ex4A2jsIE14v26r1j6r4UMcvjeV CFs4IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1l FIxGxcIEc7CjxVA2Y2ka0xkIwI1lc2xSY4AK67AK6r4fMxAIw28IcxkI7VAKI48JMxAqzx v26xkF7I0En4kS14v26r1q6r43MxC20s026xCaFVCjc4AY6r1j6r4UMI8I3I0E5I8CrVAF wI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8ZwCIc4 0Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE2Ix0cI8IcVCY1x0267AK xVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_Jr0_Gr 1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbnNVDUU UUU== X-CM-SenderInfo: qssqjiasttq6lmxovvfxof0/1tbiAwIQAWY7nwoPXwAcsU Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The first patch uses kernel universal linked list to implement ax25_dev_list, which makes the operation of the list easier. The second and third patch fix reference count leak issues of the object "ax25_dev" and "net_device". Duoming Zhou (3): ax25: Use kernel universal linked list to implement ax25_dev_list ax25: Fix reference count leak issues of ax25_dev ax25: Fix reference count leak issue of net_device include/net/ax25.h | 3 +-- net/ax25/ax25_dev.c | 48 +++++++++++++++------------------------------ 2 files changed, 17 insertions(+), 34 deletions(-) -- 2.17.1