Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2449938rwb; Sun, 4 Sep 2022 16:37:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR7uWEA9q6dw+T6/mTj0DYZzur9nZlt1LdKwCrPiuL58eGana6Qs5SRrOCsCzUWg4xRWIVHE X-Received: by 2002:a17:907:9625:b0:730:ad62:9c86 with SMTP id gb37-20020a170907962500b00730ad629c86mr33760535ejc.281.1662334647191; Sun, 04 Sep 2022 16:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662334647; cv=none; d=google.com; s=arc-20160816; b=ieQ9n7dDDD8xIvoBcNjCcelZG7cTYWqpZnOmn7+dWJDcUMEFjo/bf6Sowrc/bWU77x TiGmOOUCa+1a213uVOKCiKTo8RjRXYam03Fu93OI6YsFO4kqU7+4hLHwqdtgtElvY6Qs 2EcneAXIpr+iRd2fKeRH5YMp8qoX9IkY+1vjL8jdTozR94MmYKYkiT3PNBD9tAzz5bGC 6Z3EIIVjFCjy/XYXr829SF/02iahHUAmDlBWSradxV1ciF5YiYCEnE3JQ37IBIdYZF+d Y8hOBK2LLU3BJJmIMINjjskRGioSvggjtv10fak+ln4xsYhTYRW/ufHGKX5WR4Zdao6S u5Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:subject:references:cc:to:user-agent:mime-version :date:message-id; bh=RmU5gOO+1VSB4wOA39LY45k/1AcgNZ0Fpy0+r9mW21U=; b=aTYeTJC3rwVczkyegdMDqQb+lXpz8wJgEz3/9c3yNSPmrKR3wmTJZWW7mt7+d9QRQA aG6+vSkIjqSiDKBSPId/8DegUE5pDpox9kjVQ6ZRa5qL/8hLonUwl2HjvWLYh4xntNGa UdI4F1ikxc0ma4wVuOPW80e5uI9emRYhzefdfT7oNSKfZwG3rNWJYgPcq2Xqe26uiGyi JXzTwUyInRqOxWvJYC2/5CNWYoMfEwU/jMtX+ZsZyvuQufZPdA1QeLXhOznirwz2C+ia olZn+Hg0cQGJJyMUTDXIeftFWSgZBEcmR61dZ27BGPqL0oVHF24sOpLUEcQ/2UU/lU1R pN2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=free.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dn14-20020a17090794ce00b0072eece129bdsi7142589ejc.59.2022.09.04.16.37.01; Sun, 04 Sep 2022 16:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=free.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235233AbiIDWzO (ORCPT + 99 others); Sun, 4 Sep 2022 18:55:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230495AbiIDWzM (ORCPT ); Sun, 4 Sep 2022 18:55:12 -0400 X-Greylist: delayed 370 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sun, 04 Sep 2022 15:55:10 PDT Received: from shiva-su2.sorbonne-universite.fr (shiva-su2.sorbonne-universite.fr [134.157.0.153]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9BDA62A71B for ; Sun, 4 Sep 2022 15:55:10 -0700 (PDT) Received: from nirriti.ent.upmc.fr (nirriti.dsi.upmc.fr [134.157.0.215]) by shiva-su2.sorbonne-universite.fr (Postfix) with ESMTP id 9862D413FDB0; Mon, 5 Sep 2022 00:48:57 +0200 (CEST) Received: from [44.168.19.21] (lfbn-idf1-1-596-24.w86-242.abo.wanadoo.fr [86.242.59.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pidoux) by nirriti.ent.upmc.fr (Postfix) with ESMTPSA id C373F1234C71D; Mon, 5 Sep 2022 00:48:58 +0200 (CEST) Message-ID: <4cb974e2-d5ba-d610-7fe8-4089256a9854@free.fr> Date: Mon, 5 Sep 2022 00:48:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 To: edumazet@google.com Cc: davem@davemloft.net, duoming@zju.edu.cn, f6bvp@free.fr, kuba@kernel.org, linux-hams@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, pabeni@redhat.com, ralf@linux-mips.org References: Subject: Re: [PATCH 1/1] [PATCH] net: rose: fix unregistered netdevice: waiting for rose0 to become free Content-Language: en-US From: f6bvp In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NEUTRAL, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linux bernard-f6bvp 6.0.0-rc3-DEBUG+ #6 SMP PREEMPT_DYNAMIC Sun Sep 4 19:40:14 CEST 2022 x86_64 x86_64 x86_64 GNU/Linux Trying to removing rose module when it is no more in use is still impossible # lsmod Module Size Used by rose 53248 -1 ax25 65536 1 rose #dmesg .......... [17199.188170] NET: Unregistered PF_ROSE protocol family [17209.327901] unregister_netdevice: waiting for rose0 to become free. Usage count = 17 [17209.327910] leaked reference. [17209.327913] rose_rx_call_request+0x334/0x7b0 [rose] [17209.327923] rose_route_frame+0x287/0x740 [rose] [17209.327928] ax25_rx_iframe.part.0+0x8a/0x340 [ax25] [17209.327936] ax25_rx_iframe+0x13/0x20 [ax25] [17209.327942] ax25_std_frame_in+0x7ae/0x810 [ax25] [17209.327948] ax25_rcv.constprop.0+0x5ee/0x880 [ax25] [17209.327953] ax25_kiss_rcv+0x6c/0x90 [ax25] [17209.327959] __netif_receive_skb_one_core+0x91/0xa0 [17209.327964] __netif_receive_skb+0x15/0x60 [17209.327968] process_backlog+0x96/0x140 [17209.327971] __napi_poll+0x33/0x190 [17209.327974] net_rx_action+0x19f/0x300 [17209.327977] __do_softirq+0x103/0x366 [17209.327983] leaked reference. [17209.327985] rose_rx_call_request+0x334/0x7b0 [rose] [17209.327990] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.327995] call_timer_fn+0x2c/0x150 [17209.328000] __run_timers.part.0+0x1d9/0x280 [17209.328003] run_timer_softirq+0x3f/0xa0 [17209.328007] __do_softirq+0x103/0x366 [17209.328011] leaked reference. [17209.328013] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328018] rose_route_frame+0x287/0x740 [rose] [17209.328023] ax25_rx_iframe.part.0+0x8a/0x340 [ax25] [17209.328028] ax25_rx_iframe+0x13/0x20 [ax25] [17209.328034] ax25_std_frame_in+0x7ae/0x810 [ax25] [17209.328040] ax25_rcv.constprop.0+0x5ee/0x880 [ax25] [17209.328045] ax25_kiss_rcv+0x6c/0x90 [ax25] [17209.328050] __netif_receive_skb_one_core+0x91/0xa0 [17209.328054] __netif_receive_skb+0x15/0x60 [17209.328057] process_backlog+0x96/0x140 [17209.328060] __napi_poll+0x33/0x190 [17209.328063] net_rx_action+0x19f/0x300 [17209.328067] __do_softirq+0x103/0x366 [17209.328071] leaked reference. [17209.328072] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328077] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.328082] call_timer_fn+0x2c/0x150 [17209.328085] __run_timers.part.0+0x1d9/0x280 [17209.328089] run_timer_softirq+0x3f/0xa0 [17209.328092] __do_softirq+0x103/0x366 [17209.328096] leaked reference. [17209.328098] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328103] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.328107] call_timer_fn+0x2c/0x150 [17209.328111] __run_timers.part.0+0x1d9/0x280 [17209.328114] run_timer_softirq+0x3f/0xa0 [17209.328117] __do_softirq+0x103/0x366 [17209.328121] leaked reference. [17209.328123] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328128] rose_route_frame+0x287/0x740 [rose] [17209.328133] ax25_rx_iframe.part.0+0x8a/0x340 [ax25] [17209.328138] ax25_rx_iframe+0x13/0x20 [ax25] [17209.328144] ax25_std_frame_in+0x7ae/0x810 [ax25] [17209.328150] ax25_rcv.constprop.0+0x5ee/0x880 [ax25] [17209.328155] ax25_kiss_rcv+0x6c/0x90 [ax25] [17209.328160] __netif_receive_skb_one_core+0x91/0xa0 [17209.328164] __netif_receive_skb+0x15/0x60 [17209.328167] process_backlog+0x96/0x140 [17209.328170] __napi_poll+0x33/0x190 [17209.328173] net_rx_action+0x19f/0x300 [17209.328176] __do_softirq+0x103/0x366 [17209.328180] leaked reference. [17209.328182] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328187] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.328192] call_timer_fn+0x2c/0x150 [17209.328195] __run_timers.part.0+0x1d9/0x280 [17209.328198] run_timer_softirq+0x3f/0xa0 [17209.328202] __do_softirq+0x103/0x366 [17209.328206] leaked reference. [17209.328208] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328212] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.328217] call_timer_fn+0x2c/0x150 [17209.328220] __run_timers.part.0+0x1d9/0x280 [17209.328223] run_timer_softirq+0x3f/0xa0 [17209.328227] __do_softirq+0x103/0x366 [17209.328231] leaked reference. [17209.328232] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328237] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.328242] call_timer_fn+0x2c/0x150 [17209.328245] __run_timers.part.0+0x1d9/0x280 [17209.328248] run_timer_softirq+0x3f/0xa0 [17209.328252] __do_softirq+0x103/0x366 [17209.328256] leaked reference. [17209.328258] rose_rx_call_request+0x334/0x7b0 [rose] [17209.328262] rose_loopback_timer+0xa3/0x1c0 [rose] [17209.328267] call_timer_fn+0x2c/0x150 [17209.328270] __run_timers.part.0+0x1d9/0x280 [17209.328273] run_timer_softirq+0x3f/0xa0 [17209.328277] __do_softirq+0x103/0x366