lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20220330091027.GA6999@xsang-OptiPlex-9020>
Date:   Wed, 30 Mar 2022 17:10:27 +0800
From:   kernel test robot <oliver.sang@...el.com>
To:     Sriram R <quic_srirrama@...cinc.com>
Cc:     0day robot <lkp@...el.com>, LKML <linux-kernel@...r.kernel.org>,
        lkp@...ts.01.org, johannes@...solutions.net,
        linux-wireless@...r.kernel.org,
        Sriram R <quic_srirrama@...cinc.com>
Subject: [mac80211]  96e8c9671b:
 BUG:sleeping_function_called_from_invalid_context_at_include/linux/sched/mm.h



Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 96e8c9671b15d244c3e435b18a7509075f31811a ("[RFC] mac80211: prepare sta handling for MLO support")
url: https://github.com/intel-lab-lkp/linux/commits/Sriram-R/mac80211-prepare-sta-handling-for-MLO-support/20220325-155322
base: https://git.kernel.org/cgit/linux/kernel/git/wireless/wireless.git main
patch link: https://lore.kernel.org/linux-wireless/1648194497-15848-1-git-send-email-quic_srirrama@quicinc.com

in testcase: hwsim
version: hwsim-x86_64-717e5d7-1_20220325
with following parameters:

	test: group-11
	ucode: 0xec



on test machine: 4 threads Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz with 32G memory

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 <oliver.sang@...el.com>


