From: Will Deacon <will@kernel.org>
To: linux-kernel@vger.kernel.org, Will Deacon <will@kernel.org>
Cc: catalin.marinas@arm.com, kernel-team@android.com,
Mark Rutland <mark.rutland@arm.com>,
Nathan Chancellor <nathan@kernel.org>,
Kees Cook <keescook@chromium.org>,
"Mohan Rao .vanimina" <mailtoc.mohanrao@gmail.com>,
Sami Tolvanen <samitolvanen@google.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment
Date: Fri, 23 Sep 2022 16:40:48 +0100 [thread overview]
Message-ID: <166393672765.2853144.1045935840794664678.b4-ty@kernel.org> (raw)
In-Reply-To: <20220922215715.13345-1-will@kernel.org>
On Thu, 22 Sep 2022 22:57:15 +0100, Will Deacon wrote:
> Due to undocumented, hysterical raisins on x86, the CFI jump-table
> sections in .text are needlessly aligned to PMD_SIZE in the vmlinux
> linker script. When compiling a CFI-enabled arm64 kernel with a 64KiB
> page-size, a PMD maps 512MiB of virtual memory and so the .text section
> increases to a whopping 940MiB and blows the final Image up to 960MiB.
> Others report a link failure.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment
https://git.kernel.org/arm64/c/13b056696291
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Will Deacon <will@kernel.org>
To: linux-kernel@vger.kernel.org, Will Deacon <will@kernel.org>
Cc: catalin.marinas@arm.com, kernel-team@android.com,
Mark Rutland <mark.rutland@arm.com>,
Nathan Chancellor <nathan@kernel.org>,
Kees Cook <keescook@chromium.org>,
"Mohan Rao .vanimina" <mailtoc.mohanrao@gmail.com>,
Sami Tolvanen <samitolvanen@google.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment
Date: Fri, 23 Sep 2022 16:40:48 +0100 [thread overview]
Message-ID: <166393672765.2853144.1045935840794664678.b4-ty@kernel.org> (raw)
In-Reply-To: <20220922215715.13345-1-will@kernel.org>
On Thu, 22 Sep 2022 22:57:15 +0100, Will Deacon wrote:
> Due to undocumented, hysterical raisins on x86, the CFI jump-table
> sections in .text are needlessly aligned to PMD_SIZE in the vmlinux
> linker script. When compiling a CFI-enabled arm64 kernel with a 64KiB
> page-size, a PMD maps 512MiB of virtual memory and so the .text section
> increases to a whopping 940MiB and blows the final Image up to 960MiB.
> Others report a link failure.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment
https://git.kernel.org/arm64/c/13b056696291
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
next prev parent reply other threads:[~2022-09-23 15:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 21:57 [PATCH] vmlinux.lds.h: CFI: Reduce alignment of jump-table to function alignment Will Deacon
2022-09-22 21:57 ` Will Deacon
2022-09-22 22:00 ` Sami Tolvanen
2022-09-22 22:00 ` Sami Tolvanen
2022-09-22 22:18 ` Kees Cook
2022-09-22 22:18 ` Kees Cook
2022-09-23 12:24 ` Mark Rutland
2022-09-23 12:24 ` Mark Rutland
2022-09-23 15:40 ` Will Deacon [this message]
2022-09-23 15:40 ` Will Deacon
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=166393672765.2853144.1045935840794664678.b4-ty@kernel.org \
--to=will@kernel.org \
--cc=catalin.marinas@arm.com \
--cc=keescook@chromium.org \
--cc=kernel-team@android.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailtoc.mohanrao@gmail.com \
--cc=mark.rutland@arm.com \
--cc=nathan@kernel.org \
--cc=samitolvanen@google.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.