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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Mon, 19 Sep 2016 09:39:28 +0800
From:   kernel test robot <xiaolong.ye@...el.com>
To:     Yijing Wang <wangyijing@...wei.com>
Cc:     jejb@...ux.vnet.ibm.com, martin.petersen@...cle.com,
        Hannes Reinecke <hare@...e.de>, Tejun Heo <tj@...nel.org>,
        Qilin Chen <chenqilin2@...wei.com>,
        Yijing Wang <wangyijing@...wei.com>,
        Wei Fang <fangwei1@...wei.com>,
        Yousong He <heyousong@...wei.com>, linux-scsi@...r.kernel.org,
        linux-kernel@...r.kernel.org, lkp@...org
Subject: [lkp] [libsas]  7fdf3b79f2: BUG: sleeping function called from
 invalid context at mm/slab.h:393


FYI, we noticed the following commit:

https://github.com/0day-ci/linux Yijing-Wang/libsas-Alloc-dynamic-work-to-avoid-missing-sas-events/20160913-102822
commit 7fdf3b79f2d88bee5be57d80b55c003cef48e841 ("libsas: Alloc dynamic work to avoid missing sas events")

in testcase: will-it-scale
with following parameters:

	test: lock1
	cpufreq_governor: performance


Will It Scale takes a testcase and runs it from 1 through to n parallel copies to see if the testcase will scale. It builds both a process and threads based test in order to see any differences between the two.


on test machine: 64 threads Intel(R) Xeon(R) CPU E5-4650 0 @ 2.70GHz with 64G memory

caused below changes:


+------------------------------------------------------------------+------------+------------+
|                                                                  | 237870b337 | 7fdf3b79f2 |
+------------------------------------------------------------------+------------+------------+
| boot_successes                                                   | 0          | 2          |
| boot_failures                                                    | 3          | 10         |
| BUG:kernel_reboot-without-warning_in_test_stage                  | 3          |            |
| BUG:sleeping_function_called_from_invalid_context_at_mm/slab.h   | 0          | 8          |
| 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          |
+------------------------------------------------------------------+------------+------------+




         Starting watchdog daemon...
         Starting Update UTMP about System Runlevel Changes...
[   24.750994] BUG: sleeping function called from invalid context at mm/slab.h:393
[   24.760818] in_atomic(): 1, irqs_disabled(): 1, pid: 0, name: swapper/0
[   24.768265] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.8.0-rc1-00124-g7fdf3b7 #1
[   24.776689] Hardware name: Intel Corporation LH Pass/S4600LH...., BIOS SE5C600.86B.99.02.1047.032320122259 03/23/2012
[   24.788630]  0000000000000000 ffff88042f603c38 ffffffff8144bb59 ffffffff81e0d4c0
[   24.796996]  0000000000000189 ffff88042f603c50 ffffffff810a49f4 ffffffff81cb8b20
[   24.805359]  ffff88042f603c78 ffffffff810a4a89 00000000024080c0 00000000024080c0
[   24.813731] Call Trace:
[   24.816485]  <IRQ>  [<ffffffff8144bb59>] dump_stack+0x63/0x8a
[   24.822992]  [<ffffffff810a49f4>] ___might_sleep+0xd4/0x120
[   24.829253]  [<ffffffff810a4a89>] __might_sleep+0x49/0x80
[   24.835329]  [<ffffffff811e686e>] kmem_cache_alloc_trace+0x15e/0x1b0
[   24.842507]  [<ffffffffa0053cd5>] notify_port_event+0x35/0x90 [libsas]
[   24.849878]  [<ffffffffa01957c3>] sci_port_activate_phy+0xf3/0x1d0 [isci]
[   24.857515]  [<ffffffffa01958ed>] sci_port_general_link_up_handler+0x4d/0xa0 [isci]
[   24.866131]  [<ffffffffa0195f8c>] sci_port_add_phy+0xec/0x1d0 [isci]
[   24.873279]  [<ffffffffa019d3b3>] apc_agent_timeout+0x193/0x2f0 [isci]
[   24.880645]  [<ffffffffa019d220>] ? sci_apc_agent_link_down+0x70/0x70 [isci]
[   24.888577]  [<ffffffff810ebb75>] call_timer_fn+0x35/0x130
[   24.894739]  [<ffffffff810ec332>] run_timer_softirq+0x222/0x4e0
[   24.901399]  [<ffffffff810f4681>] ? ktime_get+0x41/0xb0
[   24.907283]  [<ffffffff810522a9>] ? lapic_next_deadline+0x29/0x30
[   24.914133]  [<ffffffff819316fd>] __do_softirq+0x10d/0x2b7
[   24.920315]  [<ffffffff810844da>] irq_exit+0xda/0xe0
[   24.925891]  [<ffffffff819314f2>] smp_apic_timer_interrupt+0x42/0x50
[   24.933026]  [<ffffffff8192f61c>] apic_timer_interrupt+0x8c/0xa0
[   24.939778]  <EOI>  [<ffffffff817980cf>] ? cpuidle_enter_state+0x11f/0x2e0
[   24.947528]  [<ffffffff817982c7>] cpuidle_enter+0x17/0x20
[   24.953607]  [<ffffffff810c2b1a>] call_cpuidle+0x2a/0x50
[   24.959565]  [<ffffffff810c2ecc>] cpu_startup_entry+0x26c/0x310
[   24.966221]  [<ffffffff819211a5>] rest_init+0x85/0x90
[   24.971910]  [<ffffffff81ff5f61>] start_kernel+0x407/0x414
[   24.978071]  [<ffffffff81ff5120>] ? early_idt_handler_array+0x120/0x120
[   24.985498]  [<ffffffff81ff52db>] x86_64_start_reservations+0x2f/0x31
[   24.992737]  [<ffffffff81ff541a>] x86_64_start_kernel+0x13d/0x14c
[   24.999800] sas: phy-2:2 added to port-2:0, phy_mask:0x4 (  1e672b58920008)
[   25.007780] sas: phy-2:3 added to port-2:1, phy_mask:0x8 (5000c5004badfb25)
[   25.015673] sas: DOING DISCOVERY on port 0, pid:668


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,
Xiaolong

View attachment "config-4.8.0-rc1-00124-g7fdf3b7" of type "text/plain" (152649 bytes)

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

Download attachment "dmesg.xz" of type "application/octet-stream" (26308 bytes)

View attachment "will-it-scale" of type "text/plain" (425 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