mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@kernel.org>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: Andrei Vagin <avagin@virtuozzo.com>,
	tip-bot for Jacob Shin <tipbot@zytor.com>,
	kirill.shutemov@linux.intel.com,
	linux-tip-commits@vger.kernel.org, tglx@linutronix.de,
	willy@infradead.org, gorcunov@openvz.org, bp@suse.de,
	peterz@infradead.org, torvalds@linux-foundation.org,
	hpa@zytor.com, linux-kernel@vger.kernel.org, luto@amacapital.net
Subject: Re: [tip:x86/boot] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G
Date: Tue, 13 Feb 2018 10:43:56 +0100	[thread overview]
Message-ID: <20180213094355.jodz6cuh3n3brfmc@gmail.com> (raw)
In-Reply-To: <20180213090249.vnjwitt657jabnlt@node.shutemov.name>


* Kirill A. Shutemov <kirill@shutemov.name> wrote:

> On Tue, Feb 13, 2018 at 12:41:22AM -0800, Andrei Vagin wrote:
> > On Tue, Feb 13, 2018 at 11:08:16AM +0300, Kirill A. Shutemov wrote:
> > > On Mon, Feb 12, 2018 at 10:51:56PM -0800, Andrei Vagin wrote:
> > > > Hi Kirill,
> > > > 
> > > > Something is wrong in this patch.
> 
> Could you please check if this makes a difference?
> 
> diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
> index 70b30f2bc9e0..99a0e7993252 100644
> --- a/arch/x86/boot/compressed/head_64.S
> +++ b/arch/x86/boot/compressed/head_64.S
> @@ -332,7 +332,7 @@ ENTRY(startup_64)
>  
>  	/* Make sure we have GDT with 32-bit code segment */
>  	leaq	gdt(%rip), %rax
> -	movl	%eax, gdt64+2(%rip)
> +	movq	%rax, gdt64+2(%rip)
>  	lgdt	gdt64(%rip)

There's another suspicious looking pattern as well:

        leaq    startup_32(%rip), %rax
        movl    %eax, BP_code32_start(%rsi)
...
        movl    BP_code32_start(%esi), %eax
        leaq    startup_64(%rax), %rax
...


Thanks,

	Ingo

  reply	other threads:[~2018-02-13  9:44 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-09 14:22 [PATCHv9 0/4] x86: 5-level related changes into decompression code Kirill A. Shutemov
2018-02-09 14:22 ` [PATCHv9 1/4] x86/boot/compressed/64: Rename pagetable.c to kaslr_64.c Kirill A. Shutemov
2018-02-11 12:18   ` [tip:x86/boot] " tip-bot for Kirill A. Shutemov
2018-02-09 14:22 ` [PATCHv9 2/4] x86/boot/compressed/64: Introduce paging_prepare() Kirill A. Shutemov
2018-02-11 12:19   ` [tip:x86/boot] " tip-bot for Kirill A. Shutemov
2018-02-09 14:22 ` [PATCHv9 3/4] x86/boot/compressed/64: Prepare trampoline memory Kirill A. Shutemov
2018-02-11 12:19   ` [tip:x86/boot] " tip-bot for Kirill A. Shutemov
2018-02-13 18:32     ` Cyrill Gorcunov
2018-02-24 21:48     ` Borislav Petkov
2018-02-25 10:52       ` Kirill A. Shutemov
2018-02-25 12:29         ` Borislav Petkov
2018-02-25 14:09           ` Kirill A. Shutemov
2018-02-26  7:35         ` Ingo Molnar
2018-02-26  7:50           ` Ingo Molnar
2018-02-26  8:04             ` Kirill A. Shutemov
2018-02-26  8:02           ` Kirill A. Shutemov
2018-02-26  8:15             ` Cyrill Gorcunov
2018-02-26  8:37               ` Kirill A. Shutemov
2018-02-26  8:49                 ` Cyrill Gorcunov
2018-02-26  8:47             ` Ingo Molnar
2018-02-26 10:54             ` Borislav Petkov
2018-02-09 14:22 ` [PATCHv9 4/4] x86/boot/compressed/64: Handle 5-level paging boot if kernel is above 4G Kirill A. Shutemov
2018-02-11 12:20   ` [tip:x86/boot] " tip-bot for Kirill A. Shutemov
2018-02-13  6:51     ` Andrei Vagin
2018-02-13  8:08       ` Kirill A. Shutemov
2018-02-13  8:41         ` Andrei Vagin
2018-02-13  9:02           ` Kirill A. Shutemov
2018-02-13  9:43             ` Ingo Molnar [this message]
2018-02-13 10:00               ` Kirill A. Shutemov
2018-02-13 11:32                 ` Ingo Molnar
2018-02-13 16:53             ` Andrei Vagin
2018-02-13 17:17               ` Ingo Molnar
2018-02-13 17:59                 ` Dmitry Safonov
2018-02-13 18:05                   ` Ingo Molnar
2018-02-13 17:21   ` tip-bot for Kirill A. Shutemov
2018-02-13 17:42     ` Kirill A. Shutemov
2018-02-13 18:09   ` tip-bot for Kirill A. Shutemov
2018-02-11 11:37 ` [PATCHv9 0/4] x86: 5-level related changes into decompression code Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180213094355.jodz6cuh3n3brfmc@gmail.com \
    --to=mingo@kernel.org \
    --cc=avagin@virtuozzo.com \
    --cc=bp@suse.de \
    --cc=gorcunov@openvz.org \
    --cc=hpa@zytor.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=kirill@shutemov.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tip-commits@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=peterz@infradead.org \
    --cc=tglx@linutronix.de \
    --cc=tipbot@zytor.com \
    --cc=torvalds@linux-foundation.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome