Message ID | 20210819022144.22719-1-bfgithub@veryspeedy.net (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=soWq=NK=lists.infradead.org=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF257C4338F for <linux-arm-kernel@archiver.kernel.org>; Thu, 19 Aug 2021 02:25:40 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9CF05610E6 for <linux-arm-kernel@archiver.kernel.org>; Thu, 19 Aug 2021 02:25:40 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9CF05610E6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=veryspeedy.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=7OBC3W4x3a58GCdT8CdnOWWPdpcRmQgrRwlkZ/TiaVU=; b=ex+JR6UQ+V+8sQ 39CxN7LgRn9lhXul60I6bwndwov/UJe/aWU6jmPzBIY8hhVNjM0YT0ZQuc5Lc/qxurgH8BJNW0kG+ PKuRosK0rX3HPx6Z8AkR1CWGX2NOpDNw5ZgYK2UEpvht2wV3s8fpIp+E/MFk4CCENGrNVmYAKvcTr GM0VYcO6DRV/ejgEC1+ss4xYMJyhrV3Io7frOdMSsKKvwkqtejSUtlVG3gi6NfxSJDVMpFxIs2qel NA7v38jda1j+0AkWIWswIjCPp4sN7Rwi5b3zCUgzCrZhJNf2mbJqemexnc9z+MuoCWXNUOeA2iois Nm8h2gK+Gy/+OCG3Eqgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGXiL-006zpt-7T; Thu, 19 Aug 2021 02:23:29 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mGXiE-006zpJ-DE for linux-arm-kernel@lists.infradead.org; Thu, 19 Aug 2021 02:23:27 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6B8F75C00DA; Wed, 18 Aug 2021 22:23:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 18 Aug 2021 22:23:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=veryspeedy.net; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=6F/Y9/sA3z1AObrJEAXSNeda31 CHrF6sgaaEJBfLALM=; b=DlcuOzFukfoLtGkHLfnBajQ0WOtEEFhTbOHq+mxBW4 +wJxCAD9v8LKJa9GAcKTdIBkdT23sqFJpe+agA9FVg4YnshURvc8K0eHSLy58VBC cxjKk3/XcGgGm53EW/cN4maOxLVfb49DQXdyFPglBTV9mX7ZjcxtIEGi1uhd713k z1Isegu8W7/nVL4slEXkqcasz+bZcTT0V8hrGbDqsowBZYfrHlWjjVjHWpZnDKPA utxYxEjomtsgD+ozfzkD/MDC7ZjOBCeVccFWbMQSsPbFk83Dn5V54L7544C+SLT4 xxs/caBcMm4Dh3H/sUk+vI7UODJZUzAu4+Hh+WRN1n6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=6F/Y9/sA3z1AObrJE AXSNeda31CHrF6sgaaEJBfLALM=; b=E4j5vyKW/yI5gRoYCELDwDDJ7Wj/GCQiY qlN0t8D1JYCDtowqx0M4MRNBsPT16Bv9Bq3J3ltg90yhRDFRklEPZTncfQxRz5gg B0/id59uesNpX8lIq8MiS2gDJphgnQo71EwqIqn5m6qMTMBkfIXdcA8yD0lFqfKk YGPMqXdgVppUc13WXwDneEuaiC5CYOErdOq4Qdt1UwAA4arHFKMve7cyzfVi07Kw 2LVWWX5IRR8uVzw9NBjd5Fgb3FAni9a+5P8veycO4obrtIv5yT6JI8O6NV/n8XRH JlLC0PHDCu3XYKHz1tvQ52mgPNJBXhH4shZXfXSlxHxO9GBfN7mzQ== X-ME-Sender: <xms:k8AdYSsLn_u8NIKaOsO6NRpGiuHxismsCAakV_gWhoKvgQrScGoFHg> <xme:k8AdYXd_WuS0xOZTB8VKenCwcfrEfiv44ryDxgIk-ElUqjPXvD0cRJ_j4XPT_b84M z5-ayur40yRmmaJzxU> X-ME-Received: <xmr:k8AdYdyHITTKWPi6c7PvaxI0aCBG0aKO06-NS-rdum7Z3AbePT2PyEXXjgh7KyaEWBoAZrjT7KqJRtdFhwvAAJ94oaWILeV0ZXLVkFoNF9glnJBJtliHT6hnEg> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrleeigdehjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertdertd dtnecuhfhrohhmpegsfhhgihhthhhusgesvhgvrhihshhpvggvugihrdhnvghtnecuggft rfgrthhtvghrnheptdeikeeffeelffetvdehkeeifeetvddvudefgfdvfeegkeekjeehfe euvddvkeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhho mhepsghfghhithhhuhgssehvvghrhihsphgvvgguhidrnhgvth X-ME-Proxy: <xmx:k8AdYdPsCZ7Jkd7Mexe8OTUvORNBBSVZhxsSqSQOx5ue6M-7yuNSiw> <xmx:k8AdYS8sx70fpRBmCqsM1cdDbFOdSrC5TL0_6A1hl0nBizYDAu9TfA> <xmx:k8AdYVWmur2YHe4z8a96Q6K6jQhlgerCTwsOXvmWu0oBVXPaA5vhZw> <xmx:lMAdYYmfNOyKhYTKS4CnTJMl6fgB1ClYcO0kAHo_2xZbZEO80q86zQ> Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Aug 2021 22:23:13 -0400 (EDT) From: bfgithub@veryspeedy.net To: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org Cc: Berto Furth <bfgithub@veryspeedy.net> Subject: [PATCH v1 0/1] ARM hangs on boot with CONFIG_FORTIFY_SOURCE and ATAGs Date: Thu, 19 Aug 2021 12:21:44 +1000 Message-Id: <20210819022144.22719-1-bfgithub@veryspeedy.net> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210818_192322_611364_B88D2558 X-CRM114-Status: GOOD ( 12.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
ARM hangs on boot with CONFIG_FORTIFY_SOURCE and ATAGs
|
expand
|
From: Berto Furth <bfgithub@veryspeedy.net> ARM may hang on boot with ATAGS and CONFIG_FORTIFY_SOURCE. An ARM 32 device may hang on boot after the Uncompressing Linux... done, booting the kernel. message if the bootloader passes a command line via ATAG to the kernel and CONFIG_FORTIFY_SOURCE is enabled. Workaround : Disable CONFIG_FORTIFY_SOURCE in kernel build options. Details : I am trying to build v5.14.0-rc5 for an old 32 bit arm NAS system (Cavium CNS3420 based Seagate Central). The embedded u-boot bootloader on this system is very old and uses ATAGs to pass parameters to the kernel. I am confident that the hang problem is occurring because of the fortified string functions which check the declared size of string objects before working with them. My tests show that when booting using kernel v4.19.195 (which does not have fortified string functions) or with kernel v5.14.0-rc5 with CONFIG_FORTIFY_SOURCE disabled, that the system does not hang on boot. Berto Furth (1): Make cmdline ATAG work with fortified string fn arch/arm/include/uapi/asm/setup.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: d6d09a6942050f21b065a134169002b4d6b701ef