Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp281378lqh; Mon, 6 May 2024 20:57:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwvBxOzImKANYST2x1xojHeFEFXsJkv6cLTAZulty5HPy4lKsJeqpECCsogJKTnGs0IIv6CIgR+yxjqbhpCaSqcddLYpuTtYU8DYwOiA== X-Google-Smtp-Source: AGHT+IFFKlMY61W8kbCLwlei2kLvif3LLE3X9wOBwu60V0R50P6H1kxtODX41IrDYy/QzG3Avqq5 X-Received: by 2002:a05:6a20:6f96:b0:1ad:7e4d:2ea2 with SMTP id gv22-20020a056a206f9600b001ad7e4d2ea2mr16221701pzb.4.1715054235399; Mon, 06 May 2024 20:57:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715054235; cv=pass; d=google.com; s=arc-20160816; b=ooAHHPGjRjpZ1s7Z6Jor6He8SgRkHzzNw39Kc9IDbsoYU9sy6byTu2Ft984el7QbQg pIN42u7+2tmAVUU7UYhXl9c9+tFw5iaoKDIi/UAtFA7rWcvlaQKVZ0aNyPh6/XqIP20q WFmjKCnFFqutE8eZaVyKmv0dn23W8rVTHep/Zw8nrR1oJdqcE3ZkEauGcCLkD1tVcsxm CfNytDRfOTkjw3W/iqwLWRp8LUzFypB0pIATUVo6NCxy5mNFXm1n9MQSn3vcK6RO5t+p 3nW9j3C3Swpb0CfUFWm7XKefiIuE2W9WV8GGaieqg5DjUOToRRLC0zGiV8AEZoO/bYCM 4I4Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=whWap4J0eoGgEC4dzpWh3Cqbf7IdpPrPn154En9o1us=; fh=+alZU163KxGm2EB0FZQTcq+PZL31sHxxAkf5BaDEVFs=; b=NAJMqWgUw/UWIE3TyC8Wxp+w1rE2/jEUDn0gvclCHY4uOaYKzpH8em8iFDCKZ/IrzE PZrO7Q1Gy5Krzs/+g0ZOvlIYHfmQn2H26AilmFEPXN1/5g84jBXo1Tjn+vVU5RK0QCgQ fyi9jVTmmPh1sxRkHTdidf8xlWVPkjxNHV9COanH+l4OUDwAMahx6o+FJC9qqTQHHJ7j 2kFTVZzJ1P5xxKQPafce6Km2ddPuRjRzll+1pEU58RzWyOeG35ZltcFNM66LKLqvT/Yo VZPuJ8UIuhQlp0NwGVMEeWcHUHkt5v5Ag2jfipDIwPCsRjDTyncP9SM7Dfk0JbJl+WYL mCVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oddbit.com header.s=20180920-g2b7aziw header.b="gh5OC/nW"; arc=pass (i=1 spf=pass spfdomain=oddbit.com dkim=pass dkdomain=oddbit.com); spf=pass (google.com: domain of linux-kernel+bounces-170631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170631-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 a22-20020a17090ad81600b002b3d16c4f14si9494415pjv.153.2024.05.06.20.57.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 20:57:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170631-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; dkim=pass header.i=@oddbit.com header.s=20180920-g2b7aziw header.b="gh5OC/nW"; arc=pass (i=1 spf=pass spfdomain=oddbit.com dkim=pass dkdomain=oddbit.com); spf=pass (google.com: domain of linux-kernel+bounces-170631-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170631-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 69599B21678 for ; Tue, 7 May 2024 03:57:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D22042AB4; Tue, 7 May 2024 03:57:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=oddbit.com header.i=@oddbit.com header.b="gh5OC/nW" Received: from smtp68.iad3b.emailsrvr.com (smtp68.iad3b.emailsrvr.com [146.20.161.68]) (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 DB1914087F for ; Tue, 7 May 2024 03:57:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=146.20.161.68 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715054223; cv=none; b=YV2/gRip1XKiK7cesCeswQrz4+Z93SBo5iJKMjjpqSgeBpnRxosHtPu+Ev7PTaxsCUi9ZCTC/tpSX0croyFBd6TTD9+wVJAMzrDE0wOYghWeguc1fng7Q9G4LxHWCx4T7GCRC0gGMJfk6QDSodUphZcD21lSc/sStN3y+qObOuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715054223; c=relaxed/simple; bh=cWMEq59X7zXzL3nJa3BLDmbI7tPBBw3giwZaDz3gBLI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=A7XWxS6UABn5WOrb6393GxMxAhpBMHa05EFAHBpRTPM9ppfEjxXMpjZUuhrqEQWhXx3gmZkfk4WtwEG54fVMQHK1QIfmi48Tg5LM2MMEsFqeiJ7FqdFbjQWx2GZtkK77m1ORscuWNZ764rGcKiRbwMeg359Rf/faXQ7EIkNHf/g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=oddbit.com; spf=pass smtp.mailfrom=oddbit.com; dkim=pass (1024-bit key) header.d=oddbit.com header.i=@oddbit.com header.b=gh5OC/nW; arc=none smtp.client-ip=146.20.161.68 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=oddbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oddbit.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=oddbit.com; s=20180920-g2b7aziw; t=1715051887; bh=cWMEq59X7zXzL3nJa3BLDmbI7tPBBw3giwZaDz3gBLI=; h=Date:From:To:Subject:From; b=gh5OC/nWu2m+qCk6m0PPZVQuqzfvydgDIjESDhRMMppqckZ/n5+QjiJhRy4hCYjND 59EjcycsEBuXz4t8EnBMrx/7wNVNtkJSZcs+vaPEmElxiYNIXw8Slbu5ct7020lsLA IchtCetQlquQGfB2uJiffbK2EpbEY9NblZGnzfX8= X-Auth-ID: lars@oddbit.com Received: by smtp17.relay.iad3b.emailsrvr.com (Authenticated sender: lars-AT-oddbit.com) with ESMTPSA id B39DCA02AA; Mon, 6 May 2024 23:18:06 -0400 (EDT) Date: Mon, 6 May 2024 23:18:06 -0400 From: Lars Kellogg-Stedman To: Dan Carpenter Cc: Duoming Zhou , linux-hams@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, jreuter@yaina.de Subject: Re: [PATCH net] ax25: Fix refcount leak issues of ax25_dev Message-ID: References: <20240501060218.32898-1-duoming@zju.edu.cn> <78ae8aa0-eac5-4ade-8e85-0479a22e98a3@moroto.mountain> <1e14f4f1-29dd-4fe5-8010-de7df0866e93@moroto.mountain> 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: X-Classification-ID: 523c2de5-7003-4c0c-8800-1836014b2a10-1-1 On Sat, May 04, 2024 at 06:16:14PM GMT, Lars Kellogg-Stedman wrote: > My original patch corrected this by adding the call to netdev_hold() > right next to the ax25_cb_add() in ax25_rcv(), which solves this > problem. If it seems weird to have this login in ax25_rcv, we could move > it to ax25_accept, right around line 1430 [3]; that would look > something like: The same patch applies cleanly against the Raspberry Pi 6.6.30 kernel, and clears up the frequeny crashes I was experiencing in that environment as well. -- Lars Kellogg-Stedman | larsks @ {irc,twitter,github} http://blog.oddbit.com/ | N1LKS