Greeting, FYI, we noticed the following commit (built with gcc-7): commit: 6f0a20247e0f849e204996df3cf03a0ddbf0303c ("[PATCH v2 10/11] mac80211: determine chantype from HE operation in 6 GHz") url: https://github.com/0day-ci/linux/commits/Rajkumar-Manoharan/cfg80211-use-only-HE-capability-to-set-prohibited-flags-in-6-GHz/20200501-064741 base: https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git master in testcase: hwsim with following parameters: group: hwsim-22 on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 272.408005] WARNING: CPU: 0 PID: 5137 at net/mac80211/ieee80211_i.h:1443 ieee80211_chandef_he_oper+0x1f0/0x270 [mac80211] [ 272.411872] Modules linked in: mac80211_hwsim mac80211 cfg80211 rfkill libarc4 intel_rapl_msr intel_rapl_common crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel sr_mod cdrom sg ata_generic pata_acpi bochs_drm drm_vram_helper drm_ttm_helper aesni_intel ppdev crypto_simd ata_piix ttm cryptd glue_helper libata snd_pcm drm_kms_helper snd_timer syscopyarea sysfillrect joydev snd sysimgblt fb_sys_fops soundcore serio_raw pcspkr drm i2c_piix4 parport_pc parport floppy ip_tables [ 272.423523] CPU: 0 PID: 5137 Comm: wpa_supplicant Not tainted 5.7.0-rc1-00236-g6f0a20247e0f8 #1 [ 272.425792] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 [ 272.428161] RIP: 0010:ieee80211_chandef_he_oper+0x1f0/0x270 [mac80211] [ 272.430160] Code: 24 08 48 89 02 48 8b 44 24 10 48 89 42 08 48 8b 44 24 18 48 89 42 10 48 8b 44 24 20 48 89 42 18 b8 01 00 00 00 e9 fb fe ff ff <0f> 0b 65 ff 0d 1f d3 88 3f e9 ed fe ff ff 85 ed 74 2b 44 29 e5 89 [ 272.434819] RSP: 0018:ffffb7b18051f780 EFLAGS: 00010246 [ 272.436991] RAX: 0000000000000000 RBX: ffffb7b18051f800 RCX: ffff9be361b30800 [ 272.439328] RDX: ffffb7b18051f8c0 RSI: ffff9be36147d1a6 RDI: ffff9be2ca1668c0 [ 272.441463] RBP: ffff9be2ca1668c0 R08: 000000000000145a R09: 0000000000000000 [ 272.443689] R10: ffff9be2ca167298 R11: ffffffffc060f4e1 R12: 0000000000000000 [ 272.446050] R13: ffff9be36147d150 R14: ffff9be361b31f40 R15: ffffb7b18051f8c0 [ 272.448272] FS: 00007f7e233cee40(0000) GS:ffff9be3ffc00000(0000) knlGS:0000000000000000 [ 272.450688] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 272.452952] CR2: 0000559f677408e0 CR3: 00000001a1936000 CR4: 00000000000406f0 [ 272.455389] Call Trace: [ 272.457182] ieee80211_determine_chantype+0x2c4/0x490 [mac80211] [ 272.459490] ieee80211_prep_connection+0x3c5/0x9e0 [mac80211] [ 272.461943] ieee80211_mgd_auth+0x22c/0x360 [mac80211] [ 272.464247] cfg80211_mlme_auth+0x125/0x250 [cfg80211] [ 272.466508] nl80211_authenticate+0x298/0x2f0 [cfg80211] [ 272.468965] genl_rcv_msg+0x1ed/0x430 [ 272.471103] ? pollwake+0x74/0x90 [ 272.473065] ? genl_family_rcv_msg_attrs_parse+0x100/0x100 [ 272.475242] netlink_rcv_skb+0x4a/0x110 [ 272.477298] genl_rcv+0x24/0x40 [ 272.479132] netlink_unicast+0x1b2/0x280 [ 272.481038] netlink_sendmsg+0x329/0x450 [ 272.482815] sock_sendmsg+0x5b/0x60 [ 272.484674] ____sys_sendmsg+0x200/0x280 [ 272.486413] ? copy_msghdr_from_user+0x5c/0x90 [ 272.488120] ? set_page_dirty+0xe/0xb0 [ 272.489862] ___sys_sendmsg+0x88/0xd0 [ 272.491416] ? __generic_file_write_iter+0x192/0x1c0 [ 272.493327] ? generic_file_write_iter+0x105/0x16b [ 272.495138] ? new_sync_write+0x12d/0x1d0 [ 272.496721] ? __sys_sendmsg+0x5e/0xa0 [ 272.498436] __sys_sendmsg+0x5e/0xa0 [ 272.502179] do_syscall_64+0x5b/0x1f0 [ 272.503989] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 272.505790] RIP: 0033:0x7f7e215a0dc7 [ 272.507348] Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb cd 66 0f 1f 44 00 00 8b 05 4a 49 2b 00 85 c0 75 2e 48 63 ff 48 63 d2 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 a1 f0 2a 00 f7 d8 64 89 02 48 [ 272.511990] RSP: 002b:00007ffd82f56a28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 272.514107] RAX: ffffffffffffffda RBX: 00005625de742310 RCX: 00007f7e215a0dc7 [ 272.516316] RDX: 0000000000000000 RSI: 00007ffd82f56ab0 RDI: 0000000000000007 [ 272.518263] RBP: 00005625de742220 R08: 0000000000000004 R09: 00000000000000f0 [ 272.520346] R10: 00007ffd82f56b9c R11: 0000000000000246 R12: 00005625de7571d0 [ 272.522391] R13: 00007ffd82f56ab0 R14: 0000000000000000 R15: 00007ffd82f56b9c [ 272.524508] ---[ end trace f7a220193ae26eea ]--- To reproduce: # build kernel cd linux cp config-5.7.0-rc1-00236-g6f0a20247e0f8 .config make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, Rong Chen