From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644AbdJFPf6 (ORCPT ); Fri, 6 Oct 2017 11:35:58 -0400 Received: from foss.arm.com ([217.140.101.70]:36258 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752452AbdJFPfz (ORCPT ); Fri, 6 Oct 2017 11:35:55 -0400 Date: Fri, 6 Oct 2017 16:35:51 +0100 From: Catalin Marinas To: Suzuki K Poulose Cc: linux-arm-kernel@lists.infradead.org, Matthias Brugger , linux-kernel@vger.kernel.org, stable@vger.kernel.org, matwey.kornilov@gmail.com, James Morse , Dave Martin Subject: Re: [PATCH 1/2] arm64: Ensure the instruction emulation is ready for userspace Message-ID: <20171006153550.cng3w5ahxuzlivxa@armageddon.cambridge.arm.com> References: <20171006131653.15876-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171006131653.15876-1-suzuki.poulose@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > Cc: Dave Martin > Cc: Matthias Brugger > Cc: James Morse > Reported-by: Matwey V. Kornilov > Signed-off-by: Suzuki K Poulose Both patches queued for 4.14. Thanks. -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Fri, 6 Oct 2017 16:35:51 +0100 Subject: [PATCH 1/2] arm64: Ensure the instruction emulation is ready for userspace In-Reply-To: <20171006131653.15876-1-suzuki.poulose@arm.com> References: <20171006131653.15876-1-suzuki.poulose@arm.com> Message-ID: <20171006153550.cng3w5ahxuzlivxa@armageddon.cambridge.arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 at vger.kernel.org > Cc: Catalin Marinas > Cc: Dave Martin > Cc: Matthias Brugger > Cc: James Morse > Reported-by: Matwey V. Kornilov > Signed-off-by: Suzuki K Poulose Both patches queued for 4.14. Thanks. -- Catalin