From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8078EC433EF for ; Thu, 23 Jun 2022 07:03:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229797AbiFWHDs (ORCPT ); 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 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