"kernel: BUG: scheduling while atomic:" errors with linux kernel 4.6

James Feeney james at nurealm.net
Thu May 19 14:11:16 PDT 2016


Arch linux 4.6-1
wpa_supplicant 1:2.5-3
Toshiba Satellite, circa 2011, with a Pentium Dual-Core Mobile
Error is not seen on other machines.

kernel: BUG: scheduling while atomic: wpa_supplicant/375/0x00000002
...
kernel: BUG: scheduling while atomic: wpa_supplicant/375/0x00000000
...
kernel: BUG: scheduling while atomic: wpa_supplicant/627/0x00000002
...
kernel: BUG: scheduling while atomic: wpa_supplicant/627/0x00000000
...
systemd-coredump[630]: Process 627 (wpa_supplicant) of user 0 dumped core.

See attached.
-------------- next part --------------
May 19 10:26:07 lapis kernel: BUG: scheduling while atomic: wpa_supplicant/627/0x00000002
May 19 10:26:07 lapis kernel: Modules linked in: nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_log nft_limit nft_meta nft_ct nf_conntrack nft_hash nft_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 nf_tables nfnetlink bonding uvcvideo videobuf2_vmalloc videobuf2_memops arc4 rtl8192ce videobuf2_v4l2 joydev mousedev rtl_pci videobuf2_core rtl8192c_common rtlwifi ums_realtek uas videodev mac80211 usb_storage media cfg80211 iTCO_wdt iTCO_vendor_support toshiba_acpi pcspkr input_leds intel_powerclamp sparse_keymap coretemp atl1c toshiba_bluetooth led_class serio_raw rfkill psmouse i2c_i801 snd_hda_codec_conexant snd_hda_codec_generic wmi snd_hda_intel intel_ips snd_hda_codec snd_hda_core ac snd_hwdep snd_pcm snd_timer snd evdev fjes shpchp mac_hid battery
May 19 10:26:07 lapis kernel:  lpc_ich soundcore mei_me mei acpi_cpufreq tpm_tis tpm processor sch_fq_codel sg ip_tables x_tables ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod atkbd libps2 ahci libahci libata scsi_mod i8042 serio ehci_pci ehci_hcd usbcore usb_common i915 video button i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm intel_agp intel_gtt
May 19 10:26:07 lapis kernel: CPU: 0 PID: 627 Comm: wpa_supplicant Tainted: G        W       4.6.0-1-ARCH #1
May 19 10:26:07 lapis kernel: Hardware name: TOSHIBA Satellite L655/Base Board Product Name, BIOS 2.80 07/03/2012
May 19 10:26:07 lapis kernel:  0000000000000286 00000000766b165b ffff8800b1ac76a8 ffffffff812e5362
May 19 10:26:07 lapis kernel:  ffff880137c15940 0000000000000001 ffff8800b1ac76b8 ffffffff810a10eb
May 19 10:26:07 lapis kernel:  ffff8800b1ac7708 ffffffff815c2b39 000000000000ec40 0000000000000040
May 19 10:26:07 lapis kernel: Call Trace:
May 19 10:26:07 lapis kernel:  [<ffffffff812e5362>] dump_stack+0x63/0x81
May 19 10:26:07 lapis kernel:  [<ffffffff810a10eb>] __schedule_bug+0x4b/0x60
May 19 10:26:07 lapis kernel:  [<ffffffff815c2b39>] __schedule+0x899/0xad0
May 19 10:26:07 lapis kernel:  [<ffffffff815c2dac>] schedule+0x3c/0x90
May 19 10:26:07 lapis kernel:  [<ffffffff815c5bb2>] schedule_hrtimeout_range_clock+0xa2/0x120
May 19 10:26:07 lapis kernel:  [<ffffffff810e8b80>] ? hrtimer_init+0x120/0x120
May 19 10:26:07 lapis kernel:  [<ffffffff815c5ba6>] ? schedule_hrtimeout_range_clock+0x96/0x120
May 19 10:26:07 lapis kernel:  [<ffffffff815c5c43>] schedule_hrtimeout_range+0x13/0x20
May 19 10:26:07 lapis kernel:  [<ffffffff815c568f>] usleep_range+0x4f/0x70
May 19 10:26:07 lapis kernel:  [<ffffffffa0667218>] rtl_rfreg_delay+0x38/0x50 [rtlwifi]
May 19 10:26:07 lapis kernel:  [<ffffffffa06dd0e7>] rtl92c_phy_config_rf_with_headerfile+0xc7/0xe0 [rtl8192ce]
May 19 10:26:07 lapis kernel:  [<ffffffffa06de61c>] rtl92ce_phy_rf6052_config+0x19c/0x2c0 [rtl8192ce]
May 19 10:26:07 lapis kernel:  [<ffffffffa067ed2e>] rtl92c_phy_rf_config+0x1e/0x20 [rtl8192c_common]
May 19 10:26:07 lapis kernel:  [<ffffffffa06db826>] rtl92ce_hw_init+0x7e6/0x1870 [rtl8192ce]
May 19 10:26:07 lapis kernel:  [<ffffffffa066998e>] rtl_ps_enable_nic+0x2e/0x70 [rtlwifi]
May 19 10:26:07 lapis kernel:  [<ffffffffa06ddadc>] rtl92c_phy_set_rf_power_state+0x3bc/0x470 [rtl8192ce]
May 19 10:26:07 lapis kernel:  [<ffffffffa0669b17>] rtl_ps_set_rf_state+0xe7/0x1b0 [rtlwifi]
May 19 10:26:07 lapis kernel:  [<ffffffffa0669c1d>] _rtl_ps_inactive_ps+0x3d/0xc0 [rtlwifi]
May 19 10:26:07 lapis kernel:  [<ffffffffa0669d20>] rtl_ips_nic_on+0x80/0xb0 [rtlwifi]
May 19 10:26:07 lapis kernel:  [<ffffffffa0666c28>] rtl_op_config+0x1d8/0x3f0 [rtlwifi]
May 19 10:26:07 lapis kernel:  [<ffffffff8120b4a8>] ? do_select+0x778/0x820
May 19 10:26:07 lapis kernel:  [<ffffffffa05c2a33>] ieee80211_hw_config+0x63/0x3a0 [mac80211]
May 19 10:26:07 lapis kernel:  [<ffffffffa05d92a2>] ieee80211_recalc_idle+0x22/0x30 [mac80211]
May 19 10:26:07 lapis kernel:  [<ffffffffa05cd693>] __ieee80211_start_scan+0x203/0x750 [mac80211]
May 19 10:26:07 lapis kernel:  [<ffffffffa05ce7f0>] ieee80211_request_scan+0x30/0x50 [mac80211]
May 19 10:26:07 lapis kernel:  [<ffffffffa05e0a65>] ieee80211_scan+0x65/0xb0 [mac80211]
May 19 10:26:07 lapis kernel:  [<ffffffffa055673f>] nl80211_trigger_scan+0x49f/0x740 [cfg80211]
May 19 10:26:07 lapis kernel:  [<ffffffff814f190f>] genl_family_rcv_msg+0x1df/0x3d0
May 19 10:26:07 lapis kernel:  [<ffffffff8120ab10>] ? poll_select_copy_remaining+0x140/0x140
May 19 10:26:07 lapis kernel:  [<ffffffff814f1b00>] ? genl_family_rcv_msg+0x3d0/0x3d0
May 19 10:26:07 lapis kernel:  [<ffffffff814f1b87>] genl_rcv_msg+0x87/0xc0
May 19 10:26:07 lapis kernel:  [<ffffffff814f0b84>] netlink_rcv_skb+0xa4/0xc0
May 19 10:26:07 lapis kernel:  [<ffffffff814f1718>] genl_rcv+0x28/0x40
May 19 10:26:07 lapis kernel:  [<ffffffff814f0481>] netlink_unicast+0x181/0x230
May 19 10:26:07 lapis kernel:  [<ffffffff814f0948>] netlink_sendmsg+0x348/0x3b0
May 19 10:26:07 lapis kernel:  [<ffffffff8149eaa7>] sock_sendmsg+0x17/0x30
May 19 10:26:07 lapis kernel:  [<ffffffff8149f1c5>] ___sys_sendmsg+0x295/0x2b0
May 19 10:26:07 lapis kernel:  [<ffffffff8149eaa7>] ? sock_sendmsg+0x17/0x30
May 19 10:26:07 lapis kernel:  [<ffffffff8149fea0>] ? SyS_sendto+0x140/0x190
May 19 10:26:07 lapis kernel:  [<ffffffff810eebff>] ? ktime_get_ts64+0x4f/0x100
May 19 10:26:07 lapis kernel:  [<ffffffff814a0324>] __sys_sendmsg+0x54/0x90
May 19 10:26:07 lapis kernel:  [<ffffffff814a0372>] SyS_sendmsg+0x12/0x20
May 19 10:26:07 lapis kernel:  [<ffffffff815c6832>] entry_SYSCALL_64_fastpath+0x1a/0xa4
May 19 10:26:08 lapis kernel: ------------[ cut here ]------------
May 19 10:26:08 lapis kernel: WARNING: CPU: 0 PID: 627 at net/core/skbuff.c:653 skb_release_head_state+0xa0/0xb0
May 19 10:26:08 lapis kernel: Modules linked in: nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_log nft_limit nft_meta nft_ct nf_conntrack nft_hash nft_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 nf_tables nfnetlink bonding uvcvideo videobuf2_vmalloc videobuf2_memops arc4 rtl8192ce videobuf2_v4l2 joydev mousedev rtl_pci videobuf2_core rtl8192c_common rtlwifi ums_realtek uas videodev mac80211 usb_storage media cfg80211 iTCO_wdt iTCO_vendor_support toshiba_acpi pcspkr input_leds intel_powerclamp sparse_keymap coretemp atl1c toshiba_bluetooth led_class serio_raw rfkill psmouse i2c_i801 snd_hda_codec_conexant snd_hda_codec_generic wmi snd_hda_intel intel_ips snd_hda_codec snd_hda_core ac snd_hwdep snd_pcm snd_timer snd evdev fjes shpchp mac_hid battery
May 19 10:26:08 lapis kernel:  lpc_ich soundcore mei_me mei acpi_cpufreq tpm_tis tpm processor sch_fq_codel sg ip_tables x_tables ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod atkbd libps2 ahci libahci libata scsi_mod i8042 serio ehci_pci ehci_hcd usbcore usb_common i915 video button i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm intel_agp intel_gtt
May 19 10:26:08 lapis kernel: CPU: 0 PID: 627 Comm: wpa_supplicant Tainted: G        W       4.6.0-1-ARCH #1
May 19 10:26:08 lapis kernel: Hardware name: TOSHIBA Satellite L655/Base Board Product Name, BIOS 2.80 07/03/2012
May 19 10:26:08 lapis kernel:  0000000000000286 00000000766b165b ffff8800b1ac7bb8 ffffffff812e5362
May 19 10:26:08 lapis kernel:  0000000000000000 0000000000000000 ffff8800b1ac7bf8 ffffffff8107a68b
May 19 10:26:08 lapis kernel:  0000028d00000014 ffff8800b199ac00 ffff8800b199ac00 ffff8800b199ac00
May 19 10:26:08 lapis kernel: Call Trace:
May 19 10:26:08 lapis kernel:  [<ffffffff812e5362>] dump_stack+0x63/0x81
May 19 10:26:08 lapis kernel:  [<ffffffff8107a68b>] __warn+0xcb/0xf0
May 19 10:26:08 lapis kernel:  [<ffffffff8107a7bd>] warn_slowpath_null+0x1d/0x20
May 19 10:26:08 lapis kernel:  [<ffffffff814a6090>] skb_release_head_state+0xa0/0xb0
May 19 10:26:08 lapis kernel:  [<ffffffff814a9412>] skb_release_all+0x12/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff814a9c6c>] consume_skb+0x2c/0xa0
May 19 10:26:08 lapis kernel:  [<ffffffff814f0489>] netlink_unicast+0x189/0x230
May 19 10:26:08 lapis kernel:  [<ffffffff814f0948>] netlink_sendmsg+0x348/0x3b0
May 19 10:26:08 lapis kernel:  [<ffffffff8149eaa7>] sock_sendmsg+0x17/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff8149f1c5>] ___sys_sendmsg+0x295/0x2b0
May 19 10:26:08 lapis kernel:  [<ffffffff8149eaa7>] ? sock_sendmsg+0x17/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff8149fea0>] ? SyS_sendto+0x140/0x190
May 19 10:26:08 lapis kernel:  [<ffffffff810eebff>] ? ktime_get_ts64+0x4f/0x100
May 19 10:26:08 lapis kernel:  [<ffffffff814a0324>] __sys_sendmsg+0x54/0x90
May 19 10:26:08 lapis kernel:  [<ffffffff814a0372>] SyS_sendmsg+0x12/0x20
May 19 10:26:08 lapis kernel:  [<ffffffff815c6832>] entry_SYSCALL_64_fastpath+0x1a/0xa4
May 19 10:26:08 lapis kernel: ---[ end trace 83fcfcdab9871116 ]---
May 19 10:26:08 lapis kernel: wpa_supplicant[627]: segfault at 20e81a8 ip 00007fc8de7b6b39 sp 00007ffe16711230 error 6
May 19 10:26:08 lapis kernel: BUG: scheduling while atomic: wpa_supplicant/627/0x00000000
May 19 10:26:08 lapis kernel: Modules linked in: nf_log_ipv6 nf_log_ipv4 nf_log_common nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nft_log nft_limit nft_meta nft_ct nf_conntrack nft_hash nft_rbtree nf_tables_inet nf_tables_ipv6 nf_tables_ipv4 nf_tables nfnetlink bonding uvcvideo videobuf2_vmalloc videobuf2_memops arc4 rtl8192ce videobuf2_v4l2 joydev mousedev rtl_pci videobuf2_core rtl8192c_common rtlwifi ums_realtek uas videodev mac80211 usb_storage media cfg80211 iTCO_wdt iTCO_vendor_support toshiba_acpi pcspkr input_leds intel_powerclamp sparse_keymap coretemp atl1c toshiba_bluetooth led_class serio_raw rfkill psmouse i2c_i801 snd_hda_codec_conexant snd_hda_codec_generic wmi snd_hda_intel intel_ips snd_hda_codec snd_hda_core ac snd_hwdep snd_pcm snd_timer snd evdev fjes shpchp mac_hid battery
May 19 10:26:08 lapis kernel:  lpc_ich soundcore mei_me mei acpi_cpufreq tpm_tis tpm processor sch_fq_codel sg ip_tables x_tables ext4 crc16 jbd2 mbcache sr_mod cdrom sd_mod atkbd libps2 ahci libahci libata scsi_mod i8042 serio ehci_pci ehci_hcd usbcore usb_common i915 video button i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm intel_agp intel_gtt
May 19 10:26:08 lapis kernel: CPU: 0 PID: 627 Comm: wpa_supplicant Tainted: G        W       4.6.0-1-ARCH #1
May 19 10:26:08 lapis kernel: Hardware name: TOSHIBA Satellite L655/Base Board Product Name, BIOS 2.80 07/03/2012
May 19 10:26:08 lapis kernel:  0000000000000286 00000000766b165b ffff8800b1ac7a28 ffffffff812e5362
May 19 10:26:08 lapis kernel:  ffff880137c15940 ffff8800b1ac7bf0 ffff8800b1ac7a38 ffffffff810a10eb
May 19 10:26:08 lapis kernel:  ffff8800b1ac7a88 ffffffff815c2b39 00ff880137c55940 ffffffff810aa489
May 19 10:26:08 lapis kernel: Call Trace:
May 19 10:26:08 lapis kernel:  [<ffffffff812e5362>] dump_stack+0x63/0x81
May 19 10:26:08 lapis kernel:  [<ffffffff810a10eb>] __schedule_bug+0x4b/0x60
May 19 10:26:08 lapis kernel:  [<ffffffff815c2b39>] __schedule+0x899/0xad0
May 19 10:26:08 lapis kernel:  [<ffffffff810aa489>] ? sched_clock_cpu+0xa9/0xd0
May 19 10:26:08 lapis kernel:  [<ffffffff815c2dac>] schedule+0x3c/0x90
May 19 10:26:08 lapis kernel:  [<ffffffff815c5883>] schedule_timeout+0x1d3/0x260
May 19 10:26:08 lapis kernel:  [<ffffffff810a3bed>] ? ttwu_do_activate.constprop.40+0x5d/0x70
May 19 10:26:08 lapis kernel:  [<ffffffff810a47a3>] ? try_to_wake_up+0x183/0x3d0
May 19 10:26:08 lapis kernel:  [<ffffffff815c3931>] wait_for_common+0xc1/0x180
May 19 10:26:08 lapis kernel:  [<ffffffff810a4a80>] ? wake_up_q+0x70/0x70
May 19 10:26:08 lapis kernel:  [<ffffffff815c3a0d>] wait_for_completion+0x1d/0x20
May 19 10:26:08 lapis kernel:  [<ffffffff8108f480>] call_usermodehelper_exec+0xf0/0x170
May 19 10:26:08 lapis kernel:  [<ffffffff812576d7>] do_coredump+0x4c7/0xe10
May 19 10:26:08 lapis kernel:  [<ffffffff810876fa>] ? signal_wake_up_state+0x2a/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff81087c2b>] ? complete_signal+0xdb/0x210
May 19 10:26:08 lapis kernel:  [<ffffffff81089bb8>] get_signal+0x348/0x650
May 19 10:26:08 lapis kernel:  [<ffffffff8102e147>] do_signal+0x37/0x6f0
May 19 10:26:08 lapis kernel:  [<ffffffff810d422f>] ? vprintk_default+0x1f/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff8116da29>] ? printk+0x57/0x73
May 19 10:26:08 lapis kernel:  [<ffffffff812eb462>] ? ___ratelimit+0xb2/0x100
May 19 10:26:08 lapis kernel:  [<ffffffff810d422f>] ? vprintk_default+0x1f/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff81067144>] ? bad_area_nosemaphore+0x14/0x20
May 19 10:26:08 lapis kernel:  [<ffffffff81003691>] exit_to_usermode_loop+0xa1/0xc0
May 19 10:26:08 lapis kernel:  [<ffffffff81003b86>] prepare_exit_to_usermode+0x26/0x30
May 19 10:26:08 lapis kernel:  [<ffffffff815c71a5>] retint_user+0x8/0x10
May 19 10:26:08 lapis systemd-coredump[630]: Process 627 (wpa_supplicant) of user 0 dumped core.

                                             Stack trace of thread 627:
                                             #0  0x00007fc8de7b6b39 _int_malloc (libc.so.6)
                                             #1  0x00007fc8de7b81d4 malloc (libc.so.6)
                                             #2  0x00007fc8df631a99 nl_recv (libnl-3.so.200)
                                             #3  0x00007fc8df6323e5 nl_recvmsgs_report (libnl-3.so.200)
                                             #4  0x00007fc8df6326d9 nl_recvmsgs (libnl-3.so.200)
                                             #5  0x0000000000501573 n/a (wpa_supplicant)
                                             #6  0x0000000000514c27 n/a (wpa_supplicant)
                                             #7  0x00000000004fb463 n/a (wpa_supplicant)
                                             #8  0x00000000004e9600 n/a (wpa_supplicant)
                                             #9  0x0000000000422276 n/a (wpa_supplicant)
                                             #10 0x00000000004ed697 n/a (wpa_supplicant)
                                             #11 0x0000000000412f05 n/a (wpa_supplicant)
                                             #12 0x00007fc8de760741 __libc_start_main (libc.so.6)
                                             #13 0x0000000000412f99 n/a (wpa_supplicant)



More information about the Hostap mailing list