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>] [day] [month] [year] [list]
Message-ID: <20171207013349.GI21779@yexl-desktop>
Date:   Thu, 7 Dec 2017 09:33:49 +0800
From:   kernel test robot <xiaolong.ye@...el.com>
To:     Johannes Weiner <hannes@...xchg.org>
Cc:     Stephen Rothwell <sfr@...b.auug.org.au>,
        Vladimir Davydov <vdavydov.dev@...il.com>,
        Michal Hocko <mhocko@...e.com>,
        Andrew Morton <akpm@...ux-foundation.org>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...org
Subject: [lkp-robot] [mm]  e4ec2a8ea9:
 BUG:using__this_cpu_xchg()in_preemptible[#]code:swapper


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

commit: e4ec2a8ea9d7367ce01e51ec2185d8dac17c92ef ("mm: memcontrol: fix excessive complexity in memory.stat reporting")
https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git master

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -smp 2 -m 512M

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+---------------------------------------------------------+------------+------------+
|                                                         | 97e1713fa8 | e4ec2a8ea9 |
+---------------------------------------------------------+------------+------------+
| boot_successes                                          | 0          | 0          |
| boot_failures                                           | 12         | 12         |
| WARNING:possible_circular_locking_dependency_detected   | 12         | 12         |
| BUG:using__this_cpu_xchg()in_preemptible[#]code:swapper | 0          | 8          |
+---------------------------------------------------------+------------+------------+



[   17.911222] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   17.912449] caller is memcg_hotplug_cpu_dead+0x56/0x1a0
[   17.913258] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   17.914410] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   17.915680] Call Trace:
[   17.916080]  dump_stack+0x85/0xc7
[   17.916597]  check_preemption_disabled+0xeb/0x110
[   17.917323]  memcg_hotplug_cpu_dead+0x56/0x1a0
[   17.918062]  _cpu_down+0xe6/0x1d0
[   17.918578]  ? do_early_param+0x88/0x88
[   17.919177]  do_cpu_down+0x34/0x60
[   17.919703]  _debug_hotplug_cpu+0x45/0xd0
[   17.920327]  ? early_platform_quirks+0x3c/0x3c
[   17.921013]  debug_hotplug_cpu+0x9/0xc
[   17.921591]  do_one_initcall+0x8e/0x160
[   17.922186]  kernel_init_freeable+0x11f/0x1b4
[   17.922853]  ? rest_init+0x230/0x230
[   17.923409]  kernel_init+0x5/0xf0
[   17.923926]  ret_from_fork+0x24/0x30
[   17.924521] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   17.925700] caller is memcg_hotplug_cpu_dead+0xcb/0x1a0
[   17.926502] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   17.927649] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   17.928918] Call Trace:
[   17.929306]  dump_stack+0x85/0xc7
[   17.929819]  check_preemption_disabled+0xeb/0x110
[   17.930546]  memcg_hotplug_cpu_dead+0xcb/0x1a0
[   17.941539]  _cpu_down+0xe6/0x1d0
[   17.942062]  ? do_early_param+0x88/0x88
[   17.942651]  do_cpu_down+0x34/0x60
[   17.943184]  _debug_hotplug_cpu+0x45/0xd0
[   17.943797]  ? early_platform_quirks+0x3c/0x3c
[   17.944480]  debug_hotplug_cpu+0x9/0xc
[   17.945065]  do_one_initcall+0x8e/0x160
[   17.945655]  kernel_init_freeable+0x11f/0x1b4
[   17.946328]  ? rest_init+0x230/0x230
[   17.946877]  kernel_init+0x5/0xf0
[   17.947396]  ret_from_fork+0x24/0x30
[   17.947990] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   17.949185] caller is memcg_hotplug_cpu_dead+0x56/0x1a0
[   17.949995] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   17.951144] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   17.952405] Call Trace:
[   17.952791]  dump_stack+0x85/0xc7
[   17.953309]  check_preemption_disabled+0xeb/0x110
[   17.966379]  memcg_hotplug_cpu_dead+0x56/0x1a0
[   17.967072]  _cpu_down+0xe6/0x1d0
[   17.967589]  ? do_early_param+0x88/0x88
[   17.968185]  do_cpu_down+0x34/0x60
[   17.968712]  _debug_hotplug_cpu+0x45/0xd0
[   17.972627]  ? early_platform_quirks+0x3c/0x3c
[   17.974596]  debug_hotplug_cpu+0x9/0xc
[   17.975182]  do_one_initcall+0x8e/0x160
[   17.975773]  kernel_init_freeable+0x11f/0x1b4
[   17.976448]  ? rest_init+0x230/0x230
[   17.979287]  kernel_init+0x5/0xf0
[   17.979802]  ret_from_fork+0x24/0x30
[   17.980394] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   17.981580] caller is memcg_hotplug_cpu_dead+0xcb/0x1a0
[   17.982385] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   17.983536] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   17.984797] Call Trace:
[   17.985188]  dump_stack+0x85/0xc7
[   17.985699]  check_preemption_disabled+0xeb/0x110
[   17.986421]  memcg_hotplug_cpu_dead+0xcb/0x1a0
[   17.987103]  _cpu_down+0xe6/0x1d0
[   17.987614]  ? do_early_param+0x88/0x88
[   17.988208]  do_cpu_down+0x34/0x60
[   17.988732]  _debug_hotplug_cpu+0x45/0xd0
[   17.989351]  ? early_platform_quirks+0x3c/0x3c
[   17.990031]  debug_hotplug_cpu+0x9/0xc
[   17.990605]  do_one_initcall+0x8e/0x160
[   17.991197]  kernel_init_freeable+0x11f/0x1b4
[   17.991860]  ? rest_init+0x230/0x230
[   18.005417]  kernel_init+0x5/0xf0
[   18.005869]  ret_from_fork+0x24/0x30
[   18.006414] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   18.007490] caller is memcg_hotplug_cpu_dead+0x56/0x1a0
[   18.008234] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   18.009285] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   18.010431] Call Trace:
[   18.010775]  dump_stack+0x85/0xc7
[   18.011261]  check_preemption_disabled+0xeb/0x110
[   18.011898]  memcg_hotplug_cpu_dead+0x56/0x1a0
[   18.012533]  _cpu_down+0xe6/0x1d0
[   18.012996]  ? do_early_param+0x88/0x88
[   18.013543]  do_cpu_down+0x34/0x60
[   18.014020]  _debug_hotplug_cpu+0x45/0xd0
[   18.014589]  ? early_platform_quirks+0x3c/0x3c
[   18.015208]  debug_hotplug_cpu+0x9/0xc
[   18.015730]  do_one_initcall+0x8e/0x160
[   18.016284]  kernel_init_freeable+0x11f/0x1b4
[   18.016870]  ? rest_init+0x230/0x230
[   18.017387]  kernel_init+0x5/0xf0
[   18.017838]  ret_from_fork+0x24/0x30
[   18.031407] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   18.032495] caller is memcg_hotplug_cpu_dead+0xcb/0x1a0
[   18.033230] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   18.034280] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   18.035417] Call Trace:
[   18.035761]  dump_stack+0x85/0xc7
[   18.036245]  check_preemption_disabled+0xeb/0x110
[   18.036885]  memcg_hotplug_cpu_dead+0xcb/0x1a0
[   18.037515]  _cpu_down+0xe6/0x1d0
[   18.037974]  ? do_early_param+0x88/0x88
[   18.038517]  do_cpu_down+0x34/0x60
[   18.039644]  _debug_hotplug_cpu+0x45/0xd0
[   18.040209]  ? early_platform_quirks+0x3c/0x3c
[   18.040819]  debug_hotplug_cpu+0x9/0xc
[   18.041361]  do_one_initcall+0x8e/0x160
[   18.041882]  kernel_init_freeable+0x11f/0x1b4
[   18.042503]  ? rest_init+0x230/0x230
[   18.042992]  kernel_init+0x5/0xf0
[   18.043468]  ret_from_fork+0x24/0x30
[   18.057008] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   18.058087] caller is memcg_hotplug_cpu_dead+0x56/0x1a0
[   18.058825] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   18.059872] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   18.061021] Call Trace:
[   18.061386]  dump_stack+0x85/0xc7
[   18.061840]  check_preemption_disabled+0xeb/0x110
[   18.062507]  memcg_hotplug_cpu_dead+0x56/0x1a0
[   18.063114]  _cpu_down+0xe6/0x1d0
[   18.063589]  ? do_early_param+0x88/0x88
[   18.064115]  do_cpu_down+0x34/0x60
[   18.064604]  _debug_hotplug_cpu+0x45/0xd0
[   18.065158]  ? early_platform_quirks+0x3c/0x3c
[   18.065782]  debug_hotplug_cpu+0x9/0xc
[   18.066325]  do_one_initcall+0x8e/0x160
[   18.066846]  kernel_init_freeable+0x11f/0x1b4
[   18.067465]  ? rest_init+0x230/0x230
[   18.067959]  kernel_init+0x5/0xf0
[   18.068434]  ret_from_fork+0x24/0x30
[   18.068941] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   18.083050] caller is memcg_hotplug_cpu_dead+0xcb/0x1a0
[   18.083785] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   18.084826] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   18.085973] Call Trace:
[   18.086339]  dump_stack+0x85/0xc7
[   18.086790]  check_preemption_disabled+0xeb/0x110
[   18.087458]  memcg_hotplug_cpu_dead+0xcb/0x1a0
[   18.088066]  _cpu_down+0xe6/0x1d0
[   18.088543]  ? do_early_param+0x88/0x88
[   18.089072]  do_cpu_down+0x34/0x60
[   18.089561]  _debug_hotplug_cpu+0x45/0xd0
[   18.090111]  ? early_platform_quirks+0x3c/0x3c
[   18.090734]  debug_hotplug_cpu+0x9/0xc
[   18.091275]  do_one_initcall+0x8e/0x160
[   18.091799]  kernel_init_freeable+0x11f/0x1b4
[   18.092418]  ? rest_init+0x230/0x230
[   18.092913]  kernel_init+0x5/0xf0
[   18.093392]  ret_from_fork+0x24/0x30
[   18.093897] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   18.094970] caller is memcg_hotplug_cpu_dead+0x56/0x1a0
[   18.095700] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   18.109753] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   18.110888] Call Trace:
[   18.111257]  dump_stack+0x85/0xc7
[   18.111714]  check_preemption_disabled+0xeb/0x110
[   18.112379]  memcg_hotplug_cpu_dead+0x56/0x1a0
[   18.112985]  _cpu_down+0xe6/0x1d0
[   18.113463]  ? do_early_param+0x88/0x88
[   18.113991]  do_cpu_down+0x34/0x60
[   18.114480]  _debug_hotplug_cpu+0x45/0xd0
[   18.115028]  ? early_platform_quirks+0x3c/0x3c
[   18.115654]  debug_hotplug_cpu+0x9/0xc
[   18.116172]  do_one_initcall+0x8e/0x160
[   18.116749]  kernel_init_freeable+0x11f/0x1b4
[   18.117411]  ? rest_init+0x230/0x230
[   18.117945]  kernel_init+0x5/0xf0
[   18.118456]  ret_from_fork+0x24/0x30
[   18.119010] BUG: using __this_cpu_xchg() in preemptible [00000000] code: swapper/0/1
[   18.120137] caller is memcg_hotplug_cpu_dead+0xcb/0x1a0
[   18.120924] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.15.0-rc1-00094-ge4ec2a8 #2
[   18.135045] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014
[   18.136237] Call Trace:
[   18.136590]  dump_stack+0x85/0xc7
[   18.137048]  check_preemption_disabled+0xeb/0x110
[   18.137735]  memcg_hotplug_cpu_dead+0xcb/0x1a0
[   18.138369]  _cpu_down+0xe6/0x1d0
[   18.138824]  ? do_early_param+0x88/0x88
[   18.139378]  do_cpu_down+0x34/0x60
[   18.139845]  _debug_hotplug_cpu+0x45/0xd0
[   18.140420]  ? early_platform_quirks+0x3c/0x3c
[   18.141026]  debug_hotplug_cpu+0x9/0xc
[   18.141560]  do_one_initcall+0x8e/0x160
[   18.142085]  kernel_init_freeable+0x11f/0x1b4
[   18.142699]  ? rest_init+0x230/0x230
[   18.143205]  kernel_init+0x5/0xf0
[   18.143669]  ret_from_fork+0x24/0x30


To reproduce:

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

View attachment "config-4.15.0-rc1-00094-ge4ec2a8" of type "text/plain" (97353 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