lkml.org 
[lkml]   [2017]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] arm64: Ensure the instruction emulation is ready for userspace
On Fri, Oct 06, 2017 at 02:16:52PM +0100, Suzuki K. Poulose wrote:
> 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: Catalin Marinas <catalin.marinas@arm.com>
> 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>

Both patches queued for 4.14. Thanks.

--
Catalin

\
 
 \ /
  Last update: 2017-10-06 17:36    [W:1.170 / U:0.060 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site