summaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2015-06-04 08:53:47 +0200
committerRalf Baechle <ralf@linux-mips.org>2015-06-06 10:21:10 +0200
commite1fb96e064e7157920f043f40ae801a5c18e57da (patch)
tree86df4259ada205a7cf700ca0ed3a70486e262697 /arch/mips/kvm
parentMIPS: Fix enabling of DEBUG_STACKOVERFLOW (diff)
downloadlinux-e1fb96e064e7157920f043f40ae801a5c18e57da.tar.xz
linux-e1fb96e064e7157920f043f40ae801a5c18e57da.zip
MIPS: Loongson-3: Fix a cpu-hotplug issue in loongson3_ipi_interrupt()
setup_per_cpu_areas() only setup __per_cpu_offset[] for each possible cpu, but loongson_sysconf.nr_cpus can be greater than possible cpus (due to reserved_cpus_mask). So in loongson3_ipi_interrupt(), percpu access will touch the original varible in .data..percpu section which has been freed. Without this patch, cpu-hotplug will cause memery corruption. Signed-off-by: Huacai Chen <chenhc@lemote.com> Cc: John Crispin <john@phrozen.org> Cc: Steven J. Hill <Steven.Hill@imgtec.com> Cc: linux-mips@linux-mips.org Cc: Fuxin Zhang <zhangfx@lemote.com> Cc: Zhangjin Wu <wuzhangjin@gmail.com> Patchwork: http://patchwork.linux-mips.org/patch/10524/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kvm')
0 files changed, 0 insertions, 0 deletions