Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5560510iog; Thu, 23 Jun 2022 00:06:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t0oE3o5isgRm7xaSltcAt9AcOac6zSHdjcw6/QMw32ssYKI7j3pQ3GN7WzSVAht37diGW5 X-Received: by 2002:a17:90a:df98:b0:1ec:96e5:b04d with SMTP id p24-20020a17090adf9800b001ec96e5b04dmr2454612pjv.185.1655968011643; Thu, 23 Jun 2022 00:06:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655968011; cv=none; d=google.com; s=arc-20160816; b=QSH+5Ys5ehwZfEa4m7QleM2sBz8JCsR4oddmM1nR9jAdrmCq9a633Pwwa5ToQosYH4 75rW0Hti2gKNm9sCTkPPj2CG9QL+9YjZpX4EAbIr4Pv1vrDJWk/Jqqi8xuu9GrhAmko5 q7kPyV9UDBmVpDL5Vb5N9xTyWGNxoeU23Dh0Uxm6LcyLUR/GylJne9NAZc5aS6sNoAis +cQYNy6IlQjd7NhpmHneTf/t+Ec7VcpUS0NkLk2eXECIicer6rkhS0Se9dATIq83mCR4 W4HjcBehG2JrhzE4riV9Ml0msMgLOb6W8l0CFmOrDjvGXboUJlYOtzbtdjwBZs1W2Qhd /oJg== 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 :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=acqVNPWVp8fVUldFJdOgTMr4VINBrMLbsc3lQx9j9aU=; b=nfJFIZVcGoRNVOqMtRTf0P/f66G7VrbscpMUvQRJ+x2ExmtABlVmqOAMyrRL5N84DP lq7KFP7dO0k4cDqpLYMZrkvWRb9Z8oaTy2rxWV7xdXxnCXkTBg6BlsuTsSBfbGDsrU1O LdLN4xBp6pKw4iXBwR/EYr7XOwNPThAxo/qZy+EsawPlr1RWyK2JSr62HjbuQXTU1RDX BRBuDaaCDDR717PpBs8US6gzRM2QlaSjW9ZL0zR1HrBOiWll31He4rgfytFwd6C7KV7m jneh6bP6eQfnARmuO63fEfNEeCH3XPOx3lQ8OR//QqiR3qgpUOwiQTCir/oiqU5v5hSc rBaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z1-20020a637e01000000b003fe22d6bdc4si24042433pgc.802.2022.06.23.00.06.23; Thu, 23 Jun 2022 00:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229649AbiFWHDs (ORCPT + 99 others); Thu, 23 Jun 2022 03:03:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229571AbiFWHDr (ORCPT ); Thu, 23 Jun 2022 03:03:47 -0400 Received: from giacobini.uberspace.de (giacobini.uberspace.de [185.26.156.129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07A7B4507F for ; Thu, 23 Jun 2022 00:03:44 -0700 (PDT) Received: (qmail 19597 invoked by uid 990); 23 Jun 2022 07:03:42 -0000 Authentication-Results: giacobini.uberspace.de; auth=pass (plain) Message-ID: Date: Thu, 23 Jun 2022 09:03:36 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Unexplained calls to hci_conn_add_sysfs() Content-Language: en-US To: John Klug , Linux-Bluetooth MailingList References: From: =?UTF-8?Q?S=c3=b6nke_Huster?= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Bar: -- X-Rspamd-Report: BAYES_HAM(-2.934163) MIME_GOOD(-0.1) R_MIXED_CHARSET(0.714285) X-Rspamd-Score: -2.319877 Received: from unknown (HELO unkown) (::1) by giacobini.uberspace.de (Haraka/2.8.28) with ESMTPSA; Thu, 23 Jun 2022 09:03:41 +0200 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, MSGID_FROM_MTA_HEADER,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-bluetooth@vger.kernel.org Hi John, On 23.06.22 01:39, John Klug wrote: > Kernel v5.4.199, Bluez 5.64. > > We are using btattach.  We are not seeing btattach going away, nor are we seeing a new one added (we would not expect this to happen). > > But we are seeing periodic messages: > > Jun 22 18:26:14 ecc8 user.err kernel: debugfs: Directory '0' with parent 'hci0' already present! > Jun 22 18:26:14 ecc8 user.warn kernel: sysfs: cannot create duplicate filename '/devices/platform/ahb/700000.ehci/usb1/1-2/1-2.4/1-2.4:1.0/tty/ttyACM0/hci0/hci0:0' > Jun 22 18:26:14 ecc8 user.warn kernel: CPU: 0 PID: 67 Comm: kworker/u3:0 Tainted: G O 5.4.199 #1 > Jun 22 18:26:14 ecc8 user.warn kernel: Hardware name: Atmel AT91SAM9 > Jun 22 18:26:14 ecc8 user.warn kernel: Workqueue: hci0 hci_rx_work [bluetooth] > Jun 22 18:26:14 ecc8 user.warn kernel: [] (unwind_backtrace) from [] (show_stack+0x10/0x14) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (show_stack) from [] (sysfs_warn_dup+0x4c/0x60) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (sysfs_warn_dup) from [] (sysfs_create_dir_ns+0xb4/0xc4) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (sysfs_create_dir_ns) from [] (kobject_add_internal+0x148/0x338) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (kobject_add_internal) from [] (kobject_add+0x7c/0x8c) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (kobject_add) from [] (device_add+0x140/0x590) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (device_add) from [] (hci_conn_add_sysfs+0x50/0xb0 [bluetooth]) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (hci_conn_add_sysfs [bluetooth]) from [] (le_conn_complete_evt+0x33c/0x3fc [bluetooth]) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (le_conn_complete_evt [bluetooth]) from [] (hci_le_meta_evt+0x118/0xb10 [bluetooth]) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (hci_le_meta_evt [bluetooth]) from [] (hci_event_packet+0x222c/0x2854 [bluetooth]) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (hci_event_packet [bluetooth]) from [] (hci_rx_work+0x1bc/0x348 [bluetooth]) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (hci_rx_work [bluetooth]) from [] (process_one_work+0x180/0x220) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (process_one_work) from [] (worker_thread+0x27c/0x348) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (worker_thread) from [] (kthread+0x130/0x13c) > Jun 22 18:26:14 ecc8 user.warn kernel: [] (kthread) from [] (ret_from_fork+0x14/0x34) > Jun 22 18:26:14 ecc8 user.warn kernel: Exception stack(0xc6075fb0 to 0xc6075ff8) > Jun 22 18:26:14 ecc8 user.warn kernel: 5fa0:                                     00000000 00000000 00000000 00000000 > Jun 22 18:26:14 ecc8 user.warn kernel: 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 > Jun 22 18:26:14 ecc8 user.warn kernel: 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 > > Is this to be expected?  If not, how can I track this one down? I submitted a patch to fix this (?) and similar issues some months ago, can you check whether applying it helps? It seems it is currently not in the stable 5.4 release. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d5ebaa7c5f6f688959e8d40840b2249ede63b8ed