From patchwork Fri Feb 5 23:50:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 8240721 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6CDCE9FBF9 for ; Sat, 6 Feb 2016 00:14:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E63D203C2 for ; Sat, 6 Feb 2016 00:14:25 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4BAE1203C0 for ; Sat, 6 Feb 2016 00:14:24 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRqUr-0004VU-JH; Sat, 06 Feb 2016 00:13:05 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aRqUp-0004SA-3T for linux-arm-kernel@lists.infradead.org; Sat, 06 Feb 2016 00:13:03 +0000 Received: by mail-pa0-x232.google.com with SMTP id ho8so41882212pac.2 for ; Fri, 05 Feb 2016 16:12:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=WW2ZfYLfkRg/BjxPr/juMjwyVDUaf2yYWEeO6CkCYYs=; b=khkIg7hfwdN5jK+D7pfccllVyu/2vLExBkfBjzlXNLJNTJ0CnxWmsTDX+YmEOrDiZ5 1P3AqJ6U6zgpJ36brZN20IX9p1rIzJMd4hzA33SGPt3EpIBmXhLj1w7ZvOfjPeE4NLLq UnqTG4RJoP/u4PU13NAZfeMyGl5uhCzMuMLZg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=WW2ZfYLfkRg/BjxPr/juMjwyVDUaf2yYWEeO6CkCYYs=; b=T1gBaW7TpAU66eJ0vsCUo2mT/C29TIsnrAwtt91yIMBGegm/oRdRCcDKG8UA51VpKL DDDQ8QR5osPf8vdDOqfuyhuHRidxmDiWYMVKJIYyBZ/QQQ9Th9TqKDtmW9/HS4i+UA4g fQ3s5YYlwFOlADv9+AU6v6cF6Kj0I8Bj6jNznx+/MZEIuTMPLqlDS4OLjr0Wi8WGwkyw 4HMlnFFh1vwPpcnUaJ5hNuFiObRtA9kDxijxqtrqZlrdZqcQMrp04L+o0VLUwWOulOVZ CM/LQh/MbsyidXnesAJr3YZHysShwUu92DNVM8MP4fqyEL8mQES2Ep5dcppyibFfk4NU 9zow== X-Gm-Message-State: AG10YOSXCtIGKzZ/0G+L9paCkA864/QZ4ZcBe99MoxE4FM95ApfV/nyd0E0aj3qH2oFpgtKG X-Received: by 10.66.222.101 with SMTP id ql5mr23970429pac.144.1454717562094; Fri, 05 Feb 2016 16:12:42 -0800 (PST) Received: from yshi-Precision-T5600.corp.ad.wrs.com (unknown-216-82.windriver.com. [147.11.216.82]) by smtp.gmail.com with ESMTPSA id z67sm26898056pfa.71.2016.02.05.16.12.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2016 16:12:41 -0800 (PST) From: Yang Shi To: aryabinin@virtuozzo.com, Will.Deacon@arm.com, Catalin.Marinas@arm.com Subject: [PATCH] arm64: ubsan: select ARCH_HAS_UBSAN_SANITIZE_ALL Date: Fri, 5 Feb 2016 15:50:18 -0800 Message-Id: <1454716218-4918-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160205_161303_185618_9E647079 X-CRM114-Status: UNSURE ( 7.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: yang.shi@linaro.org, linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP To enable UBSAN on arm64, ARCH_HAS_UBSAN_SANITIZE_ALL need to be selected. Basic kernel bootup test is passed on arm64 with CONFIG_UBSAN_SANITIZE_ALL enabled. Signed-off-by: Yang Shi Acked-by: Andrey Ryabinin Tested-by: Mark Rutland --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 8cc6228..1c29e20 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -14,6 +14,7 @@ config ARM64 select ARCH_WANT_OPTIONAL_GPIOLIB select ARCH_WANT_COMPAT_IPC_PARSE_VERSION select ARCH_WANT_FRAME_POINTERS + select ARCH_HAS_UBSAN_SANITIZE_ALL select ARM_AMBA select ARM_ARCH_TIMER select ARM_GIC