https://github.com/torvalds/linux
Revision 2103f6cba61a8b8bea3fc1b63661d830a2125e76 authored by Stephen Warren on 02 August 2013, 19:52:49 UTC, committed by Russell King on 13 August 2013, 19:23:18 UTC
Architectures should fully validate whether kexec is possible as part of
machine_kexec_prepare(), so that user-space's kexec_load() operation can
report any problems. Performing validation in machine_kexec() itself is
too late, since it is not allowed to return.

Prior to this patch, ARM's machine_kexec() was testing after-the-fact
whether machine_kexec_prepare() was able to disable all but one CPU.
Instead, modify machine_kexec_prepare() to validate all conditions
necessary for machine_kexec_prepare()'s to succeed. BUG if the validation
succeeded, yet disabling the CPUs didn't actually work.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 00efaa0
History
Tip revision: 2103f6cba61a8b8bea3fc1b63661d830a2125e76 authored by Stephen Warren on 02 August 2013, 19:52:49 UTC
ARM: 7807/1: kexec: validate CPU hotplug support
Tip revision: 2103f6c
File Mode Size
Kconfig -rw-r--r-- 17.8 KB
Kconfig.debug -rw-r--r-- 1015 bytes
Makefile -rw-r--r-- 2.0 KB
backing-dev.c -rw-r--r-- 16.3 KB
balloon_compaction.c -rw-r--r-- 9.6 KB
bootmem.c -rw-r--r-- 20.8 KB
bounce.c -rw-r--r-- 6.4 KB
cleancache.c -rw-r--r-- 12.7 KB
compaction.c -rw-r--r-- 32.3 KB
debug-pagealloc.c -rw-r--r-- 2.1 KB
dmapool.c -rw-r--r-- 13.1 KB
fadvise.c -rw-r--r-- 3.6 KB
failslab.c -rw-r--r-- 1.3 KB
filemap.c -rw-r--r-- 67.7 KB
filemap_xip.c -rw-r--r-- 11.3 KB
fremap.c -rw-r--r-- 6.6 KB
frontswap.c -rw-r--r-- 13.5 KB
highmem.c -rw-r--r-- 9.9 KB
huge_memory.c -rw-r--r-- 73.7 KB
hugetlb.c -rw-r--r-- 88.9 KB
hugetlb_cgroup.c -rw-r--r-- 10.7 KB
hwpoison-inject.c -rw-r--r-- 3.3 KB
init-mm.c -rw-r--r-- 619 bytes
internal.h -rw-r--r-- 11.1 KB
interval_tree.c -rw-r--r-- 3.2 KB
kmemcheck.c -rw-r--r-- 2.8 KB
kmemleak-test.c -rw-r--r-- 3.3 KB
kmemleak.c -rw-r--r-- 52.4 KB
ksm.c -rw-r--r-- 65.9 KB
maccess.c -rw-r--r-- 1.6 KB
madvise.c -rw-r--r-- 14.1 KB
memblock.c -rw-r--r-- 29.6 KB
memcontrol.c -rw-r--r-- 185.5 KB
memory-failure.c -rw-r--r-- 44.8 KB
memory.c -rw-r--r-- 115.8 KB
memory_hotplug.c -rw-r--r-- 45.5 KB
mempolicy.c -rw-r--r-- 71.3 KB
mempool.c -rw-r--r-- 10.5 KB
migrate.c -rw-r--r-- 44.3 KB
mincore.c -rw-r--r-- 7.8 KB
mlock.c -rw-r--r-- 14.8 KB
mm_init.c -rw-r--r-- 5.0 KB
mmap.c -rw-r--r-- 85.9 KB
mmu_context.c -rw-r--r-- 1.2 KB
mmu_notifier.c -rw-r--r-- 9.5 KB
mmzone.c -rw-r--r-- 2.4 KB
mprotect.c -rw-r--r-- 10.2 KB
mremap.c -rw-r--r-- 14.4 KB
msync.c -rw-r--r-- 2.4 KB
nobootmem.c -rw-r--r-- 10.9 KB
nommu.c -rw-r--r-- 53.2 KB
oom_kill.c -rw-r--r-- 19.5 KB
page-writeback.c -rw-r--r-- 69.8 KB
page_alloc.c -rw-r--r-- 176.6 KB
page_cgroup.c -rw-r--r-- 11.9 KB
page_io.c -rw-r--r-- 8.9 KB
page_isolation.c -rw-r--r-- 7.0 KB
pagewalk.c -rw-r--r-- 5.9 KB
percpu-km.c -rw-r--r-- 2.8 KB
percpu-vm.c -rw-r--r-- 12.9 KB
percpu.c -rw-r--r-- 57.1 KB
pgtable-generic.c -rw-r--r-- 4.6 KB
process_vm_access.c -rw-r--r-- 13.2 KB
quicklist.c -rw-r--r-- 2.4 KB
readahead.c -rw-r--r-- 15.9 KB
rmap.c -rw-r--r-- 50.5 KB
shmem.c -rw-r--r-- 77.8 KB
slab.c -rw-r--r-- 114.2 KB
slab.h -rw-r--r-- 7.3 KB
slab_common.c -rw-r--r-- 15.1 KB
slob.c -rw-r--r-- 15.3 KB
slub.c -rw-r--r-- 126.4 KB
sparse-vmemmap.c -rw-r--r-- 5.9 KB
sparse.c -rw-r--r-- 21.4 KB
swap.c -rw-r--r-- 24.3 KB
swap_state.c -rw-r--r-- 11.4 KB
swapfile.c -rw-r--r-- 66.9 KB
truncate.c -rw-r--r-- 19.6 KB
util.c -rw-r--r-- 9.6 KB
vmalloc.c -rw-r--r-- 67.9 KB
vmpressure.c -rw-r--r-- 11.5 KB
vmscan.c -rw-r--r-- 105.9 KB
vmstat.c -rw-r--r-- 33.9 KB
zbud.c -rw-r--r-- 15.9 KB
zswap.c -rw-r--r-- 24.3 KB

back to top