[   85.647074][ T4567] BUG: sleeping function called from invalid context at include/linux/sched/mm.h:256
[   85.647076][ T4567] in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 4567, name: wpa_supplicant
[   85.685817][ T4567] preempt_count: 201, expected: 0
[   85.690775][ T4567] CPU: 2 PID: 4567 Comm: wpa_supplicant Tainted: G          I       5.17.0-rc5-00225-g96e8c9671b15 #1
[   85.701569][ T4567] Hardware name: Dell Inc. OptiPlex 7040/0Y7WYT, BIOS 1.1.1 10/07/2015
[   85.709658][ T4567] Call Trace:
[   85.712800][ T4567]  <TASK>
[ 85.715592][ T4567] dump_stack_lvl (lib/dump_stack.c:107) 
[ 85.719962][ T4567] __might_resched.cold (kernel/sched/core.c:9586 kernel/sched/core.c:9539) 
[ 85.725015][ T4567] ? sta_info_alloc (include/linux/slab.h:581 include/linux/slab.h:714 net/mac80211/sta_info.c:370 net/mac80211/sta_info.c:441) mac80211
[ 85.730819][ T4567] kmem_cache_alloc_trace (include/linux/sched/mm.h:256 mm/slab.h:705 mm/slub.c:3144 mm/slub.c:3238 mm/slub.c:3255) 
[ 85.736072][ T4567] sta_info_alloc (include/linux/slab.h:581 include/linux/slab.h:714 net/mac80211/sta_info.c:370 net/mac80211/sta_info.c:441) mac80211
[ 85.741729][ T4567] ? wake_up_klogd (kernel/printk/printk.c:3257) 
[ 85.746780][ T4567] ieee80211_prep_connection (net/mac80211/mlme.c:5284) mac80211
[ 85.753329][ T4567] ? __kasan_slab_alloc (mm/kasan/common.c:431 mm/kasan/common.c:469) 
[ 85.758210][ T4567] ieee80211_mgd_auth.cold (net/mac80211/status.c:1225) mac80211
[ 85.764534][ T4567] ? ieee80211_mlme_notify_scan_completed (net/mac80211/mlme.c:5431) mac80211
[ 85.772160][ T4567] ? cfg80211_get_bss (net/wireless/scan.c:1459) cfg80211
[ 85.778099][ T4567] cfg80211_mlme_auth (net/wireless/rdev-ops.h:458 net/wireless/mlme.c:273) cfg80211
[ 85.784018][ T4567] ? genl_rcv (net/netlink/genetlink.c:804) 
[ 85.788035][ T4567] ? netlink_unicast (net/netlink/af_netlink.c:1318 net/netlink/af_netlink.c:1343) 
[ 85.792826][ T4567] ? netlink_sendmsg (net/netlink/af_netlink.c:1919) 
[ 85.797617][ T4567] ? sock_sendmsg (net/socket.c:705 net/socket.c:725) 
[ 85.802060][ T4567] ? ____sys_sendmsg (net/socket.c:2413) 
[ 85.806858][ T4567] ? cfg80211_rx_mgmt_khz (net/wireless/mlme.c:243) cfg80211
[ 85.813129][ T4567] ? mutex_lock (arch/x86/include/asm/atomic64_64.h:190 include/linux/atomic/atomic-long.h:443 include/linux/atomic/atomic-instrumented.h:1781 kernel/locking/mutex.c:168 kernel/locking/mutex.c:282) 
[ 85.817420][ T4567] nl80211_authenticate (net/wireless/nl80211.c:10068) cfg80211
[ 85.823492][ T4567] ? __nl80211_rx_control_port+0x700/0x700 cfg80211
[ 85.831245][ T4567] ? nl80211_pre_doit (net/wireless/nl80211.c:15249) cfg80211
[ 85.837138][ T4567] genl_family_rcv_msg_doit+0x1fb/0x340 
[ 85.843150][ T4567] ? genl_start (net/netlink/genetlink.c:695) 
[ 85.847525][ T4567] ? __radix_tree_lookup (lib/radix-tree.c:757) 
[ 85.852577][ T4567] ? security_capable (security/security.c:806 (discriminator 13)) 
[ 85.857290][ T4567] genl_rcv_msg (net/netlink/genetlink.c:775 net/netlink/genetlink.c:792) 
[ 85.861657][ T4567] ? genl_family_rcv_msg_doit+0x340/0x340 
[ 85.867836][ T4567] ? __nl80211_rx_control_port+0x700/0x700 cfg80211
[ 85.875538][ T4567] ? __mod_memcg_lruvec_state (mm/memcontrol.c:638 mm/memcontrol.c:714) 
[ 85.881022][ T4567] netlink_rcv_skb (net/netlink/af_netlink.c:2494) 
[ 85.885639][ T4567] ? genl_family_rcv_msg_doit+0x340/0x340 
[ 85.891818][ T4567] ? netlink_ack (net/netlink/af_netlink.c:2471) 
[ 85.896261][ T4567] genl_rcv (net/netlink/genetlink.c:804) 
[ 85.900095][ T4567] netlink_unicast (net/netlink/af_netlink.c:1318 net/netlink/af_netlink.c:1343) 
[ 85.904711][ T4567] ? policy_node (include/linux/nodemask.h:265 mm/mempolicy.c:1869) 
[ 85.909068][ T4567] ? netlink_attachskb (net/netlink/af_netlink.c:1328) 
[ 85.914032][ T4567] ? xas_load (lib/xarray.c:241) 
[ 85.918129][ T4567] ? __check_object_size (mm/usercopy.c:241 mm/usercopy.c:287 mm/usercopy.c:257) 
[ 85.923267][ T4567] netlink_sendmsg (net/netlink/af_netlink.c:1919) 
[ 85.927884][ T4567] ? netlink_unicast (net/netlink/af_netlink.c:1839) 
[ 85.932676][ T4567] ? __import_iovec (lib/iov_iter.c:1949) 
[ 85.937305][ T4567] ? netlink_unicast (net/netlink/af_netlink.c:1839) 
[ 85.942106][ T4567] sock_sendmsg (net/socket.c:705 net/socket.c:725) 
[ 85.946389][ T4567] ____sys_sendmsg (net/socket.c:2413) 
[ 85.951006][ T4567] ? kernel_sendmsg (net/socket.c:2360) 
[ 85.955538][ T4567] ? __copy_msghdr_from_user (net/socket.c:2342) 
[ 85.961023][ T4567] ? generic_perform_write (mm/filemap.c:3800) 
[ 85.966346][ T4567] ? trace_event_raw_event_filemap_set_wb_err (mm/filemap.c:3730) 
[ 85.973320][ T4567] ___sys_sendmsg (net/socket.c:2469) 
[ 85.977764][ T4567] ? sendmsg_copy_msghdr (net/socket.c:2456) 
[ 85.982725][ T4567] ? up_write (arch/x86/include/asm/atomic64_64.h:172 include/linux/atomic/atomic-long.h:95 include/linux/atomic/atomic-instrumented.h:1348 kernel/locking/rwsem.c:1318 kernel/locking/rwsem.c:1567) 
[ 85.986732][ T4567] ? __might_fault (mm/memory.c:5274) 
[ 85.991175][ T4567] ? _copy_from_user (arch/x86/include/asm/uaccess_64.h:46 arch/x86/include/asm/uaccess_64.h:52 lib/usercopy.c:16) 
[ 85.995881][ T4567] ? netlink_realloc_groups (net/netlink/af_netlink.c:1619) 
[ 86.001285][ T4567] ? __fget_light (arch/x86/include/asm/atomic.h:29 include/linux/atomic/atomic-instrumented.h:28 fs/file.c:1003) 
[ 86.005746][ T4567] __sys_sendmsg (include/linux/file.h:32 net/socket.c:2498) 
[ 86.010113][ T4567] ? __sys_sendmsg_sock (net/socket.c:2484) 
[ 86.014991][ T4567] ? ksys_write (fs/read_write.c:633) 
[ 86.019173][ T4567] do_syscall_64 (arch/x86/entry/common.c:50 arch/x86/entry/common.c:80) 
[ 86.023441][ T4567] entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:113) 
[   86.029187][ T4567] RIP: 0033:0x7fb789edb914
[ 86.033455][ T4567] Code: 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b5 0f 1f 80 00 00 00 00 48 8d 05 e9 5d 0c 00 8b 00 85 c0 75 13 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 41 54 41 89 d4 55 48 89 f5 53
All code
========
   0:	00 f7                	add    %dh,%bh
   2:	d8 64 89 02          	fsubs  0x2(%rcx,%rcx,4)
   6:	48 c7 c0 ff ff ff ff 	mov    $0xffffffffffffffff,%rax
   d:	eb b5                	jmp    0xffffffffffffffc4
   f:	0f 1f 80 00 00 00 00 	nopl   0x0(%rax)
  16:	48 8d 05 e9 5d 0c 00 	lea    0xc5de9(%rip),%rax        # 0xc5e06
  1d:	8b 00                	mov    (%rax),%eax
  1f:	85 c0                	test   %eax,%eax
  21:	75 13                	jne    0x36
  23:	b8 2e 00 00 00       	mov    $0x2e,%eax
  28:	0f 05                	syscall 
  2a:*	48 3d 00 f0 ff ff    	cmp    $0xfffffffffffff000,%rax		<-- trapping instruction
  30:	77 54                	ja     0x86
  32:	c3                   	retq   
  33:	0f 1f 00             	nopl   (%rax)
  36:	41 54                	push   %r12
  38:	41 89 d4             	mov    %edx,%r12d
  3b:	55                   	push   %rbp
  3c:	48 89 f5             	mov    %rsi,%rbp
  3f:	53                   	push   %rbx

