WARNING: CPU: 2 PID: 7 at kernel/workqueue.c:2041 process_one_work

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

WARNING: CPU: 2 PID: 7 at kernel/workqueue.c:2041 process_one_work

Abdul Haleem
Hi,

Test : stress-ng
Machine : Power 8 Bare Metal
Kernel : 4.12.0-rc3
Config : attached
gcc version: 4.8.5


In file kernel/workqueue.c at line 2041

    /* ensure we're on the correct CPU */
    WARN_ON_ONCE(!(pool->flags & POOL_DISASSOCIATED) &&
             raw_smp_processor_id() != pool->cpu);


WARN_ON_ONCE() is being triggered on Linus mainline kernel (4.12.0-rc3)
when running stress-ng test.


request_module: runaway loop modprobe net-pf-10
request_module: runaway loop modprobe net-pf-10
hrtimer: interrupt took 500359 ns
RT Watchdog Timeout (hard): stress-ng-rlimi[80236]

------------[ cut here ]------------
WARNING: CPU: 2 PID: 7 at kernel/workqueue.c:2041 process_one_work
+0x7c/0x450
Modules linked in: ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat
nf_nat_ipv4 nf_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack
nf_conntrack ipt_REJECT nf_reject_ipv4 xt_tcpudp tun bridge stp llc
kvm_hv kvm iptable_filter vmx_crypto powernv_op_panel leds_powernv
led_class powernv_rng rng_core nfsd binfmt_misc ip_tables x_tables
autofs4 [last unloaded: iptable_mangle]
CPU: 2 PID: 7 Comm: mm_percpu_wq Not tainted 4.12.0-rc3-autotest #1
task: c0000007d822a500 task.stack: c0000007d8230000
NIP: c0000000016b8f3c LR: c0000000016b9990 CTR: c0000000016eb650
REGS: c0000007d8233a20 TRAP: 0700   Not tainted  (4.12.0-rc3-autotest)
MSR: 9000000000029033 <SF,HV,EE,ME,IR,DR,RI,LE>
  CR: 24000028  XER: 20000000  
CFAR: c0000000016b998c SOFTE: 0
GPR00: c0000000016b9990 c0000007d8233ca0 c00000000268b100
c0000007d81fe300
GPR04: c0000007de9135a8 c0000007d8233d50 c0000007de915fa8
0000000000000000
GPR08: 0000000000000001 0000000000000034 0000000000000002
c0000007ddc96928
GPR12: 0000000000000000 c00000000fd40b00 c0000000016c0ab8
c0000007dc0aae00
GPR16: 0000000000000000 0000000000000000 0000000000000000
0000000000000000
GPR20: 0000000000000001 0000000000000000 c000000fda160898
0000000000000000
GPR24: c000000fda160800 c000000002546280 c0000007de919400
c0000007de919400
GPR28: 0000000000000000 c0000007de915f80 c0000007d81fe300
c0000007de9135a8
NIP [c0000000016b8f3c] process_one_work+0x7c/0x450
LR [c0000000016b9990] rescuer_thread+0x1f0/0x390
Call Trace:
[c0000007d8233ca0] [0000000000000001] 0x1 (unreliable)
[c0000007d8233d30] [c0000000016b9990] rescuer_thread+0x1f0/0x390
[c0000007d8233dc0] [c0000000016c0c10] kthread+0x160/0x1a0
[c0000007d8233e30] [c0000000015cbb60] ret_from_kernel_thread+0x5c/0x7c
Instruction dump:
793b05e4 ebbe0048 e93b0008 815d0024 83890100 7949f7e3 7b9cdfe2 40820018
a14d0008 813d0018 7f8a4800 419e0008 <0fe00000> 7fe4fb78 7fa3eb78
4bffb719
---[ end trace 6c4b345213cca6e3 ]---
ptm ptm128: ldisc open failed (-12), clearing slot 128
ptm ptm32: ldisc open failed (-12), clearing slot 32
ptm ptm753: ldisc open failed (-12), clearing slot 753


stress-ng source : https://github.com/ColinIanKing/stress-ng

--
Regard's

Abdul Haleem
IBM Linux Technology Centre



Tul-NV-config (87K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: WARNING: CPU: 2 PID: 7 at kernel/workqueue.c:2041 process_one_work

Tejun Heo-3
On Tue, May 30, 2017 at 01:24:06PM +0530, Abdul Haleem wrote:

> Hi,
>
> Test : stress-ng
> Machine : Power 8 Bare Metal
> Kernel : 4.12.0-rc3
> Config : attached
> gcc version: 4.8.5
>
>
> In file kernel/workqueue.c at line 2041
>
>     /* ensure we're on the correct CPU */
>     WARN_ON_ONCE(!(pool->flags & POOL_DISASSOCIATED) &&
>              raw_smp_processor_id() != pool->cpu);
>
>
> WARN_ON_ONCE() is being triggered on Linus mainline kernel (4.12.0-rc3)
> when running stress-ng test.
>
>
> request_module: runaway loop modprobe net-pf-10
> request_module: runaway loop modprobe net-pf-10
> hrtimer: interrupt took 500359 ns
> RT Watchdog Timeout (hard): stress-ng-rlimi[80236]

Paul and Steven reported the same problem a while back.  Debugging on
the following thread.

 http://lkml.kernel.org/r/<[hidden email]>

Thanks.

--
tejun