From: xuwei5@hisilicon.com (Wei Xu)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] arm64: kpti: Use early_param for kpti= command-line option
Date: Fri, 22 Jun 2018 18:47:37 +0800 [thread overview]
Message-ID: <5B2CD3C9.6040606@hisilicon.com> (raw)
In-Reply-To: <1529659525-21340-1-git-send-email-will.deacon@arm.com>
Hi Will,
On 2018/6/22 17:25, Will Deacon wrote:
> We inspect __kpti_forced early on as part of the cpufeature enable
> callback which remaps the swapper page table using non-global entries.
>
> Ensure that __kpti_forced has been updated to reflect the kpti=
> command-line option before we start using it.
>
> Reported-by: Wei Xu <xuwei5@hisilicon.com>
> Signed-off-by: Will Deacon <will.deacon@arm.com>
Thanks!
Tested and works on a hisilicon platform.
Tested-by: Wei Xu <xuwei5@hisilicon.com>
Best Regards,
Wei
> ---
>
> v1->v2: Fix typo (remove '=' from option)
>
> arch/arm64/kernel/cpufeature.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
> index d2856b129097..f24892a40d2c 100644
> --- a/arch/arm64/kernel/cpufeature.c
> +++ b/arch/arm64/kernel/cpufeature.c
> @@ -937,7 +937,7 @@ static int __init parse_kpti(char *str)
> __kpti_forced = enabled ? 1 : -1;
> return 0;
> }
> -__setup("kpti=", parse_kpti);
> +early_param("kpti", parse_kpti);
> #endif /* CONFIG_UNMAP_KERNEL_AT_EL0 */
>
> #ifdef CONFIG_ARM64_HW_AFDBM
next prev parent reply other threads:[~2018-06-22 10:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-22 9:25 [PATCH v2] arm64: kpti: Use early_param for kpti= command-line option Will Deacon
2018-06-22 10:25 ` Sudeep Holla
2018-06-22 10:47 ` Wei Xu [this message]
2018-06-22 16:17 ` Catalin Marinas
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=5B2CD3C9.6040606@hisilicon.com \
--to=xuwei5@hisilicon.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;
as well as URLs for NNTP newsgroup(s).