FYI, we noticed the following commit (built with gcc-7):
commit: 3df7894e9b83877826acdfb12291b058f8b71c97 ("[PATCH 2/2] mac80211: use STA info
in rate_control_send_low()")
url:
https://github.com/0day-ci/linux/commits/Johannes-Berg/mac80211-call-rate...
base:
https://git.kernel.org/cgit/linux/kernel/git/jberg/mac80211.git master
in testcase: hwsim
with following parameters:
group: hwsim-10
on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 4G
caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):
+-------------------------------------------------------------------+------------+------------+
| | 676e759c98 |
3df7894e9b |
+-------------------------------------------------------------------+------------+------------+
| boot_successes | 10 | 13
|
| boot_failures | 0 | 6
|
| WARNING:at_net/mac80211/rate.c:#__rate_control_send_low[mac80211] | 0 | 6
|
| RIP:__rate_control_send_low[mac80211] | 0 | 6
|
+-------------------------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp(a)intel.com>
[ 904.330858] WARNING: CPU: 1 PID: 4858 at net/mac80211/rate.c:362
__rate_control_send_low+0xf0/0x100 [mac80211]
[ 904.334146] Modules linked in: bridge stp llc veth cmac ccm arc4 mac80211_hwsim
mac80211 cfg80211 rfkill crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel
sr_mod cdrom sg ata_generic bochs_drm pata_acpi ttm drm_kms_helper ppdev snd_pcm
aesni_intel syscopyarea sysfillrect sysimgblt fb_sys_fops crypto_simd ata_piix snd_timer
libata cryptd snd drm soundcore glue_helper pcspkr joydev serio_raw i2c_piix4 parport_pc
parport floppy ip_tables
[ 904.340913] CPU: 1 PID: 4858 Comm: wpa_supplicant Not tainted 5.1.0-10245-g3df7894 #1
[ 904.342376] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 904.343940] RIP: 0010:__rate_control_send_low+0xf0/0x100 [mac80211]
[ 904.345264] Code: c3 4d 85 e4 c6 05 b7 46 0a 00 01 b8 ff ff ff ff 74 07 8b 46 10 41 8b
04 84 44 89 c2 89 c6 48 c7 c7 d0 e6 68 c0 e8 b0 63 67 ea <0f> 0b eb 96 31 c0 eb 8d
0f 1f 84 00 00 00 00 00 66 66 66 66 90 41
[ 904.348616] RSP: 0018:ffffba5340b53810 EFLAGS: 00010286
[ 904.349860] RAX: 0000000000000000 RBX: ffff989f67348328 RCX: 0000000000000000
[ 904.351304] RDX: ffff98a03fd26d40 RSI: ffff98a03fd17778 RDI: ffff98a03fd17778
[ 904.352754] RBP: ffff989f8888c7a0 R08: 000000000000b4e4 R09: 0000000000aaaaaa
[ 904.354212] R10: 0000000000000000 R11: ffff98a01c7ab780 R12: ffff989f84945898
[ 904.355677] R13: ffff989f8888d648 R14: ffff989f8887d8d0 R15: ffff989f84945898
[ 904.357119] FS: 00007f33257dfe40(0000) GS:ffff98a03fd00000(0000)
knlGS:0000000000000000
[ 904.358693] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 904.360022] CR2: 00000000004216d0 CR3: 000000008895c000 CR4: 00000000000406e0
[ 904.361515] Call Trace:
[ 904.362522] rate_control_send_low+0x41/0x110 [mac80211]
[ 904.363825] rate_control_get_rate+0x7c/0x150 [mac80211]
[ 904.365133] ieee80211_tx_h_rate_ctrl+0x195/0x3d0 [mac80211]
[ 904.366484] invoke_tx_handlers_early+0x2a0/0x5f0 [mac80211]
[ 904.367808] ieee80211_tx+0x82/0x130 [mac80211]
[ 904.369014] __ieee80211_tx_skb_tid_band+0x58/0x70 [mac80211]
[ 904.370346] ieee80211_mgmt_tx+0x36a/0x580 [mac80211]
[ 904.371596] ? skb_partial_csum_set+0xb0/0xb0
[ 904.372779] cfg80211_mlme_mgmt_tx+0x10e/0x300 [cfg80211]
[ 904.374079] nl80211_tx_mgmt+0x246/0x3b0 [cfg80211]
[ 904.375321] ? __nla_validate_parse+0x57/0x8a0
[ 904.376509] genl_family_rcv_msg+0x203/0x400
[ 904.378183] ? get_page_from_freelist+0x15c7/0x15e0
[ 904.379423] genl_rcv_msg+0x47/0x90
[ 904.380522] ? __kmalloc_node_track_caller+0x59/0x2a0
[ 904.381780] ? genl_family_rcv_msg+0x400/0x400
[ 904.383645] netlink_rcv_skb+0x4a/0x110
[ 904.384759] genl_rcv+0x24/0x40
[ 904.385798] netlink_unicast+0x193/0x230
[ 904.386913] netlink_sendmsg+0x2c1/0x3c0
[ 904.388017] sock_sendmsg+0x4c/0x50
[ 904.389070] ___sys_sendmsg+0x289/0x300
[ 904.390158] ? __generic_file_write_iter+0x192/0x1c0
[ 904.391363] ? generic_file_write_iter+0xb8/0x150
[ 904.392540] ? new_sync_write+0x12d/0x1d0
[ 904.393631] ? __sys_sendmsg+0x5e/0xa0
[ 904.394693] __sys_sendmsg+0x5e/0xa0
[ 904.395722] do_syscall_64+0x5b/0x1d0
[ 904.396736] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 904.397880] RIP: 0033:0x7f33239b1dc7
[ 904.398845] 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
[ 904.402016] RSP: 002b:00007ffe4dc102e8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 904.403400] RAX: ffffffffffffffda RBX: 0000558ed2830b00 RCX: 00007f33239b1dc7
[ 904.404746] RDX: 0000000000000000 RSI: 00007ffe4dc10370 RDI: 0000000000000007
[ 904.406079] RBP: 0000558ed2830a10 R08: 0000000000000004 R09: 00000000000000f0
[ 904.407400] R10: 00007ffe4dc1044c R11: 0000000000000246 R12: 0000558ed37d0910
[ 904.408707] R13: 00007ffe4dc10370 R14: 00007ffe4dc104a8 R15: 00007ffe4dc1044c
[ 904.410047] ---[ end trace 2b49fe831975940d ]---
To reproduce:
# build kernel
cd linux
cp config-5.1.0-10245-g3df7894 .config
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 prepare
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 modules_prepare
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 SHELL=/bin/bash
make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 bzImage
git clone
https://github.com/intel/lkp-tests.git
cd lkp-tests
bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email
Thanks,
lkp