Skip to content

Commit d51c214

Browse files
Christoph Hellwigctmarinas
authored andcommitted
arm64: fix the flush_icache_range arguments in machine_kexec
The second argument is the end "pointer", not the length. Fixes: d28f6df ("arm64/kexec: Add core kexec support") Cc: <stable@vger.kernel.org> # 4.8.x- Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 027d0c7 commit d51c214

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kernel/machine_kexec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ void machine_kexec(struct kimage *kimage)
177177
* the offline CPUs. Therefore, we must use the __* variant here.
178178
*/
179179
__flush_icache_range((uintptr_t)reboot_code_buffer,
180+
(uintptr_t)reboot_code_buffer +
180181
arm64_relocate_new_kernel_size);
181182

182183
/* Flush the kimage list and its buffers. */

0 commit comments

Comments
 (0)