https://bugzilla.kernel.org/show_bug.cgi?id=108911 Bug ID: 108911 Summary: kernel errors re: kbnepd on resume from suspend Product: Drivers Version: 2.5 Kernel Version: 4.1.12 Hardware: x86-64 OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: Bluetooth Assignee: linux-bluetooth@xxxxxxxxxxxxxxx Reporter: kernel@xxxxxxxxxxxx Regression: No When I resume from suspend after having been connected to a bnep network, the system goes into a bad state, and I receive the following errors in dmesg: [63281.542297] WARNING: CPU: 1 PID: 3543 at fs/sysfs/group.c:224 netdev_queue_update_kobjects+0xc0/0x120() [63281.542299] sysfs group ffffffff81c9cdc0 not found for kobject 'tx-0' [63281.542337] Modules linked in: veth sha256_generic dm_crypt ctr ccm xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 xt_addrtype iptable_filter ip_tables x_tables br_netfilter nf_nat nf_conntrack bridge stp llc cmac ecb rfcomm bnep btrfs xor zlib_deflate raid6_pq uvcvideo videobuf2_vmalloc btusb videobuf2_memops btintel videobuf2_core v4l2_common bluetooth videodev crc16 arc4 snd_hda_codec_hdmi iwldvm snd_hda_codec_realtek snd_hda_codec_generic coretemp mac80211 hwmon x86_pkg_temp_thermal kvm_intel kvm led_class snd_hda_intel snd_hda_controller psmouse iwlwifi xhci_pci serio_raw snd_hda_codec snd_hwdep xhci_hcd r8169 snd_hda_core mii cfg80211 snd_pcm snd_timer rfkill snd soundcore wmi efivarfs [63281.542340] CPU: 1 PID: 3543 Comm: kbnepd bnep0 Not tainted 4.1.12-gentoo #2 [63281.542341] Hardware name: SAMSUNG ELECTRONICS CO., LTD. 900X3C/900X3D/900X4C/900X4D/SAMSUNG_NP1234567890, BIOS P03AAC 07/12/2012 [63281.542344] 0000000000000000 ffffffff819625c7 ffffffff8165f83e ffff8801f9c97ca8 [63281.542346] ffffffff8104eb92 ffff88020d68d418 00000000ffffffff 0000000000000000 [63281.542348] ffff8801e245d000 0000000000000000 ffffffff8104ec95 ffffffff8195cf18 [63281.542348] Call Trace: [63281.542354] [<ffffffff8165f83e>] ? dump_stack+0x40/0x50 [63281.542357] [<ffffffff8104eb92>] ? warn_slowpath_common+0x92/0xe0 [63281.542358] [<ffffffff8104ec95>] ? warn_slowpath_fmt+0x45/0x50 [63281.542361] [<ffffffff8158f400>] ? netdev_queue_update_kobjects+0xc0/0x120 [63281.542362] [<ffffffff8158f4ac>] ? netdev_unregister_kobject+0x4c/0x80 [63281.542365] [<ffffffff815721e1>] ? rollback_registered_many+0x211/0x2c0 [63281.542367] [<ffffffff81572345>] ? rollback_registered+0x25/0x40 [63281.542369] [<ffffffff815723c8>] ? unregister_netdevice_queue+0x68/0xe0 [63281.542371] [<ffffffff815725b3>] ? unregister_netdev+0x13/0x20 [63281.542375] [<ffffffffa081aa63>] ? bnep_session+0x6a3/0x940 [bnep] [63281.542378] [<ffffffff810769b0>] ? try_to_wake_up+0x320/0x320 [63281.542380] [<ffffffffa081a3c0>] ? bnep_rx_control+0x320/0x320 [bnep] [63281.542384] [<ffffffff8106affc>] ? kthread+0xbc/0xe0 [63281.542386] [<ffffffff8106af40>] ? kthread_worker_fn+0x150/0x150 [63281.542390] [<ffffffff81666752>] ? ret_from_fork+0x42/0x70 [63281.542392] [<ffffffff8106af40>] ? kthread_worker_fn+0x150/0x150 [63281.542393] ---[ end trace 8e5f9afab66ad33b ]--- [63281.608155] usb 1-1.6: reset high-speed USB device number 4 using ehci-pci [63282.005356] PM: resume of devices complete after 781.688 msecs [63282.005826] PM: Finishing wakeup. [63282.005828] Restarting tasks ... done. [63282.091518] systemd[1]: Unit suspend.target is bound to inactive service. Stopping, too. [63341.586457] INFO: rcu_sched self-detected stall on CPU { 1} (t=60000 jiffies g=1318429 c=1318428 q=20054) [63341.586466] Task dump for CPU 1: [63341.586469] kbnepd bnep0 R running task 13856 3543 2 0x00000008 [63341.586475] 0000000000000002 ffffffff81c3b280 ffffffff8109de74 0000000000141e1d [63341.586478] ffff88021f256b80 ffffffff81c3b280 ffffffff81c3b280 ffffffff81cbcad0 [63341.586481] ffffffff810a1029 00000f42b00a68d1 0000000000000000 0000000000000000 [63341.586484] Call Trace: [63341.586485] <IRQ> [<ffffffff8109de74>] ? rcu_dump_cpu_stacks+0x84/0xc0 [63341.586494] [<ffffffff810a1029>] ? rcu_check_callbacks+0x3e9/0x750 [63341.586498] [<ffffffff810ab7b4>] ? timekeeping_update.constprop.9+0xe4/0x130 [63341.586501] [<ffffffff810b4a90>] ? tick_sched_do_timer+0x30/0x30 [63341.586504] [<ffffffff810a5ecf>] ? update_process_times+0x2f/0x60 [63341.586507] [<ffffffff810b4941>] ? tick_sched_handle.isra.12+0x31/0x40 [63341.586509] [<ffffffff810b4a90>] ? tick_sched_do_timer+0x30/0x30 [63341.586511] [<ffffffff810b4ad4>] ? tick_sched_timer+0x44/0x80 [63341.586514] [<ffffffff810a6762>] ? __run_hrtimer+0x72/0x1b0 [63341.586518] [<ffffffff810a6ead>] ? hrtimer_interrupt+0xed/0x200 [63341.586521] [<ffffffff81477320>] ? put_device+0x20/0x20 [63341.586525] [<ffffffff81035015>] ? smp_apic_timer_interrupt+0x35/0x50 [63341.586529] [<ffffffff816670cb>] ? apic_timer_interrupt+0x6b/0x70 [63341.586531] <EOI> [<ffffffff8158f4b8>] ? netdev_unregister_kobject+0x58/0x80 [63341.586537] [<ffffffff816661d4>] ? _raw_spin_lock+0x14/0x30 [63341.586540] [<ffffffff81658a3f>] ? klist_next+0x2f/0x110 [63341.586544] [<ffffffff81484760>] ? __rpm_get_callback+0x90/0x90 [63341.586547] [<ffffffff814775e8>] ? device_for_each_child+0x38/0x60 [63341.586550] [<ffffffff8148496a>] ? pm_runtime_set_memalloc_noio+0x7a/0xa0 [63341.586553] [<ffffffff8158f4c2>] ? netdev_unregister_kobject+0x62/0x80 [63341.586556] [<ffffffff815721e1>] ? rollback_registered_many+0x211/0x2c0 [63341.586559] [<ffffffff81572345>] ? rollback_registered+0x25/0x40 [63341.586561] [<ffffffff815723c8>] ? unregister_netdevice_queue+0x68/0xe0 [63341.586564] [<ffffffff815725b3>] ? unregister_netdev+0x13/0x20 [63341.586571] [<ffffffffa081aa63>] ? bnep_session+0x6a3/0x940 [bnep] [63341.586574] [<ffffffff810769b0>] ? try_to_wake_up+0x320/0x320 [63341.586577] [<ffffffffa081a3c0>] ? bnep_rx_control+0x320/0x320 [bnep] [63341.586580] [<ffffffff8106affc>] ? kthread+0xbc/0xe0 [63341.586583] [<ffffffff8106af40>] ? kthread_worker_fn+0x150/0x150 [63341.586586] [<ffffffff81666752>] ? ret_from_fork+0x42/0x70 [63341.586589] [<ffffffff8106af40>] ? kthread_worker_fn+0x150/0x150 [63521.722558] INFO: rcu_sched self-detected stall on CPU { 1} (t=240003 jiffies g=1318429 c=1318428 q=34564) [63521.722565] Task dump for CPU 1: [63521.722567] kbnepd bnep0 R running task 13856 3543 2 0x00000008 [63521.722573] 0000000000000002 ffffffff81c3b280 ffffffff8109de74 0000000000141e1d [63521.722576] ffff88021f256b80 ffffffff81c3b280 ffffffff81c3b280 ffffffff81cbcad0 [63521.722579] ffffffff810a1029 00000f42b00a68d1 0000000000000000 0000000000000001 [63521.722581] Call Trace: [63521.722583] <IRQ> [<ffffffff8109de74>] ? rcu_dump_cpu_stacks+0x84/0xc0 [63521.722592] [<ffffffff810a1029>] ? rcu_check_callbacks+0x3e9/0x750 [63521.722595] [<ffffffff810ab7b4>] ? timekeeping_update.constprop.9+0xe4/0x130 [63521.722599] [<ffffffff810b4a90>] ? tick_sched_do_timer+0x30/0x30 [63521.722602] [<ffffffff810a5ecf>] ? update_process_times+0x2f/0x60 [63521.722605] [<ffffffff810b4941>] ? tick_sched_handle.isra.12+0x31/0x40 [63521.722607] [<ffffffff810b4a90>] ? tick_sched_do_timer+0x30/0x30 [63521.722609] [<ffffffff810b4ad4>] ? tick_sched_timer+0x44/0x80 [63521.722612] [<ffffffff810a6762>] ? __run_hrtimer+0x72/0x1b0 [63521.722615] [<ffffffff810a6ead>] ? hrtimer_interrupt+0xed/0x200 [63521.722619] [<ffffffff81477320>] ? put_device+0x20/0x20 [63521.722623] [<ffffffff81035015>] ? smp_apic_timer_interrupt+0x35/0x50 [63521.722627] [<ffffffff816670cb>] ? apic_timer_interrupt+0x6b/0x70 [63521.722628] <EOI> [<ffffffff8158f4b8>] ? netdev_unregister_kobject+0x58/0x80 [63521.722635] [<ffffffff816661d2>] ? _raw_spin_lock+0x12/0x30 [63521.722638] [<ffffffff81658a3f>] ? klist_next+0x2f/0x110 [63521.722643] [<ffffffff81484760>] ? __rpm_get_callback+0x90/0x90 [63521.722646] [<ffffffff814775e8>] ? device_for_each_child+0x38/0x60 [63521.722649] [<ffffffff8148496a>] ? pm_runtime_set_memalloc_noio+0x7a/0xa0 [63521.722651] [<ffffffff8158f4c2>] ? netdev_unregister_kobject+0x62/0x80 [63521.722655] [<ffffffff815721e1>] ? rollback_registered_many+0x211/0x2c0 [63521.722657] [<ffffffff81572345>] ? rollback_registered+0x25/0x40 [63521.722660] [<ffffffff815723c8>] ? unregister_netdevice_queue+0x68/0xe0 [63521.722662] [<ffffffff815725b3>] ? unregister_netdev+0x13/0x20 [63521.722670] [<ffffffffa081aa63>] ? bnep_session+0x6a3/0x940 [bnep] [63521.722673] [<ffffffff810769b0>] ? try_to_wake_up+0x320/0x320 [63521.722676] [<ffffffffa081a3c0>] ? bnep_rx_control+0x320/0x320 [bnep] [63521.722680] [<ffffffff8106affc>] ? kthread+0xbc/0xe0 [63521.722683] [<ffffffff8106af40>] ? kthread_worker_fn+0x150/0x150 [63521.722686] [<ffffffff81666752>] ? ret_from_fork+0x42/0x70 [63521.722689] [<ffffffff8106af40>] ? kthread_worker_fn+0x150/0x150 I have been experiencing resume-from-suspend issues with bnep networks with many older kernels too. But usually the system hard locks immediately and I don't get a chance to inspect dmesg. After a recent upgrade to kernel 4.1.12 the system no longer locks up, but I get high load, high CPU (`kbnepd bnep0` at 100%), and am unable to gracefully reboot the system (just hangs instead). -- You are receiving this mail because: You are the assignee for the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html