[Bug 1051059] New: BUG: scheduling while atomic: systemd-sleep/7880/0x00000002
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059 Bug ID: 1051059 Summary: BUG: scheduling while atomic: systemd-sleep/7880/0x00000002 Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.3 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: matwey.kornilov@gmail.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 734212 --> http://bugzilla.opensuse.org/attachment.cgi?id=734212&action=edit dmesg.txt Hello, I am running openSUSE Leap 42.3 with kernel 4.4.76-1-default. And I see the following during hibernation: [ 2070.824241] BUG: sleeping function called from invalid context at ../kernel/locking/rwsem.c:21 [ 2070.824241] in_atomic(): 1, irqs_disabled(): 1, pid: 7880, name: systemd-sleep [ 2070.824241] CPU: 0 PID: 7880 Comm: systemd-sleep Tainted: G O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 ffffffff81ecb2e0 000000000000040e [ 2070.824241] ffffffff8162dd8c ffffffff81a22e59 ffffffff812e9f6d ffffffff81a22e59 [ 2070.824241] 000000000000240f 000000000000240f ffffffff812ea06b ffffffff81859a80 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff8162dd8c>] down_read+0x1c/0x40 [ 2070.824241] [<ffffffff812e9f6d>] crypto_alg_lookup+0x1d/0x50 [ 2070.824241] [<ffffffff812ea06b>] crypto_larval_lookup+0x2b/0x160 [ 2070.824241] [<ffffffff812ea1cd>] crypto_alg_mod_lookup+0x2d/0xa0 [ 2070.824241] [<ffffffff812ea433>] crypto_alloc_tfm+0x53/0xe0 [ 2070.824241] [<ffffffff810d3225>] swsusp_save+0x365/0x4a0 [ 2070.824241] [<ffffffff8151405b>] swsusp_arch_suspend+0x5b/0x60 [ 2070.824241] DWARF2 unwinder stuck at swsusp_arch_suspend+0x5b/0x60 [ 2070.824241] Leftover inexact backtrace: [ 2070.824241] [<ffffffff810d0b31>] ? hibernation_snapshot+0x2c1/0x360 [ 2070.824241] [<ffffffff810d137e>] ? hibernate+0x15e/0x210 [ 2070.824241] [<ffffffff810ceb7d>] ? state_store+0x5d/0x80 [ 2070.824241] [<ffffffff8128b51f>] ? kernfs_fop_write+0x12f/0x170 [ 2070.824241] [<ffffffff8120f8d3>] ? __vfs_write+0x23/0x140 [ 2070.824241] [<ffffffff811c6d7f>] ? handle_mm_fault+0x2df/0x630 [ 2070.824241] [<ffffffff812addc8>] ? security_file_permission+0x38/0xc0 [ 2070.824241] [<ffffffff810cb6d9>] ? percpu_down_read+0x29/0x60 [ 2070.824241] [<ffffffff812105bd>] ? vfs_write+0x9d/0x190 [ 2070.824241] [<ffffffff81211622>] ? SyS_write+0x42/0xa0 [ 2070.824241] [<ffffffff816303b2>] ? entry_SYSCALL_64_fastpath+0x16/0x71 [ 2070.824241] BUG: scheduling while atomic: systemd-sleep/7880/0x00000002 [ 2070.824241] Modules linked in: st ctr ccm fuse rfcomm af_packet nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables bnep msr ext4 jbd2 mbcache arc4 snd_hda_codec_hdmi rtsx_usb_ms memstick snd_hda_codec_generic nls_iso8859_1 nls_cp437 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep vfat intel_rapl x86_pkg_temp_thermal intel_powerclamp fat coretemp snd_pcm snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drbg ansi_cprng snd btusb hci_uart btrtl btqca btbcm aesni_intel aes_x86_64 [ 2070.824241] ath10k_pci iTCO_wdt btintel bluetooth lrw gf128mul glue_helper joydev uvcvideo ath10k_core ath mac80211 videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common intel_lpss_acpi videodev iTCO_vendor_support crc16 pcspkr serio_raw ablk_helper cryptd intel_lpss soundcore r8169 i2c_i801 cfg80211 ucsi rfkill mii pinctrl_sunrisepoint pinctrl_intel wmi mei_me shpchp mei battery acpi_pad ac processor fjes btrfs xor raid6_pq sd_mod sr_mod cdrom rtsx_usb_sdmmc mmc_core rtsx_usb mfd_core hid_generic usbhid crc32c_intel ahci libahci i915(O) i2c_algo_bit drm_kms_helper(O) syscopyarea sysfillrect xhci_pci sysimgblt fb_sys_fops xhci_hcd libata usbcore drm(O) usb_common i2c_hid video button dm_mod sg scsi_mod efivarfs autofs4 [ 2070.824241] CPU: 0 PID: 7880 Comm: systemd-sleep Tainted: G O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 ffff88013f415f40 ffff880040cbfa60 [ 2070.824241] ffffffff811938ae ffff880040cbfaa8 ffffffff8162bbee ffff88013f415fb8 [ 2070.824241] ffff88002c98d1c0 ffff880040cc0000 ffff88002c98d1c0 ffff880040cbfbe8 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff811938ae>] __schedule_bug+0x4b/0x59 [ 2070.824241] [<ffffffff8162bbee>] thread_return+0x5eb/0x6bd [ 2070.824241] [<ffffffff8162bcfc>] schedule+0x3c/0x90 [ 2070.824241] [<ffffffff8162f09a>] schedule_timeout+0x25a/0x2f0 [ 2070.824241] [<ffffffff8162cd8b>] wait_for_completion_killable+0xdb/0x1a0 [ 2070.824241] [<ffffffff8109f5b0>] kthread_create_on_node+0xe0/0x1a0 [ 2070.824241] [<ffffffff812f2309>] cryptomgr_notify+0x3c9/0x410 [ 2070.824241] [<ffffffff810a02e4>] notifier_call_chain+0x44/0x70 [ 2070.824241] [<ffffffff810a0617>] __blocking_notifier_call_chain+0x47/0x60 [ 2070.824241] [<ffffffff812e9a4f>] crypto_probing_notify+0x1f/0x50 [ 2070.824241] [<ffffffff812ea1ec>] crypto_alg_mod_lookup+0x4c/0xa0 [ 2070.824241] [<ffffffff812ea433>] crypto_alloc_tfm+0x53/0xe0 [ 2070.824241] [<ffffffff810d3225>] swsusp_save+0x365/0x4a0 [ 2070.824241] [<ffffffff8151405b>] swsusp_arch_suspend+0x5b/0x60 [ 2070.824241] DWARF2 unwinder stuck at swsusp_arch_suspend+0x5b/0x60 [ 2070.824241] Leftover inexact backtrace: [ 2070.824241] [<ffffffff810d0b31>] ? hibernation_snapshot+0x2c1/0x360 [ 2070.824241] [<ffffffff810d137e>] ? hibernate+0x15e/0x210 [ 2070.824241] [<ffffffff810ceb7d>] ? state_store+0x5d/0x80 [ 2070.824241] [<ffffffff8128b51f>] ? kernfs_fop_write+0x12f/0x170 [ 2070.824241] [<ffffffff8120f8d3>] ? __vfs_write+0x23/0x140 [ 2070.824241] [<ffffffff811c6d7f>] ? handle_mm_fault+0x2df/0x630 [ 2070.824241] [<ffffffff812addc8>] ? security_file_permission+0x38/0xc0 [ 2070.824241] [<ffffffff810cb6d9>] ? percpu_down_read+0x29/0x60 [ 2070.824241] [<ffffffff812105bd>] ? vfs_write+0x9d/0x190 [ 2070.824241] [<ffffffff81211622>] ? SyS_write+0x42/0xa0 [ 2070.824241] [<ffffffff816303b2>] ? entry_SYSCALL_64_fastpath+0x16/0x71 [ 2070.824241] ------------[ cut here ]------------ [ 2070.824241] WARNING: CPU: 0 PID: 2 at ../kernel/time/timekeeping.c:716 ktime_get+0x81/0x90() [ 2070.824241] Modules linked in: st ctr ccm fuse rfcomm af_packet nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables bnep msr ext4 jbd2 mbcache arc4 snd_hda_codec_hdmi rtsx_usb_ms memstick snd_hda_codec_generic nls_iso8859_1 nls_cp437 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep vfat intel_rapl x86_pkg_temp_thermal intel_powerclamp fat coretemp snd_pcm snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drbg ansi_cprng snd btusb hci_uart btrtl btqca btbcm aesni_intel aes_x86_64 [ 2070.824241] ath10k_pci iTCO_wdt btintel bluetooth lrw gf128mul glue_helper joydev uvcvideo ath10k_core ath mac80211 videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common intel_lpss_acpi videodev iTCO_vendor_support crc16 pcspkr serio_raw ablk_helper cryptd intel_lpss soundcore r8169 i2c_i801 cfg80211 ucsi rfkill mii pinctrl_sunrisepoint pinctrl_intel wmi mei_me shpchp mei battery acpi_pad ac processor fjes btrfs xor raid6_pq sd_mod sr_mod cdrom rtsx_usb_sdmmc mmc_core rtsx_usb mfd_core hid_generic usbhid crc32c_intel ahci libahci i915(O) i2c_algo_bit drm_kms_helper(O) syscopyarea sysfillrect xhci_pci sysimgblt fb_sys_fops xhci_hcd libata usbcore drm(O) usb_common i2c_hid video button dm_mod sg scsi_mod efivarfs autofs4 [ 2070.824241] CPU: 0 PID: 2 Comm: kthreadd Tainted: G W O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 0000000000000000 ffffffff81a245b8 [ 2070.824241] ffffffff810804e1 0000000000800711 ffff880139c83e08 ffff8800a5d4d2c0 [ 2070.824241] 0000000000000000 0000000000000000 ffffffff810ff7e1 0000000000800711 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff810804e1>] warn_slowpath_common+0x81/0xb0 [ 2070.824241] [<ffffffff810ff7e1>] ktime_get+0x81/0x90 [ 2070.824241] [<ffffffff8107df48>] copy_process+0x578/0x1d80 [ 2070.824241] [<ffffffff8107f8d6>] _do_fork+0x86/0x380 [ 2070.824241] [<ffffffff8107fbf5>] kernel_thread+0x25/0x30 [ 2070.824241] [<ffffffff8109fd75>] kthreadd+0x325/0x390 [ 2070.824241] [<ffffffff8163074f>] ret_from_fork+0x3f/0x70 [ 2070.824241] DWARF2 unwinder stuck at ret_from_fork+0x3f/0x70 [ 2070.824241] Leftover inexact backtrace: [ 2070.824241] [<ffffffff8109fa50>] ? kthread_create_on_cpu+0x60/0x60 [ 2070.824241] ---[ end trace f6f630fd37c79c36 ]--- [ 2070.824241] ------------[ cut here ]------------ [ 2070.824241] WARNING: CPU: 0 PID: 2 at ../kernel/time/timekeeping.c:759 ktime_get_with_offset+0x94/0xa0() [ 2070.824241] Modules linked in: st ctr ccm fuse rfcomm af_packet nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables bnep msr ext4 jbd2 mbcache arc4 snd_hda_codec_hdmi rtsx_usb_ms memstick snd_hda_codec_generic nls_iso8859_1 nls_cp437 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep vfat intel_rapl x86_pkg_temp_thermal intel_powerclamp fat coretemp snd_pcm snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drbg ansi_cprng snd btusb hci_uart btrtl btqca btbcm aesni_intel aes_x86_64 [ 2070.824241] ath10k_pci iTCO_wdt btintel bluetooth lrw gf128mul glue_helper joydev uvcvideo ath10k_core ath mac80211 videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common intel_lpss_acpi videodev iTCO_vendor_support crc16 pcspkr serio_raw ablk_helper cryptd intel_lpss soundcore r8169 i2c_i801 cfg80211 ucsi rfkill mii pinctrl_sunrisepoint pinctrl_intel wmi mei_me shpchp mei battery acpi_pad ac processor fjes btrfs xor raid6_pq sd_mod sr_mod cdrom rtsx_usb_sdmmc mmc_core rtsx_usb mfd_core hid_generic usbhid crc32c_intel ahci libahci i915(O) i2c_algo_bit drm_kms_helper(O) syscopyarea sysfillrect xhci_pci sysimgblt fb_sys_fops xhci_hcd libata usbcore drm(O) usb_common i2c_hid video button dm_mod sg scsi_mod efivarfs autofs4 [ 2070.824241] CPU: 0 PID: 2 Comm: kthreadd Tainted: G W O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 0000000000000000 ffffffff81a245b8 [ 2070.824241] ffffffff810804e1 0000000000800711 ffff880139c83e08 ffff8800a5d4d2c0 [ 2070.824241] ffffffff8228a690 0000000000000000 ffffffff810ff884 0000000000800711 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff810804e1>] warn_slowpath_common+0x81/0xb0 [ 2070.824241] [<ffffffff810ff884>] ktime_get_with_offset+0x94/0xa0 [ 2070.824241] [<ffffffff8107df5a>] copy_process+0x58a/0x1d80 [ 2070.824241] [<ffffffff8107f8d6>] _do_fork+0x86/0x380 [ 2070.824241] [<ffffffff8107fbf5>] kernel_thread+0x25/0x30 [ 2070.824241] [<ffffffff8109fd75>] kthreadd+0x325/0x390 [ 2070.824241] [<ffffffff8163074f>] ret_from_fork+0x3f/0x70 [ 2070.824241] DWARF2 unwinder stuck at ret_from_fork+0x3f/0x70 [ 2070.824241] Leftover inexact backtrace: [ 2070.824241] [<ffffffff8109fa50>] ? kthread_create_on_cpu+0x60/0x60 [ 2070.824241] ---[ end trace f6f630fd37c79c37 ]--- [ 2070.824241] ------------[ cut here ]------------ [ 2070.824241] WARNING: CPU: 0 PID: 2 at ../kernel/time/timekeeping.c:716 ktime_get+0x81/0x90() [ 2070.824241] Modules linked in: st ctr ccm fuse rfcomm af_packet nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables bnep msr ext4 jbd2 mbcache arc4 snd_hda_codec_hdmi rtsx_usb_ms memstick snd_hda_codec_generic nls_iso8859_1 nls_cp437 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep vfat intel_rapl x86_pkg_temp_thermal intel_powerclamp fat coretemp snd_pcm snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drbg ansi_cprng snd btusb hci_uart btrtl btqca btbcm aesni_intel aes_x86_64 [ 2070.824241] ath10k_pci iTCO_wdt btintel bluetooth lrw gf128mul glue_helper joydev uvcvideo ath10k_core ath mac80211 videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common intel_lpss_acpi videodev iTCO_vendor_support crc16 pcspkr serio_raw ablk_helper cryptd intel_lpss soundcore r8169 i2c_i801 cfg80211 ucsi rfkill mii pinctrl_sunrisepoint pinctrl_intel wmi mei_me shpchp mei battery acpi_pad ac processor fjes btrfs xor raid6_pq sd_mod sr_mod cdrom rtsx_usb_sdmmc mmc_core rtsx_usb mfd_core hid_generic usbhid crc32c_intel ahci libahci i915(O) i2c_algo_bit drm_kms_helper(O) syscopyarea sysfillrect xhci_pci sysimgblt fb_sys_fops xhci_hcd libata usbcore drm(O) usb_common i2c_hid video button dm_mod sg scsi_mod efivarfs autofs4 [ 2070.824241] CPU: 0 PID: 2 Comm: kthreadd Tainted: G W O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 0000000000000000 ffffffff81a245b8 [ 2070.824241] ffffffff810804e1 0000000000800711 ffff880139c83e08 ffff8800a5d55300 [ 2070.824241] 0000000000000000 0000000000000000 ffffffff810ff7e1 0000000000800711 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff810804e1>] warn_slowpath_common+0x81/0xb0 [ 2070.824241] [<ffffffff810ff7e1>] ktime_get+0x81/0x90 [ 2070.824241] [<ffffffff8107df48>] copy_process+0x578/0x1d80 [ 2070.824241] [<ffffffff8107f8d6>] _do_fork+0x86/0x380 [ 2070.824241] [<ffffffff8107fbf5>] kernel_thread+0x25/0x30 [ 2070.824241] [<ffffffff8109fd75>] kthreadd+0x325/0x390 [ 2070.824241] [<ffffffff8163074f>] ret_from_fork+0x3f/0x70 [ 2070.824241] DWARF2 unwinder stuck at ret_from_fork+0x3f/0x70 [ 2070.824241] Leftover inexact backtrace: [ 2070.824241] [<ffffffff8109fa50>] ? kthread_create_on_cpu+0x60/0x60 [ 2070.824241] ---[ end trace f6f630fd37c79c38 ]--- [ 2070.824241] ------------[ cut here ]------------ [ 2070.824241] WARNING: CPU: 0 PID: 2 at ../kernel/time/timekeeping.c:759 ktime_get_with_offset+0x94/0xa0() [ 2070.824241] Modules linked in: st ctr ccm fuse rfcomm af_packet nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables bnep msr ext4 jbd2 mbcache arc4 snd_hda_codec_hdmi rtsx_usb_ms memstick snd_hda_codec_generic nls_iso8859_1 nls_cp437 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep vfat intel_rapl x86_pkg_temp_thermal intel_powerclamp fat coretemp snd_pcm snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drbg ansi_cprng snd btusb hci_uart btrtl btqca btbcm aesni_intel aes_x86_64 [ 2070.824241] ath10k_pci iTCO_wdt btintel bluetooth lrw gf128mul glue_helper joydev uvcvideo ath10k_core ath mac80211 videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common intel_lpss_acpi videodev iTCO_vendor_support crc16 pcspkr serio_raw ablk_helper cryptd intel_lpss soundcore r8169 i2c_i801 cfg80211 ucsi rfkill mii pinctrl_sunrisepoint pinctrl_intel wmi mei_me shpchp mei battery acpi_pad ac processor fjes btrfs xor raid6_pq sd_mod sr_mod cdrom rtsx_usb_sdmmc mmc_core rtsx_usb mfd_core hid_generic usbhid crc32c_intel ahci libahci i915(O) i2c_algo_bit drm_kms_helper(O) syscopyarea sysfillrect xhci_pci sysimgblt fb_sys_fops xhci_hcd libata usbcore drm(O) usb_common i2c_hid video button dm_mod sg scsi_mod efivarfs autofs4 [ 2070.824241] CPU: 0 PID: 2 Comm: kthreadd Tainted: G W O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 0000000000000000 ffffffff81a245b8 [ 2070.824241] ffffffff810804e1 0000000000800711 ffff880139c83e08 ffff8800a5d55300 [ 2070.824241] ffffffff8228a690 0000000000000000 ffffffff810ff884 0000000000800711 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff810804e1>] warn_slowpath_common+0x81/0xb0 [ 2070.824241] [<ffffffff810ff884>] ktime_get_with_offset+0x94/0xa0 [ 2070.824241] [<ffffffff8107df5a>] copy_process+0x58a/0x1d80 [ 2070.824241] [<ffffffff8107f8d6>] _do_fork+0x86/0x380 [ 2070.824241] [<ffffffff8107fbf5>] kernel_thread+0x25/0x30 [ 2070.824241] [<ffffffff8109fd75>] kthreadd+0x325/0x390 [ 2070.824241] [<ffffffff8163074f>] ret_from_fork+0x3f/0x70 [ 2070.824241] DWARF2 unwinder stuck at ret_from_fork+0x3f/0x70 [ 2070.824241] Leftover inexact backtrace: [ 2070.824241] [<ffffffff8109fa50>] ? kthread_create_on_cpu+0x60/0x60 [ 2070.824241] ---[ end trace f6f630fd37c79c39 ]--- [ 2070.824241] PM: Restoring platform NVS memory [ 2070.824241] ACPI : EC: EC started [ 2070.824241] Enabling non-boot CPUs ... [ 2070.824241] x86: Booting SMP configuration: [ 2070.824241] smpboot: Booting Node 0 Processor 1 APIC 0x2 [ 2070.824241] BUG: scheduling while atomic: systemd-sleep/7880/0x00000000 [ 2070.824241] Modules linked in: st ctr ccm fuse rfcomm af_packet nf_log_ipv6 xt_comment nf_log_ipv4 nf_log_common xt_LOG xt_limit ip6t_REJECT nf_reject_ipv6 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT nf_reject_ipv4 xt_pkttype xt_tcpudp iptable_filter ip6table_mangle nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ipv4 nf_defrag_ipv4 ip_tables xt_conntrack nf_conntrack ip6table_filter ip6_tables x_tables bnep msr ext4 jbd2 mbcache arc4 snd_hda_codec_hdmi rtsx_usb_ms memstick snd_hda_codec_generic nls_iso8859_1 nls_cp437 snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep vfat intel_rapl x86_pkg_temp_thermal intel_powerclamp fat coretemp snd_pcm snd_timer kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel drbg ansi_cprng snd btusb hci_uart btrtl btqca btbcm aesni_intel aes_x86_64 [ 2070.824241] ath10k_pci iTCO_wdt btintel bluetooth lrw gf128mul glue_helper joydev uvcvideo ath10k_core ath mac80211 videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core v4l2_common intel_lpss_acpi videodev iTCO_vendor_support crc16 pcspkr serio_raw ablk_helper cryptd intel_lpss soundcore r8169 i2c_i801 cfg80211 ucsi rfkill mii pinctrl_sunrisepoint pinctrl_intel wmi mei_me shpchp mei battery acpi_pad ac processor fjes btrfs xor raid6_pq sd_mod sr_mod cdrom rtsx_usb_sdmmc mmc_core rtsx_usb mfd_core hid_generic usbhid crc32c_intel ahci libahci i915(O) i2c_algo_bit drm_kms_helper(O) syscopyarea sysfillrect xhci_pci sysimgblt fb_sys_fops xhci_hcd libata usbcore drm(O) usb_common i2c_hid video button dm_mod sg scsi_mod efivarfs autofs4 [ 2070.824241] CPU: 0 PID: 7880 Comm: systemd-sleep Tainted: G W O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 ffff88013f415f40 ffff880040cbfcb8 [ 2070.824241] ffffffff811938ae ffff880040cbfd00 ffffffff8162bbee ffffffff81193c9f [ 2070.824241] ffff88002c98d1c0 ffff880040cc0000 0000000000000001 0000000000000000 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff811938ae>] __schedule_bug+0x4b/0x59 [ 2070.824241] [<ffffffff8162bbee>] thread_return+0x5eb/0x6bd [ 2070.824241] [<ffffffff8162bcfc>] schedule+0x3c/0x90 [ 2070.824241] [<ffffffff8104ed59>] native_cpu_up+0x309/0xa50 [ 2070.824241] [<ffffffff81080e41>] _cpu_up+0x121/0x160 [ 2070.824241] [<ffffffff810812ac>] enable_nonboot_cpus+0xbc/0x1e0 [ 2070.824241] [<ffffffff810d0ab8>] hibernation_snapshot+0x248/0x360 [ 2070.824241] [<ffffffff810d137e>] hibernate+0x15e/0x210 [ 2070.824241] [<ffffffff810ceb7d>] state_store+0x5d/0x80 [ 2070.824241] [<ffffffff8128b51f>] kernfs_fop_write+0x12f/0x170 [ 2070.824241] [<ffffffff8120f8d3>] __vfs_write+0x23/0x140 [ 2070.824241] [<ffffffff812105bd>] vfs_write+0x9d/0x190 [ 2070.824241] [<ffffffff81211622>] SyS_write+0x42/0xa0 [ 2070.824241] [<ffffffff816303b2>] entry_SYSCALL_64_fastpath+0x16/0x71 [ 2070.824241] DWARF2 unwinder stuck at entry_SYSCALL_64_fastpath+0x16/0x71 [ 2070.824241] Leftover inexact backtrace: -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c1
--- Comment #1 from Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c2
Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c3
Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c4
--- Comment #4 from Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c5
--- Comment #5 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c6
--- Comment #6 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c7
--- Comment #7 from Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c8
--- Comment #8 from Matwey Kornilov
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c9
--- Comment #9 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c10
--- Comment #10 from Joey Lee
Created attachment 734212 [details] dmesg.txt
Hello,
I am running openSUSE Leap 42.3 with kernel 4.4.76-1-default. And I see the following during hibernation:
[ 2070.824241] BUG: sleeping function called from invalid context at ../kernel/locking/rwsem.c:21 [ 2070.824241] in_atomic(): 1, irqs_disabled(): 1, pid: 7880, name: systemd-sleep [ 2070.824241] CPU: 0 PID: 7880 Comm: systemd-sleep Tainted: G O 4.4.76-1-default #1 [ 2070.824241] Hardware name: LENOVO 80WQ/ , BIOS 2WCN29WW 07/12/2017 [ 2070.824241] 0000000000000000 ffffffff81339d97 ffffffff81ecb2e0 000000000000040e [ 2070.824241] ffffffff8162dd8c ffffffff81a22e59 ffffffff812e9f6d ffffffff81a22e59 [ 2070.824241] 000000000000240f 000000000000240f ffffffff812ea06b ffffffff81859a80 [ 2070.824241] Call Trace: [ 2070.824241] [<ffffffff81019f29>] dump_trace+0x59/0x320 [ 2070.824241] [<ffffffff8101a2ea>] show_stack_log_lvl+0xfa/0x180 [ 2070.824241] [<ffffffff8101b091>] show_stack+0x21/0x40 [ 2070.824241] [<ffffffff81339d97>] dump_stack+0x5c/0x85 [ 2070.824241] [<ffffffff8162dd8c>] down_read+0x1c/0x40 [ 2070.824241] [<ffffffff812e9f6d>] crypto_alg_lookup+0x1d/0x50 [ 2070.824241] [<ffffffff812ea06b>] crypto_larval_lookup+0x2b/0x160 [ 2070.824241] [<ffffffff812ea1cd>] crypto_alg_mod_lookup+0x2d/0xa0 [ 2070.824241] [<ffffffff812ea433>] crypto_alloc_tfm+0x53/0xe0 [ 2070.824241] [<ffffffff810d3225>] swsusp_save+0x365/0x4a0 [ 2070.824241] [<ffffffff8151405b>] swsusp_arch_suspend+0x5b/0x60 [ 2070.824241] DWARF2 unwinder stuck at swsusp_arch_suspend+0x5b/0x60
The CONFIG_DEBUG_ATOMIC_SLEEP is enabled on openSUSE Leap 42.3 in the kernel default config: x86_64/debug:CONFIG_DEBUG_ATOMIC_SLEEP=y x86_64/default:CONFIG_DEBUG_ATOMIC_SLEEP=y SLE12 doesn't enable it on default config, that's why the BUG didn't show on SLE12 SP3. The root cause is that hibernation uses crypto API to generate signature in the context of sleep. The crypto_alg_lookup() calls down_read() that it calls might_sleep() the check the sleep can not be launched in a atomic sections. The hibernation signature verification can not pass the check. I am looking how to avoid this problem in hibernation code. Currently doesn't have good way to avoid this problem. At the moment, I suggest that either disable CONFIG_HIBERNATE_VERIFICATION or CONFIG_DEBUG_ATOMIC_SLEEP in kernel default config. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
Joey Lee
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c11
--- Comment #11 from Matwey Kornilov
There are other errors beforehand, e.g. the known HD-audio problem, so let's clear it at first.
Could you try to pass probe_mask=0x01 to snd-hda-intel module? Create /etc/modprobe.d/60-hda.conf containing the following line:
options snd-hda-intel probe_mask=0x01
Well, sound-related messages dissipated. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c12
--- Comment #12 from Joey Lee
Every other time the resuming just hard-freezes the whole system when showing screen-locker. I think it is related to 1051060. When the system survives resuming I see BUG:
So, the hibernation is success even you saw the "BUG:" stack dump? Base on the code in ___might_sleep(), it should not blocks hibernation. It just print out the "BUG" message. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c13
--- Comment #13 from Matwey Kornilov
(In reply to Matwey Kornilov from comment #8)
Every other time the resuming just hard-freezes the whole system when showing screen-locker. I think it is related to 1051060. When the system survives resuming I see BUG:
So, the hibernation is success even you saw the "BUG:" stack dump?
Yes, I see this stack after successful resuming.
Base on the code in ___might_sleep(), it should not blocks hibernation. It just print out the "BUG" message.
So, then we probably can just ignore them, but they look scary enough. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059
http://bugzilla.opensuse.org/show_bug.cgi?id=1051059#c14
--- Comment #14 from Joey Lee
(In reply to Joey Lee from comment #12)
(In reply to Matwey Kornilov from comment #8)
Every other time the resuming just hard-freezes the whole system when showing screen-locker. I think it is related to 1051060. When the system survives resuming I see BUG:
So, the hibernation is success even you saw the "BUG:" stack dump?
Yes, I see this stack after successful resuming.
Base on the code in ___might_sleep(), it should not blocks hibernation. It just print out the "BUG" message.
So, then we probably can just ignore them, but they look scary enough.
I agree. I am thinking to create a new system state like SYSTEM_SLEEPING to avoid the checking logic in ___might_sleep(). I still need to check the scope and it may not accept by upstream. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com