From: sashiko-bot@kernel.org
To: "Ben Cressey" <ben@cressey.dev>,
"Catalin Marinas" <catalin.marinas@arm.com>,
"Will Deacon" <will@kernel.org>,
"Mark Rutland" <mark.rutland@arm.com>,
"Pasha Tatashin" <pasha.tatashin@soleen.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Pavel Machek" <pavel@kernel.org>
Cc: "Kees Cook" <kees@kernel.org>,
"Sami Tolvanen" <samitolvanen@google.com>,
kexec@lists.infradead.org,
"Nathan Chancellor" <nathan@kernel.org>,
"Zhaoyang Huang" <zhaoyang.huang@unisoc.com>,
"Jeson Gao" <jeson.gao@unisoc.com>
Subject: Re: [PATCH v2 1/2] arm64: kexec: use a typed entry to fix kCFI oops
Date: Wed, 11 Nov 2026 23:42:58 +0000 [thread overview]
Message-ID: <sashiko-outbox-209862@kernel.org> (raw)
In-Reply-To: <20261111-arm64-kexec-nocfi-v2-1-ddf0c4aa326f@cressey.dev>
> An arm64 Linux kernel built with CONFIG_CFI=y oopses after "Bye!" on
> every kexec that relocates the image. Crash images load in place and are
> not affected. The oops reproduces under QEMU:
>
> Unable to handle kernel paging request at virtual address 00000000544bfffc
> pc : machine_kexec+0x104/0x274
> Code: d5182008 d5033fdf aa1303e0 f9418a68 (b85fc110)
>
> b85fc110 is "ldur w16, [x8, #-4]", the kCFI check's load of the type
> hash in front of the callee. Commit efc2d0f20a9d ("arm64: kexec: keep
> MMU enabled during kexec relocation") made machine_kexec() call the
> control page's copy of arm64_relocate_new_kernel() indirectly, while
> TTBR0 maps only that page. The copy starts at the page's first byte, so
> the load faults. SYM_CODE_START() also gives the routine no hash.
>
> [ ... ]
> Fixes: efc2d0f20a9d ("arm64: kexec: keep MMU enabled during kexec relocation")
> Cc: stable@vger.kernel.org
> Suggested-by: Kees Cook <kees@kernel.org>
> Link: https://lore.kernel.org/linux-arm-kernel/202609241804.BB23BF10@keescook/
> Signed-off-by: Ben Cressey <ben@cressey.dev>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261111-arm64-kexec-nocfi-v2-0-ddf0c4aa326f@cressey.dev?part=1
next prev parent reply other threads:[~2026-11-11 23:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 23:26 [PATCH v2 0/2] arm64: use typed entries into copied code for kCFI Ben Cressey
2026-11-11 23:26 ` [PATCH v2 1/2] arm64: kexec: use a typed entry to fix kCFI oops Ben Cressey
2026-11-11 23:42 ` sashiko-bot [this message]
2026-11-11 23:26 ` [PATCH v2 2/2] arm64: hibernate: use a typed entry to drop __nocfi Ben Cressey
2026-11-11 23:43 ` sashiko-bot
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=sashiko-outbox-209862@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=ben@cressey.dev \
--cc=catalin.marinas@arm.com \
--cc=jeson.gao@unisoc.com \
--cc=kees@kernel.org \
--cc=kexec@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=nathan@kernel.org \
--cc=pasha.tatashin@soleen.com \
--cc=pavel@kernel.org \
--cc=rafael@kernel.org \
--cc=samitolvanen@google.com \
--cc=sashiko-reviews@lists.linux.dev \
--cc=will@kernel.org \
--cc=zhaoyang.huang@unisoc.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.