https://github.com/torvalds/linux
Revision c0d8832e78cbfd4a64b7112e34920af4b0b0e60e authored by Suzuki K Poulose on 06 October 2017, 13:16:52 UTC, committed by Catalin Marinas on 06 October 2017, 15:35:21 UTC
We trap and emulate some instructions (e.g, mrs, deprecated instructions)
for the userspace. However the handlers for these are registered as
late_initcalls and the userspace could be up and running from the initramfs
by that time (with populate_rootfs, which is a rootfs_initcall()). This
could cause problems for the early applications ending up in failure
like :

[   11.152061] modprobe[93]: undefined instruction: pc=0000ffff8ca48ff4

This patch promotes the specific calls to core_initcalls, which are
guaranteed to be completed before we hit userspace.

Cc: stable@vger.kernel.org
Cc: Dave Martin <dave.martin@arm.com>
Cc: Matthias Brugger <mbrugger@suse.com>
Cc: James Morse <james.morse@arm.com>
Reported-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent b02faed
Raw File
Tip revision: c0d8832e78cbfd4a64b7112e34920af4b0b0e60e authored by Suzuki K Poulose on 06 October 2017, 13:16:52 UTC
arm64: Ensure the instruction emulation is ready for userspace
Tip revision: c0d8832
.cocciconfig
[spatch]
	options = --timeout 200
	options = --use-gitgrep
back to top