Code starting with the faulting instruction
===========================================
   0:	48 3d 00 f0 ff ff    	cmp    $0xfffffffffffff000,%rax
   6:	77 54                	ja     0x5c
   8:	c3                   	retq   
   9:	0f 1f 00             	nopl   (%rax)
   c:	41 54                	push   %r12
   e:	41 89 d4             	mov    %edx,%r12d
  11:	55                   	push   %rbp
  12:	48 89 f5             	mov    %rsi,%rbp
  15:	53                   	push   %rbx
[   86.052929][ T4567] RSP: 002b:00007ffc9c366c28 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[   86.061208][ T4567] RAX: ffffffffffffffda RBX: 000055d4d0401ef0 RCX: 00007fb789edb914
[   86.069047][ T4567] RDX: 0000000000000000 RSI: 00007ffc9c366c60 RDI: 0000000000000007
[   86.076881][ T4567] RBP: 000055d4d0444240 R08: 0000000000000004 R09: 00007fb789f9d230
[   86.084708][ T4567] R10: 00007ffc9c366d4c R11: 0000000000000246 R12: 000055d4d0401e00
[   86.092537][ T4567] R13: 00007ffc9c366c60 R14: 0000000000000000 R15: 00007ffc9c366d4c
[   86.100374][ T4567]  </TASK>
[   86.103449][ T4567] wlan0: bad VHT capabilities, disabling VHT
[   86.109369][ T4567] ieee80211 phy0: mac80211_hwsim_config (freq=2412(2412 - 0)/noht idle=0 ps=0 smps=static)
[   86.119204][ T4567] ieee80211 phy0: mac80211_hwsim_config (freq=5180(5180 - 0)/ht20 idle=0 ps=0 smps=off)
[   86.128807][ T4567] ieee80211 phy0: mac80211_hwsim_bss_info_changed(changed=0x40000 vif->addr=02:00:00:00:00:00)
[   86.138990][ T4567] ieee80211 phy0:   TX Power: 23 dBm
[   86.144135][ T4567] ieee80211 phy0: mac80211_hwsim_bss_info_changed(changed=0x4000 vif->addr=02:00:00:00:00:00)
[   86.154247][ T4567] ieee80211 phy0: mac80211_hwsim_config (freq=5180(5180 - 0)/ht20 idle=0 ps=0 smps=static)
[   86.164082][ T4567] ieee80211 phy0: mac80211_hwsim_bss_info_changed(changed=0xe0 vif->addr=02:00:00:00:00:00)
[   86.174000][ T4567] ieee80211 phy0: mac80211_hwsim_bss_info_changed: BSSID changed: 02:00:00:00:03:00
[   86.183227][ T4567] ieee80211 phy0:   BASIC_RATES: 0x15
[   86.188781][ T4567] wlan0: send auth to 02:00:00:00:03:00 (try 1/3)
[   86.195864][    T7] wlan0: authenticated
[   86.200274][ T4567] wlan0: VHT capa missing/short, disabling VHT/HE
[   86.207400][    T7] wlan0: associate with 02:00:00:00:03:00 (try 1/3)
[   86.214392][    T7] wlan0: RX AssocResp from 02:00:00:00:03:00 (capab=0x11 status=0 aid=1)
[   86.222734][    T7] ieee80211 phy0: mac80211_hwsim_conf_tx (queue=0 txop=47 cw_min=3 cw_max=7 aifs=2)
[   86.231970][    T7] ieee80211 phy0: mac80211_hwsim_conf_tx (queue=1 txop=94 cw_min=7 cw_max=15 aifs=2)
[   86.241310][    T7] ieee80211 phy0: mac80211_hwsim_conf_tx (queue=2 txop=0 cw_min=15 cw_max=1023 aifs=3)
[   86.250799][    T7] ieee80211 phy0: mac80211_hwsim_conf_tx (queue=3 txop=0 cw_min=15 cw_max=1023 aifs=7)
[   86.260301][    T7] ieee80211 phy0: mac80211_hwsim_bss_info_changed(changed=0x1002009 vif->addr=02:00:00:00:00:00)
[   86.270655][    T7] ieee80211 phy0:   ASSOC: assoc=1 aid=1
[   86.276157][    T7] ieee80211 phy0:   ERP_SLOT: 1
[   86.280976][    T7] ieee80211 phy0: mac80211_hwsim_config (freq=5180(5180 - 0)/ht20 idle=0 ps=0 smps=off)
[   86.290669][    T7] wlan0: associated
[   86.294638][    T7] ieee80211 phy0: mac80211_hwsim_bss_info_changed(changed=0x100000 vif->addr=02:00:00:00:00:00)
[   86.316142][ T4567] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   86.323442][    T7] ieee80211 phy0: mac80211_hwsim_configure_filter
[   86.359867][   T33] wlan0: deauthenticated from 02:00:00:00:03:00 (Reason: 3=DEAUTH_LEAVING)
[   86.386723][ T4566] ieee80211 phy3: mac80211_hwsim_bss_info_changed(changed=0x200 vif->addr=02:00:00:00:03:00)
[   86.396736][ T4566] ieee80211 phy3:   BCN EN: 0 (BI=100)
[   86.397785][   T33] ieee80211 phy0: mac80211_hwsim_bss_info_changed(changed=0x80209f vif->addr=02:00:00:00:00:00)
[   86.402070][ T4566] ieee80211 phy3:   beaconing vifs remaining: 0
[   86.402623][ T4566] ieee80211 phy3: mac80211_hwsim_bss_info_changed(changed=0x4000 vif->addr=02:00:00:00:03:00)
[   86.412406][   T33] ieee80211 phy0: mac80211_hwsim_bss_info_changed: BSSID changed: 00:00:00:00:00:00
[   86.412409][   T33] ieee80211 phy0:   ASSOC: assoc=0 aid=1
[   86.412411][   T33] ieee80211 phy0:   ERP_CTS_PROT: 0
[   86.412413][   T33] ieee80211 phy0:   ERP_PREAMBLE: 0
[   86.418525][ T4566] ieee80211 phy3: mac80211_hwsim_config (freq=5180(5180 - 0)/noht idle=0 ps=0 smps=static)
[   86.428612][   T33] ieee80211 phy0:   ERP_SLOT: 0
[   86.428614][   T33] ieee80211 phy0:   HT: op_mode=0x0


To reproduce:

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        sudo bin/lkp install job.yaml           # job file is attached in this email
        bin/lkp split-job --compatible job.yaml # generate the yaml file for lkp run
        sudo bin/lkp run generated-yaml-file

        # if come across any failure that blocks the test,
        # please remove ~/.lkp and /lkp dir to run from a clean state.



-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



View attachment "config-5.17.0-rc5-00225-g96e8c9671b15" of type "text/plain" (165722 bytes)

View attachment "job-script" of type "text/plain" (5638 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (212476 bytes)

View attachment "hwsim" of type "text/plain" (57008 bytes)

View attachment "job.yaml" of type "text/plain" (4548 bytes)

View attachment "reproduce" of type "text/plain" (3938 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