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>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20200528085253.GW12456@shao2-debian>
Date:   Thu, 28 May 2020 16:52:53 +0800
From:   kernel test robot <rong.a.chen@...el.com>
To:     Qais Yousef <qais.yousef@....com>
Cc:     Ingo Molnar <mingo@...hat.com>,
        Peter Zijlstra <peterz@...radead.org>,
        Qais Yousef <qais.yousef@....com>,
        Juri Lelli <juri.lelli@...hat.com>,
        Vincent Guittot <vincent.guittot@...aro.org>,
        Dietmar Eggemann <dietmar.eggemann@....com>,
        Steven Rostedt <rostedt@...dmis.org>,
        Ben Segall <bsegall@...gle.com>, Mel Gorman <mgorman@...e.de>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Thomas Gleixner <tglx@...utronix.de>,
        Yury Norov <yury.norov@...il.com>,
        Paul Turner <pjt@...gle.com>,
        Alexey Dobriyan <adobriyan@...il.com>,
        Josh Don <joshdon@...gle.com>,
        Pavan Kondeti <pkondeti@...eaurora.org>,
        linux-kernel@...r.kernel.org, lkp@...ts.01.org
Subject: [cpumask] a7934287d8:
 BUG:using__this_cpu_read()in_preemptible[#]code:kworker

Greeting,

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

commit: a7934287d8a6c43811fca8ddf421b3b6091564f2 ("[PATCH 2/4] cpumask: Make cpumask_any() truly random")
url: https://github.com/0day-ci/linux/commits/Qais-Yousef/sched-rt-Distribute-tasks-in-find_lowest_rq/20200415-040515


in testcase: locktorture
with following parameters:

	runtime: 300s
	test: cpuhotplug

test-description: This torture test consists of creating a number of kernel threads which acquire the lock and hold it for specific amount of time, thus simulating different critical region behaviors.
test-url: https://www.kernel.org/doc/Documentation/locking/locktorture.txt


on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 8G

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


+----------------------------------------------------------+------------+------------+
|                                                          | bb4424cb99 | a7934287d8 |
+----------------------------------------------------------+------------+------------+
| boot_successes                                           | 8          | 0          |
| boot_failures                                            | 0          | 8          |
| BUG:using__this_cpu_read()in_preemptible[#]code:kworker  | 0          | 8          |
| BUG:using__this_cpu_write()in_preemptible[#]code:kworker | 0          | 8          |
+----------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <rong.a.chen@...el.com>


[   69.501074] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/0:1/12
[   69.505571] caller is cpumask_any+0x14/0x70
[   69.508332] CPU: 1 PID: 12 Comm: kworker/0:1 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   69.512218] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   69.516270] Workqueue: events cpuset_hotplug_workfn
[   69.519114] Call Trace:
[   69.521394]  dump_stack+0x8f/0xcb
[   69.524026]  __this_cpu_preempt_check+0xaf/0xc0
[   69.526886]  cpumask_any+0x14/0x70
[   69.529265]  partition_sched_domains_locked+0x152/0x500
[   69.532200]  rebuild_sched_domains_locked+0x5a1/0xba0
[   69.535164]  ? down_write+0x38/0x70
[   69.537489]  ? cpumask_next+0x17/0x20
[   69.539929]  ? percpu_down_write+0xa3/0x100
[   69.542643]  rebuild_sched_domains+0x1b/0x30
[   69.545257]  cpuset_hotplug_workfn+0x74e/0x1310
[   69.547867]  ? process_one_work+0x1be/0x5f0
[   69.550317]  process_one_work+0x23e/0x5f0
[   69.552855]  ? worker_thread+0xce/0x390
[   69.555291]  worker_thread+0x3c/0x390
[   69.557624]  ? process_one_work+0x5f0/0x5f0
[   69.560003]  kthread+0x145/0x170
[   69.562255]  ? kthread_park+0x90/0x90
[   69.564666]  ret_from_fork+0x3a/0x50
[   69.567057] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/0:1/12
[   69.570605] caller is cpumask_any+0x4d/0x70
[   69.573025] CPU: 1 PID: 12 Comm: kworker/0:1 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   69.576279] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   69.579764] Workqueue: events cpuset_hotplug_workfn
[   69.582268] Call Trace:
[   69.584206]  dump_stack+0x8f/0xcb
[   69.586294]  __this_cpu_preempt_check+0xaf/0xc0
[   69.588763]  cpumask_any+0x4d/0x70
[   69.591035]  partition_sched_domains_locked+0x152/0x500
[   69.593763]  rebuild_sched_domains_locked+0x5a1/0xba0
[   69.596343]  ? down_write+0x38/0x70
[   69.598635]  ? cpumask_next+0x17/0x20
[   69.600800]  ? percpu_down_write+0xa3/0x100
[   69.603283]  rebuild_sched_domains+0x1b/0x30
[   69.605590]  cpuset_hotplug_workfn+0x74e/0x1310
[   69.608078]  ? process_one_work+0x1be/0x5f0
[   69.610607]  process_one_work+0x23e/0x5f0
[   69.613089]  ? worker_thread+0xce/0x390
[   69.615435]  worker_thread+0x3c/0x390
[   69.617739]  ? process_one_work+0x5f0/0x5f0
[   69.620199]  kthread+0x145/0x170
[   69.622269]  ? kthread_park+0x90/0x90
[   69.624534]  ret_from_fork+0x3a/0x50
[   72.608226] smpboot: Booting Node 0 Processor 0 APIC 0x0
[   72.623234] kvm-clock: cpu 0, msr 23b401001, secondary cpu clock
[   72.623294] masked ExtINT on CPU#0
[   72.655688] KVM setup async PF for cpu 0
[   72.658605] kvm-stealtime: cpu 0, msr 23fc30040
[   75.728553] Unregister pv shared memory for cpu 1
[   75.741355] smpboot: CPU 1 is now offline
[   75.749031] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/1:1/32
[   75.753000] caller is cpumask_any+0x14/0x70
[   75.755574] CPU: 0 PID: 32 Comm: kworker/1:1 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   75.758960] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   75.762748] Workqueue: events cpuset_hotplug_workfn
[   75.765380] Call Trace:
[   75.767570]  dump_stack+0x8f/0xcb
[   75.769807]  __this_cpu_preempt_check+0xaf/0xc0
[   75.772365]  cpumask_any+0x14/0x70
[   75.774705]  partition_sched_domains_locked+0x152/0x500
[   75.777399]  rebuild_sched_domains_locked+0x5a1/0xba0
[   75.779940]  ? down_write+0x38/0x70
[   75.782189]  ? cpumask_next+0x17/0x20
[   75.784537]  ? percpu_down_write+0xa3/0x100
[   75.787181]  rebuild_sched_domains+0x1b/0x30
[   75.789560]  cpuset_hotplug_workfn+0x74e/0x1310
[   75.791999]  ? process_one_work+0x1be/0x5f0
[   75.794440]  process_one_work+0x23e/0x5f0
[   75.796702]  ? worker_thread+0xce/0x390
[   75.799062]  worker_thread+0x3c/0x390
[   75.801445]  ? process_one_work+0x5f0/0x5f0
[   75.803864]  kthread+0x145/0x170
[   75.805972]  ? kthread_park+0x90/0x90
[   75.808664]  ret_from_fork+0x3a/0x50
[   75.811162] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/1:1/32
[   75.814497] caller is cpumask_any+0x4d/0x70
[   75.816861] CPU: 0 PID: 32 Comm: kworker/1:1 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   75.820558] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   75.828295] Workqueue: events cpuset_hotplug_workfn
[   75.830705] Call Trace:
[   75.833009]  dump_stack+0x8f/0xcb
[   75.835214]  __this_cpu_preempt_check+0xaf/0xc0
[   75.837779]  cpumask_any+0x4d/0x70
[   75.840083]  partition_sched_domains_locked+0x152/0x500
[   75.842971]  rebuild_sched_domains_locked+0x5a1/0xba0
[   75.845729]  ? down_write+0x38/0x70
[   75.848117]  ? cpumask_next+0x17/0x20
[   75.850597]  ? percpu_down_write+0xa3/0x100
[   75.853049]  rebuild_sched_domains+0x1b/0x30
[   75.855647]  cpuset_hotplug_workfn+0x74e/0x1310
[   75.858190]  ? process_one_work+0x1be/0x5f0
[   75.860745]  process_one_work+0x23e/0x5f0
[   75.863280]  ? worker_thread+0xce/0x390
[   75.865699]  worker_thread+0x3c/0x390
[   75.868085]  ? process_one_work+0x5f0/0x5f0
[   75.870592]  kthread+0x145/0x170
[   75.872739]  ? kthread_park+0x90/0x90
[   75.875055]  ret_from_fork+0x3a/0x50
[   81.896088] x86: Booting SMP configuration:
[   81.905907] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   81.913431] kvm-clock: cpu 1, msr 23b401041, secondary cpu clock
[   81.913488] masked ExtINT on CPU#1
[   81.937706] KVM setup async PF for cpu 1
[   81.940401] kvm-stealtime: cpu 1, msr 23fd30040
[   84.980215] Unregister pv shared memory for cpu 0
[   85.001386] smpboot: CPU 0 is now offline
[   85.010941] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/0:2/144
[   85.014653] caller is cpumask_any+0x14/0x70
[   85.017195] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   85.020677] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   85.024172] Workqueue: events cpuset_hotplug_workfn
[   85.026826] Call Trace:
[   85.028689]  dump_stack+0x8f/0xcb
[   85.030943]  __this_cpu_preempt_check+0xaf/0xc0
[   85.033582]  cpumask_any+0x14/0x70
[   85.035717]  partition_sched_domains_locked+0x152/0x500
[   85.038475]  rebuild_sched_domains_locked+0x5a1/0xba0
[   85.041030]  ? down_write+0x38/0x70
[   85.043283]  ? cpumask_next+0x17/0x20
[   85.045656]  ? percpu_down_write+0xa3/0x100
[   85.048027]  rebuild_sched_domains+0x1b/0x30
[   85.050432]  cpuset_hotplug_workfn+0x74e/0x1310
[   85.052972]  ? process_one_work+0x1be/0x5f0
[   85.055616]  process_one_work+0x23e/0x5f0
[   85.057954]  ? worker_thread+0xce/0x390
[   85.060290]  worker_thread+0x3c/0x390
[   85.062673]  ? process_one_work+0x5f0/0x5f0
[   85.065007]  kthread+0x145/0x170
[   85.067219]  ? kthread_park+0x90/0x90
[   85.069517]  ret_from_fork+0x3a/0x50
[   85.071998] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/0:2/144
[   85.075495] caller is cpumask_any+0x4d/0x70
[   85.078053] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   85.081638] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   85.085139] Workqueue: events cpuset_hotplug_workfn
[   85.087972] Call Trace:
[   85.090133]  dump_stack+0x8f/0xcb
[   85.092449]  __this_cpu_preempt_check+0xaf/0xc0
[   85.094945]  cpumask_any+0x4d/0x70
[   85.097255]  partition_sched_domains_locked+0x152/0x500
[   85.099968]  rebuild_sched_domains_locked+0x5a1/0xba0
[   85.102690]  ? down_write+0x38/0x70
[   85.104983]  ? cpumask_next+0x17/0x20
[   85.107318]  ? percpu_down_write+0xa3/0x100
[   85.109927]  rebuild_sched_domains+0x1b/0x30
[   85.112333]  cpuset_hotplug_workfn+0x74e/0x1310
[   85.114892]  ? process_one_work+0x1be/0x5f0
[   85.117334]  process_one_work+0x23e/0x5f0
[   85.119868]  ? worker_thread+0xce/0x390
[   85.122441]  worker_thread+0x3c/0x390
[   85.124850]  ? process_one_work+0x5f0/0x5f0
[   85.127409]  kthread+0x145/0x170
[   85.129521]  ? kthread_park+0x90/0x90
[   85.136185]  ret_from_fork+0x3a/0x50
[   88.041127] smpboot: Booting Node 0 Processor 0 APIC 0x0
[   88.047260] kvm-clock: cpu 0, msr 23b401001, secondary cpu clock
[   88.047315] masked ExtINT on CPU#0
[   88.080615] KVM setup async PF for cpu 0
[   88.083215] kvm-stealtime: cpu 0, msr 23fc30040
[   91.122185] Unregister pv shared memory for cpu 0
[   91.136805] smpboot: CPU 0 is now offline
[   91.142632] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/0:2/144
[   91.146321] caller is cpumask_any+0x14/0x70
[   91.148857] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   91.152441] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   91.155959] Workqueue: events cpuset_hotplug_workfn
[   91.158633] Call Trace:
[   91.160515]  dump_stack+0x8f/0xcb
[   91.162804]  __this_cpu_preempt_check+0xaf/0xc0
[   91.165289]  cpumask_any+0x14/0x70
[   91.167414]  partition_sched_domains_locked+0x152/0x500
[   91.170239]  rebuild_sched_domains_locked+0x5a1/0xba0
[   91.172877]  ? down_write+0x38/0x70
[   91.175155]  ? cpumask_next+0x17/0x20
[   91.177550]  ? percpu_down_write+0xa3/0x100
[   91.179958]  rebuild_sched_domains+0x1b/0x30
[   91.182500]  cpuset_hotplug_workfn+0x74e/0x1310
[   91.185112]  ? process_one_work+0x1be/0x5f0
[   91.187582]  process_one_work+0x23e/0x5f0
[   91.190095]  ? worker_thread+0xce/0x390
[   91.192481]  worker_thread+0x3c/0x390
[   91.194906]  ? process_one_work+0x5f0/0x5f0
[   91.197369]  kthread+0x145/0x170
[   91.199452]  ? kthread_park+0x90/0x90
[   91.201615]  ret_from_fork+0x3a/0x50
[   91.203878] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/0:2/144
[   91.207496] caller is cpumask_any+0x4d/0x70
[   91.209991] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   91.213556] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   91.216919] Workqueue: events cpuset_hotplug_workfn
[   91.219450] Call Trace:
[   91.221455]  dump_stack+0x8f/0xcb
[   91.223683]  __this_cpu_preempt_check+0xaf/0xc0
[   91.226348]  cpumask_any+0x4d/0x70
[   91.228592]  partition_sched_domains_locked+0x152/0x500
[   91.231337]  rebuild_sched_domains_locked+0x5a1/0xba0
[   91.234159]  ? down_write+0x38/0x70
[   91.236447]  ? cpumask_next+0x17/0x20
[   91.238827]  ? percpu_down_write+0xa3/0x100
[   91.241275]  rebuild_sched_domains+0x1b/0x30
[   91.248641]  cpuset_hotplug_workfn+0x74e/0x1310
[   91.251506]  ? process_one_work+0x1be/0x5f0
[   91.254775]  process_one_work+0x23e/0x5f0
[   91.257257]  ? worker_thread+0xce/0x390
[   91.259720]  worker_thread+0x3c/0x390
[   91.262119]  ? process_one_work+0x5f0/0x5f0
[   91.264523]  kthread+0x145/0x170
[   91.266890]  ? kthread_park+0x90/0x90
[   91.269381]  ret_from_fork+0x3a/0x50
[   94.185102] smpboot: Booting Node 0 Processor 0 APIC 0x0
[   94.194225] kvm-clock: cpu 0, msr 23b401001, secondary cpu clock
[   94.194284] masked ExtINT on CPU#0
[   94.227621] KVM setup async PF for cpu 0
[   94.230391] kvm-stealtime: cpu 0, msr 23fc30040
[   97.267310] Unregister pv shared memory for cpu 0
[   97.277923] smpboot: CPU 0 is now offline
[   97.284802] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/0:2/144
[   97.292569] caller is cpumask_any+0x14/0x70
[   97.295186] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   97.298722] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   97.302094] Workqueue: events cpuset_hotplug_workfn
[   97.304832] Call Trace:
[   97.306912]  dump_stack+0x8f/0xcb
[   97.309299]  __this_cpu_preempt_check+0xaf/0xc0
[   97.311842]  cpumask_any+0x14/0x70
[   97.314204]  partition_sched_domains_locked+0x152/0x500
[   97.317091]  rebuild_sched_domains_locked+0x5a1/0xba0
[   97.319800]  ? down_write+0x38/0x70
[   97.322168]  ? cpumask_next+0x17/0x20
[   97.324453]  ? percpu_down_write+0xa3/0x100
[   97.326961]  rebuild_sched_domains+0x1b/0x30
[   97.329583]  cpuset_hotplug_workfn+0x74e/0x1310
[   97.332048]  ? process_one_work+0x1be/0x5f0
[   97.334608]  process_one_work+0x23e/0x5f0
[   97.336954]  ? worker_thread+0xce/0x390
[   97.339368]  worker_thread+0x3c/0x390
[   97.341637]  ? process_one_work+0x5f0/0x5f0
[   97.344033]  kthread+0x145/0x170
[   97.346210]  ? kthread_park+0x90/0x90
[   97.348454]  ret_from_fork+0x3a/0x50
[   97.350814] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/0:2/144
[   97.354066] caller is cpumask_any+0x4d/0x70
[   97.356562] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[   97.360002] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[   97.363342] Workqueue: events cpuset_hotplug_workfn
[   97.366045] Call Trace:
[   97.368053]  dump_stack+0x8f/0xcb
[   97.370361]  __this_cpu_preempt_check+0xaf/0xc0
[   97.372869]  cpumask_any+0x4d/0x70
[   97.375182]  partition_sched_domains_locked+0x152/0x500
[   97.378070]  rebuild_sched_domains_locked+0x5a1/0xba0
[   97.380701]  ? down_write+0x38/0x70
[   97.383118]  ? cpumask_next+0x17/0x20
[   97.385516]  ? percpu_down_write+0xa3/0x100
[   97.387933]  rebuild_sched_domains+0x1b/0x30
[   97.390302]  cpuset_hotplug_workfn+0x74e/0x1310
[   97.392884]  ? process_one_work+0x1be/0x5f0
[   97.395551]  process_one_work+0x23e/0x5f0
[   97.397888]  ? worker_thread+0xce/0x390
[   97.400253]  worker_thread+0x3c/0x390
[   97.402490]  ? process_one_work+0x5f0/0x5f0
[   97.404993]  kthread+0x145/0x170
[   97.407242]  ? kthread_park+0x90/0x90
[   97.409554]  ret_from_fork+0x3a/0x50
[   99.106901] Writes:  Total: 35434807  Max/Min: 0/0   Fail: 0 
[  109.353172] smpboot: Booting Node 0 Processor 0 APIC 0x0
[  109.388740] kvm-clock: cpu 0, msr 23b401001, secondary cpu clock
[  109.388796] masked ExtINT on CPU#0
[  109.443615] KVM setup async PF for cpu 0
[  109.446345] kvm-stealtime: cpu 0, msr 23fc30040
[  112.508187] Unregister pv shared memory for cpu 0
[  112.515229] smpboot: CPU 0 is now offline
[  112.519948] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/0:2/144
[  112.523383] caller is cpumask_any+0x14/0x70
[  112.530155] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[  112.533776] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  112.537314] Workqueue: events cpuset_hotplug_workfn
[  112.539926] Call Trace:
[  112.541903]  dump_stack+0x8f/0xcb
[  112.544231]  __this_cpu_preempt_check+0xaf/0xc0
[  112.547000]  cpumask_any+0x14/0x70
[  112.549359]  partition_sched_domains_locked+0x152/0x500
[  112.552141]  rebuild_sched_domains_locked+0x5a1/0xba0
[  112.554933]  ? down_write+0x38/0x70
[  112.557276]  ? cpumask_next+0x17/0x20
[  112.559628]  ? percpu_down_write+0xa3/0x100
[  112.562486]  rebuild_sched_domains+0x1b/0x30
[  112.565144]  cpuset_hotplug_workfn+0x74e/0x1310
[  112.567700]  ? process_one_work+0x1be/0x5f0
[  112.570089]  process_one_work+0x23e/0x5f0
[  112.572424]  ? worker_thread+0xce/0x390
[  112.574794]  worker_thread+0x3c/0x390
[  112.577083]  ? process_one_work+0x5f0/0x5f0
[  112.579431]  kthread+0x145/0x170
[  112.581443]  ? kthread_park+0x90/0x90
[  112.583466]  ret_from_fork+0x3a/0x50
[  112.585688] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/0:2/144
[  112.588903] caller is cpumask_any+0x4d/0x70
[  112.591186] CPU: 1 PID: 144 Comm: kworker/0:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[  112.594570] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  112.597845] Workqueue: events cpuset_hotplug_workfn
[  112.600392] Call Trace:
[  112.602477]  dump_stack+0x8f/0xcb
[  112.604778]  __this_cpu_preempt_check+0xaf/0xc0
[  112.607346]  cpumask_any+0x4d/0x70
[  112.609670]  partition_sched_domains_locked+0x152/0x500
[  112.612419]  rebuild_sched_domains_locked+0x5a1/0xba0
[  112.615130]  ? down_write+0x38/0x70
[  112.617627]  ? cpumask_next+0x17/0x20
[  112.619936]  ? percpu_down_write+0xa3/0x100
[  112.622448]  rebuild_sched_domains+0x1b/0x30
[  112.624916]  cpuset_hotplug_workfn+0x74e/0x1310
[  112.627483]  ? process_one_work+0x1be/0x5f0
[  112.630192]  process_one_work+0x23e/0x5f0
[  112.632670]  ? worker_thread+0xce/0x390
[  112.634895]  worker_thread+0x3c/0x390
[  112.637239]  ? process_one_work+0x5f0/0x5f0
[  112.639832]  kthread+0x145/0x170
[  112.647876]  ? kthread_park+0x90/0x90
[  112.650142]  ret_from_fork+0x3a/0x50
[  115.561110] smpboot: Booting Node 0 Processor 0 APIC 0x0
[  115.574240] kvm-clock: cpu 0, msr 23b401001, secondary cpu clock
[  115.574300] masked ExtINT on CPU#0
[  115.607548] KVM setup async PF for cpu 0
[  115.610451] kvm-stealtime: cpu 0, msr 23fc30040
[  118.648289] Unregister pv shared memory for cpu 1
[  118.659140] smpboot: CPU 1 is now offline
[  118.669405] BUG: using __this_cpu_read() in preemptible [00000000] code: kworker/1:2/167
[  118.672719] caller is cpumask_any+0x14/0x70
[  118.675145] CPU: 0 PID: 167 Comm: kworker/1:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[  118.678321] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  118.681838] Workqueue: events cpuset_hotplug_workfn
[  118.684491] Call Trace:
[  118.686463]  dump_stack+0x8f/0xcb
[  118.688602]  __this_cpu_preempt_check+0xaf/0xc0
[  118.690971]  cpumask_any+0x14/0x70
[  118.693063]  partition_sched_domains_locked+0x152/0x500
[  118.695702]  rebuild_sched_domains_locked+0x5a1/0xba0
[  118.698322]  ? down_write+0x38/0x70
[  118.700546]  ? cpumask_next+0x17/0x20
[  118.702883]  ? percpu_down_write+0xa3/0x100
[  118.705310]  rebuild_sched_domains+0x1b/0x30
[  118.707662]  cpuset_hotplug_workfn+0x74e/0x1310
[  118.710009]  ? process_one_work+0x1be/0x5f0
[  118.712400]  process_one_work+0x23e/0x5f0
[  118.714585]  ? worker_thread+0xce/0x390
[  118.716965]  worker_thread+0x3c/0x390
[  118.719188]  ? process_one_work+0x5f0/0x5f0
[  118.721459]  kthread+0x145/0x170
[  118.723631]  ? kthread_park+0x90/0x90
[  118.726020]  ret_from_fork+0x3a/0x50
[  118.728511] BUG: using __this_cpu_write() in preemptible [00000000] code: kworker/1:2/167
[  118.731747] caller is cpumask_any+0x4d/0x70
[  118.734313] CPU: 0 PID: 167 Comm: kworker/1:2 Not tainted 5.6.0-rc4-00110-ga7934287d8a6c #2
[  118.737683] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[  118.740914] Workqueue: events cpuset_hotplug_workfn
[  118.743399] Call Trace:
[  118.745514]  dump_stack+0x8f/0xcb
[  118.747848]  __this_cpu_preempt_check+0xaf/0xc0
[  118.750522]  cpumask_any+0x4d/0x70
[  118.752752]  partition_sched_domains_locked+0x152/0x500
[  118.755264]  rebuild_sched_domains_locked+0x5a1/0xba0
[  118.757816]  ? down_write+0x38/0x70
[  118.760109]  ? cpumask_next+0x17/0x20
[  118.762669]  ? percpu_down_write+0xa3/0x100
[  118.765308]  rebuild_sched_domains+0x1b/0x30
[  118.767876]  cpuset_hotplug_workfn+0x74e/0x1310
[  118.770286]  ? process_one_work+0x1be/0x5f0
[  118.772723]  process_one_work+0x23e/0x5f0
[  118.775191]  ? worker_thread+0xce/0x390
[  118.777766]  worker_thread+0x3c/0x390
[  118.780116]  ? process_one_work+0x5f0/0x5f0
[  118.782612]  kthread+0x145/0x170
[  118.784938]  ? kthread_park+0x90/0x90
[  118.787058]  ret_from_fork+0x3a/0x50

