X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fkexec.c;h=25db14b89e82c529fcb217e311fbebf66c440c60;hb=df6d3916f3b7b7e2067567a256dd4f0c1ea854a2;hp=afbbbe981be288ecef8112b95a53321ee1971959;hpb=21b4e736922f546e0f1aa7b9d6c442f309a2444a;p=linux-2.6 diff --git a/kernel/kexec.c b/kernel/kexec.c index afbbbe981b..25db14b89e 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -852,6 +852,7 @@ static int kimage_load_crash_segment(struct kimage *image, memset(ptr + uchunk, 0, mchunk - uchunk); } result = copy_from_user(ptr, buf, uchunk); + kexec_flush_icache_page(page); kunmap(page); if (result) { result = (result < 0) ? result : -EIO; @@ -1117,8 +1118,8 @@ void crash_save_cpu(struct pt_regs *regs, int cpu) memset(&prstatus, 0, sizeof(prstatus)); prstatus.pr_pid = current->pid; elf_core_copy_regs(&prstatus.pr_reg, regs); - buf = append_elf_note(buf, "CORE", NT_PRSTATUS, &prstatus, - sizeof(prstatus)); + buf = append_elf_note(buf, KEXEC_CORE_NOTE_NAME, NT_PRSTATUS, + &prstatus, sizeof(prstatus)); final_note(buf); }