Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753179AbbG0M0j (ORCPT ); Mon, 27 Jul 2015 08:26:39 -0400 Received: from mail.sevenbyte.org ([5.9.90.188]:35310 "EHLO mail.sevenbyte.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752599AbbG0M0h (ORCPT ); Mon, 27 Jul 2015 08:26:37 -0400 From: Stefan Tatschner To: ludwig.kuerzinger@aisec.fraunhofer.de Cc: Paul Burton , Markos Chandras , , linux-mips@linux-mips.org, Matthew Fortune , linux-kernel@vger.kernel.org, Ralf Baechle Subject: [PATCH 2/9] MIPS: Require O32 FP64 support for MIPS64 with O32 compat Date: Mon, 27 Jul 2015 14:26:20 +0200 Message-Id: <1437999987-24879-2-git-send-email-stefan@sevenbyte.org> In-Reply-To: <1437999987-24879-1-git-send-email-stefan@sevenbyte.org> References: <1437999987-24879-1-git-send-email-stefan@sevenbyte.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------2.4.6" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2134 Lines: 58 From: Paul Burton This is a multi-part message in MIME format. --------------2.4.6 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit MIPS32r6 code requires FP64 (ie. FR=1) support. Building a kernel with support for MIPS32r6 binaries but without support for O32 with FP64 is therefore a problem which can lead to incorrectly executed userland. CONFIG_MIPS_O32_FP64_SUPPORT is already selected when the kernel is configured for MIPS32r6, but not when the kernel is configured for MIPS64r6 with O32 compat support. Select CONFIG_MIPS_O32_FP64_SUPPORT in such configurations to prevent building kernels which execute MIPS32r6 userland incorrectly. Signed-off-by: Paul Burton Cc: Markos Chandras Cc: # v4.0- Cc: linux-mips@linux-mips.org Cc: Matthew Fortune Cc: stable@vger.kernel.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/10674/ Signed-off-by: Ralf Baechle --- arch/mips/Kconfig | 1 + 1 file changed, 1 insertion(+) --------------2.4.6 Content-Type: text/x-patch; name="0002-MIPS-Require-O32-FP64-support-for-MIPS64-with-O32-co.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0002-MIPS-Require-O32-FP64-support-for-MIPS64-with-O32-co.patch" diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index aab7e46..66dc359 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -1427,6 +1427,7 @@ config CPU_MIPS64_R6 select CPU_SUPPORTS_HIGHMEM select CPU_SUPPORTS_MSA select GENERIC_CSUM + select MIPS_O32_FP64_SUPPORT if MIPS32_O32 help Choose this option to build a kernel for release 6 or later of the MIPS64 architecture. New MIPS processors, starting with the Warrior --------------2.4.6-- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/