Elapsed time: 120

qemu-img create -f qcow2 disk-vm-snb-60-0 256G
qemu-img create -f qcow2 disk-vm-snb-60-1 256G
qemu-img create -f qcow2 disk-vm-snb-60-2 256G
qemu-img create -f qcow2 disk-vm-snb-60-3 256G
qemu-img create -f qcow2 disk-vm-snb-60-4 256G
qemu-img create -f qcow2 disk-vm-snb-60-5 256G
qemu-img create -f qcow2 disk-vm-snb-60-6 256G

kvm=(
	qemu-system-x86_64
	-enable-kvm
	-cpu SandyBridge
	-kernel $kernel
	-initrd initrd-vm-snb-60.cgz
	-m 8192
	-smp 2
	-device e1000,netdev=net0
	-netdev user,id=net0,hostfwd=tcp::32032-:22
	-boot order=nc
	-no-reboot
	-watchdog i6300esb
	-watchdog-action debug
	-rtc base=localtime
	-drive file=disk-vm-snb-60-0,media=disk,if=virtio
	-drive file=disk-vm-snb-60-1,media=disk,if=virtio
	-drive file=disk-vm-snb-60-2,media=disk,if=virtio
	-drive file=disk-vm-snb-60-3,media=disk,if=virtio
	-drive file=disk-vm-snb-60-4,media=disk,if=virtio
	-drive file=disk-vm-snb-60-5,media=disk,if=virtio
	-drive file=disk-vm-snb-60-6,media=disk,if=virtio
	-serial stdio
	-display none
	-monitor null
)

