public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: labbott@redhat.com (Laura Abbott)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] arm64: Use __pa_symbol for empty_zero_page
Date: Wed, 25 Jan 2017 10:30:00 +0100	[thread overview]
Message-ID: <ce01d0cb-79a2-def8-8de0-d4ca3980e8e8@redhat.com> (raw)
In-Reply-To: <1485258220-21916-1-git-send-email-geert+renesas@glider.be>

On 01/24/2017 12:43 PM, Geert Uytterhoeven wrote:
> If CONFIG_DEBUG_VIRTUAL=y and CONFIG_ARM64_SW_TTBR0_PAN=y:
>
>     virt_to_phys used for non-linear address: ffffff8008cc0000 (empty_zero_page+0x0/0x1000)
>     WARNING: CPU: 0 PID: 0 at arch/arm64/mm/physaddr.c:14 __virt_to_phys+0x28/0x60
>     ...
>     [<ffffff800809abb4>] __virt_to_phys+0x28/0x60
>     [<ffffff8008a02600>] setup_arch+0x46c/0x4d4
>
> Fixes: 2077be6783b5936c ("arm64: Use __pa_symbol for kernel symbols")
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
> ---
>  arch/arm64/kernel/setup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c
> index 669fc9ff728b227f..b5222094ab52db6f 100644
> --- a/arch/arm64/kernel/setup.c
> +++ b/arch/arm64/kernel/setup.c
> @@ -298,7 +298,7 @@ void __init setup_arch(char **cmdline_p)
>  	 * faults in case uaccess_enable() is inadvertently called by the init
>  	 * thread.
>  	 */
> -	init_task.thread_info.ttbr0 = virt_to_phys(empty_zero_page);
> +	init_task.thread_info.ttbr0 = __pa_symbol(empty_zero_page);
>  #endif
>
>  #ifdef CONFIG_VT
>

(thought I sent this yesterday but SMTP was not set correctly)

Acked-by: Laura Abbott <labbott@redhat.com>

      parent reply	other threads:[~2017-01-25  9:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-24 11:43 [PATCH] arm64: Use __pa_symbol for empty_zero_page Geert Uytterhoeven
2017-01-24 12:37 ` Mark Rutland
2017-01-25  9:30 ` Laura Abbott [this message]

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=ce01d0cb-79a2-def8-8de0-d4ca3980e8e8@redhat.com \
    --to=labbott@redhat.com \
    --cc=linux-arm-kernel@lists.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