Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1179153 > unrolled thread

Re: [PATCH 26/42] x86: remove not needed clear_page calling

Started byKees Cook <keescook@chromium.org>
First post2015-07-08 01:20 +0200
Last post2015-07-08 01:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 26/42] x86: remove not needed clear_page calling Kees Cook <keescook@chromium.org> - 2015-07-08 01:20 +0200

#1179153 — Re: [PATCH 26/42] x86: remove not needed clear_page calling

FromKees Cook <keescook@chromium.org>
Date2015-07-08 01:20 +0200
SubjectRe: [PATCH 26/42] x86: remove not needed clear_page calling
Message-ID<pJKjE-3vB-11@gated-at.bofh.it>
On Tue, Jul 7, 2015 at 1:20 PM, Yinghai Lu <yinghai@kernel.org> wrote:
> remove not needed clear_page for init_level4_page in x86_64_start_kernel(),
> as it is with fill 512,8,0 already in head_64.S

Will all possible entry points have come through head_64.S?

-Kees

>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> ---
>  arch/x86/kernel/head64.c | 1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/arch/x86/kernel/head64.c b/arch/x86/kernel/head64.c
> index 44dc63b..a9f0299 100644
> --- a/arch/x86/kernel/head64.c
> +++ b/arch/x86/kernel/head64.c
> @@ -178,7 +178,6 @@ asmlinkage __visible void __init x86_64_start_kernel(char * real_mode_data)
>          */
>         load_ucode_bsp();
>
> -       clear_page(init_level4_pgt);
>         /* set init_level4_pgt kernel high mapping*/
>         init_level4_pgt[511] = early_level4_pgt[511];
>
> --
> 1.8.4.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/



-- 
Kees Cook
Chrome OS Security
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web