append=(
	ip=::::vm-snb-60::dhcp
	root=/dev/ram0
	user=lkp
	job=/job-script
	ARCH=x86_64
	kconfig=x86_64-rhel-7.6-kselftests
	branch=linux-devel/devel-hourly-2020041507
	commit=a7934287d8a6c43811fca8ddf421b3b6091564f2
	BOOT_IMAGE=/pkg/linux/x86_64-rhel-7.6-kselftests/gcc-7/a7934287d8a6c43811fca8ddf421b3b6091564f2/vmlinuz-5.6.0-rc4-00110-ga7934287d8a6c
	max_uptime=1500
	RESULT_ROOT=/result/locktorture/300s-cpuhotplug/vm-snb/yocto-i386-minimal-20190520.cgz/x86_64-rhel-7.6-kselftests/gcc-7/a7934287d8a6c43811fca8ddf421b3b6091564f2/3
	result_service=tmpfs
	selinux=0
	debug
	apic=debug
	sysrq_always_enabled
	rcupdate.rcu_cpu_stall_timeout=100
	net.ifnames=0
	printk.devkmsg=on
	panic=-1
	softlockup_panic=1
	nmi_watchdog=panic
	oops=panic
	load_ramdisk=2
	prompt_ramdisk=0
	drbd.minor_count=8
	systemd.log_level=err
	ignore_loglevel
	console=tty0
	earlyprintk=ttyS0,115200
	console=ttyS0,115200
	vga=normal
	rw
	rcuperf.shutdown=0
	watchdog_thresh=60
)

"${kvm[@]}" -append "${append[*]}"


To reproduce:

        # build kernel
	cd linux
	cp config-5.6.0-rc4-00110-ga7934287d8a6c .config
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage modules
	make HOSTCC=gcc-7 CC=gcc-7 ARCH=x86_64 INSTALL_MOD_PATH=<mod-install-dir> modules_install
	cd <mod-install-dir>
	find lib/ | cpio -o -H newc --quiet | gzip > modules.cgz


        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> -m modules.cgz job-script # job-script is attached in this email



Thanks,
Rong Chen


View attachment "config-5.6.0-rc4-00110-ga7934287d8a6c" of type "text/plain" (203858 bytes)

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

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