Subject: [mac80211] 4a6736b0fd: WARNING:at_net/mac80211/sta_info.h:#sta_info_move_state[mac80211]

From: kernel test robot <[email-masked]>
Date: Sun, 29 Jan 2017 21:45:22 +0800

FYI, we noticed the following commit:

commit: 4a6736b0fd81a3ddc7056957a9fe4972df0783e4 ("mac80211: use accessor functions to set sta->_flags")
url: https://github.com/0day-ci/linux/commits/Amadeusz-S-awi-ski/mac80211-use-helper-function-to-access-ieee802_1d_to_ac/20170125-083917
base: https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git master

in testcase: hwsim
with following parameters:

	group: hwsim-01

on test machine: 8 threads Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz with 8G memory

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):

+-------------------------------------------------------------------+------------+------------+
|                                                                   | cad7befc7f | 4a6736b0fd |
+-------------------------------------------------------------------+------------+------------+
| boot_successes                                                    | 4          | 2          |
| boot_failures                                                     | 0          | 6          |
| WARNING:at_net/mac80211/sta_info.h:#sta_info_move_state[mac80211] | 0          | 4          |
| invoked_oom-killer:gfp_mask=0x                                    | 0          | 2          |
| Mem-Info                                                          | 0          | 2          |
| Kernel_panic-not_syncing:Out_of_memory_and_no_killable_processes  | 0          | 2          |
+-------------------------------------------------------------------+------------+------------+

[   19.700413] wlan0: send auth to 02:00:00:00:03:00 (try 1/3)
[   19.700770] wlan0: authenticated
[   19.700779] ------------[ cut here ]------------
[   19.700820] WARNING: CPU: 4 PID: 311 at net/mac80211/sta_info.h:567 sta_info_move_state+0x311/0x330 [mac80211]
[   19.700820] Modules linked in: arc4 mac80211_hwsim mac80211 cfg80211 rfkill rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver netconsole sd_mod sg snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel pcbc aesni_intel snd_hda_codec_realtek ahci crypto_simd glue_helper snd_hda_codec_generic ppdev libahci cryptd firewire_ohci pcspkr serio_raw libata firewire_core crc_itu_t snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep i915 snd_pcm snd_timer snd video soundcore shpchp drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops drm parport_pc parport nuvoton_cir rc_core ip_tables
[   19.700848] CPU: 4 PID: 311 Comm: kworker/u16:6 Not tainted 4.10.0-rc4-00737-g4a6736b #1
[   19.700849] Hardware name:                  /DH67GD, BIOS BLH6710H.86A.0132.2011.1007.1505 10/07/2011
[   19.700873] Workqueue: phy0 ieee80211_iface_work [mac80211]
[   19.700874] Call Trace:
[   19.700879]  dump_stack+0x63/0x8a
[   19.700880]  __warn+0xcb/0xf0
[   19.700882]  warn_slowpath_null+0x1d/0x20

To reproduce:

        git clone git://git.kernel.org/pub/scm/linux/kernel/git/wfg/lkp-tests.git
        cd lkp-tests
        bin/lkp install job.yaml  # job file is attached in this email
        bin/lkp run     job.yaml

Thanks,
Kernel Test Robot