Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp1470321lqm; Thu, 2 May 2024 16:36:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUDADec2TV5kpft4UwSjJpdUaiY0q8cqPz9lEENsoLPLTBNN2fMTXcW85sCVJIHKPYKRaaWtIr0kUTCv17LOe5U8DQfG/1lAmA7W6rKLg== X-Google-Smtp-Source: AGHT+IH9D8mAufC3+e34FwNo+qoxURZIrVel0fqo25N+9lRQoczTT8Z2kyiRA/ZiNwyW0lB9jde8 X-Received: by 2002:a25:ab6e:0:b0:de6:1c1f:b780 with SMTP id u101-20020a25ab6e000000b00de61c1fb780mr1483373ybi.44.1714693013979; Thu, 02 May 2024 16:36:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714693013; cv=pass; d=google.com; s=arc-20160816; b=FgLF71neNUO6O41xAImExqWrtejjdxZSIkayAutENAPV3vGg3qGlyFCTU9LJpANAJn OUb1ghbZeaXh95vMCXIfbAywOTkNVwdcPnX83mKExeuumiDrM8jcYnKwMS1oFqoV4gyj nEzi2hobBQSieh5p0eX10Xmv2N7bG+TemJ0Wr5tDvI+dN3Bth6OHmlqTaQMd6vr+zbNY qxGg+6PJp4vBUF+v0FR9LqgCyHuTenBg9gjsayyWKvbZKeaQUcHoUJx4n65CQrP3DQGv 5tR2X6q+HSQa1n8U9MfCSXC1mm3E8XBdtNGffSHoZfaFcZ0aV0Ltf7dQywBJK1InXfpm Qu1Q== 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=Au3iyiDlO7ZqUC5fsfqXRvb10krKpb9E1wu5jwwUmNs=; fh=IE3AZvDm9DC3cdTbYv1PuJ+zr4mdKz6MWG85KR/OiZ4=; b=VKA++hVjSc0TTNUczWvdaVXmSfExYiv5tlY3nWswPs+OHNpUj0KEDPKART7/gNAj1/ vDtI80cFANmjpC6wI1h/b3W6iJcEjsM0TsoHeYV0vysLIK8MinaksiIEjuq2IKGTyfNl KG1hEtygKJguPOqr27ne3FBZOPiWPZfrkCVwXspM4fBaKyQbw3eABMYwi7i0ylmRWadl C17G+1jCKqQM53EaH6rYiWI1bpGyirF/4Mhlh0/HO6oih2WoLPqqiIrfLLKqsjtGdHnk iGugltYPD7O0oP+EuDmarAqLOg2vcmg/9oRDtUimX0PMVKqFxpCkFX18Y9JsBQhMfJUk P64Q==; 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-167072-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167072-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v12-20020ac8578c000000b0043a904e3a55si2203870qta.85.2024.05.02.16.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 16:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-167072-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=zju.edu.cn); spf=pass (google.com: domain of linux-kernel+bounces-167072-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-167072-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id B20881C220E5 for ; Thu, 2 May 2024 23:36:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E57A115D5A6; Thu, 2 May 2024 23:36:45 +0000 (UTC) Received: from sgoci-sdnproxy-4.icoremail.net (sgoci-sdnproxy-4.icoremail.net [129.150.39.64]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 109DB4CDE0; Thu, 2 May 2024 23:36:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=129.150.39.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714693005; cv=none; b=U0w3F40v/2k84btsXcJzeO8ArJ95Jj3/7J8bUo28i2X+DPI0/h9r6/nUL4Q5MRhsikr9SmQvJDzFnrytKkg6Vmo/tcp2h5eE2/d2FMib/Ras3Dm5ssq3LxXz22xteJVY/WB8AzgLYGycXr2EtlTYHef5CzzFgF0qW8xpr9onR/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714693005; c=relaxed/simple; bh=jBKOsSBivqS7F+fVGIJGAZ4bcnWxyd5ZWWtsFuLVYH4=; h=From:To:Cc:Subject:Date:Message-Id; b=Ez5ZAGZs7ChpB9hX6vx65YXVx3XbK/cOAvShxNafchra1/TObLNNgQygfBiac08uf8P9VZipGQbI/yFfyfAX5yZaG/9UD9wVvgMR+Kt2w4ZN7VL1wqNIKO+NSxl68PTlaDJ3kcU+34nESZrjep4B2frIyESTaLy97kOLf6LfS28= 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=129.150.39.64 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.179.227]) by mail-app2 (Coremail) with SMTP id by_KCgC3ZqZwIzRm7PwDAA--.6463S2; Fri, 03 May 2024 07:36:20 +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, davem@davemloft.net, jreuter@yaina.de, horms@kernel.org, Markus.Elfring@web.de, dan.carpenter@linaro.org, lars@oddbit.com, Duoming Zhou Subject: [PATCH net v2 0/2] ax25: fix reference counting issue of ax25_dev Date: Fri, 3 May 2024 07:36:14 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 X-CM-TRANSID:by_KCgC3ZqZwIzRm7PwDAA--.6463S2 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUYX7AC8VAFwI0_Gr0_Xr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8JVWxJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aV CY1x0267AKxVW0oVCq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAq x4xG6I80ewAv7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6x CaFVCjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwAC I402YVCY1x02628vn2kIc2xKxwCY02Avz4vE14v_uwCF04k20xvY0x0EwIxGrwCF54CYxV CY1x0262kKe7AKxVWUtVW8ZwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v2 6r1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2 Ij64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_ Gr0_Cr1lIxAIcVCF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r1j6r4UMI IF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x0JUFJP_UUUUU = X-CM-SenderInfo: qssqjiasttq6lmxovvfxof0/1tbiAwUJAWYztgkCSgAIsk Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The first patch changes kfree in ax25_dev_free to ax25_dev_put, because the ax25_dev is managed by reference counting. The second patch fixes potential reference counting leak issue in ax25_addr_ax25dev. You can see the former discussion in the following link: https://lore.kernel.org/netdev/20240501060218.32898-1-duoming@zju.edu.cn/ Duoming Zhou (2): ax25: change kfree in ax25_dev_free to ax25_dev_free ax25: fix potential reference counting leak in ax25_addr_ax25dev net/ax25/ax25_dev.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.17.1