From patchwork Tue Oct 24 05:55:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 10023507 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AE98860381 for ; Tue, 24 Oct 2017 05:56:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A024B28935 for ; Tue, 24 Oct 2017 05:56:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9284728971; Tue, 24 Oct 2017 05:56:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1D3D428935 for ; Tue, 24 Oct 2017 05:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: Message-id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:List-Owner; bh=djnYAG9+GJmuVHX9IZOyORNwsV/TjzGZWzJjtqxFKik=; b=Up 2GkIbA5sJFCkPeKhDS+viGk8Pb23yQUVjW3fkRoZ7UahYJhO6IEBZtotfbDlHJh0fxVH5qQGfsxwB nnfb75LqoL0WPDlhZxHxYx1SGoZAZkU/OOlMq0hBWFNJzTQK64LMBvfxTtSH386VNQyl6iKxCz1ok mYoYqRVENIXf5lnWiztxI3pbdpDh+oe8FsCqsKbnHb3xu8QRCBu9YOuFYciSWZgrDqP8sYtYhJfE9 XyfNnRp1LaOyvj2YQqqGCQwUNcWyoj6K3ZlAzZFswaxHVsURaV+u+4HPgfGe2LhzrSCCjA23Pq2sm VBZ0v/XQo8LJfBQLB4dN3jwvMc1F8UWQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1e6sCY-0000bR-EV; Tue, 24 Oct 2017 05:56:34 +0000 Received: from mailout2.samsung.com ([203.254.224.25]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e6sCT-0000ZH-KQ for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2017 05:56:32 +0000 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20171024055602epoutp021871ee892b687cfca96bcdb400e20fb3~wa-H9193y1040310403epoutp02s; Tue, 24 Oct 2017 05:56:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20171024055602epoutp021871ee892b687cfca96bcdb400e20fb3~wa-H9193y1040310403epoutp02s DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1508824562; bh=2OEcGnks/dTgK0R6JBvTAnPyjY1zTRtLImQ/GZ2NQWc=; h=From:To:Cc:Subject:Date:References:From; b=CvK2+7XFqLBccouVN4CL5iWawppZmsfEcVTJRQWaJUeDrjOy6xVM0UfgBxBx2kmCF ZdqjmBGxenf1tYeKZGqTHwF9oqSTNN7EVKiu6COgoKs0t2d0CHNPBAJA5OmobfPv1x WeI8H/XXV5yrp7Tm/Lt+qU+5il+QHURhw94CEqyA= Received: from epsmges2p4.samsung.com (unknown [182.195.40.69]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20171024055601epcas1p39466a8cc5cd6d81b4f947cf4c7742bb7~wa-HqdY_c2450024500epcas1p3h; Tue, 24 Oct 2017 05:56:01 +0000 (GMT) Received: from epcas2p1.samsung.com ( [182.195.41.53]) by epsmges2p4.samsung.com (Symantec Messaging Gateway) with SMTP id F1.2A.04158.1F5DEE95; Tue, 24 Oct 2017 14:56:01 +0900 (KST) Received: from epsmgms2p2new.samsung.com (unknown [182.195.42.143]) by epcas2p3.samsung.com (KnoxPortal) with ESMTP id 20171024055601epcas2p34a22b2b1fb3f1f71ed875125d87a47c4~wa-HcU9HT2738527385epcas2p3L; Tue, 24 Oct 2017 05:56:01 +0000 (GMT) X-AuditID: b6c32a48-8edff7000000103e-55-59eed5f166b2 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 7A.51.03859.1F5DEE95; Tue, 24 Oct 2017 14:56:01 +0900 (KST) Received: from localhost.localdomain ([10.113.62.209]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OYB005PPCHCA290@mmp1.samsung.com>; Tue, 24 Oct 2017 14:56:01 +0900 (KST) From: Seung-Woo Kim To: linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: ubsan: select ARCH_HAS_UBSAN_SANITIZE_ALL Date: Tue, 24 Oct 2017 14:55:59 +0900 Message-id: <1508824559-6588-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJKsWRmVeSWpSXmKPExsWy7bCmqe7Hq+8iDe7uMrP4O+kYu8WXSe/Y LTY9vsZqcXnXHDaLQ1P3MlrMmPySzYHN4/K1i8wev39NYvTY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LmRtYLzE2cXIySEhYCLRe+YtUxcjF4eQwE5G iW33ZjOBJIQEfjBKXGiOArHZBHQk9i/5zQpiiwjES0zqOc4MYjMLOEl0T2ljBLGFBewlfr1a B9bLIqAq8f5ZI1gNr4CrxK9tU9ghlilILLj3lm0CI9cCRoZVjJKpBcW56bnFRgVGeanlesWJ ucWleel6yfm5mxiBIbHtsFb/DsbHS+IPMQpwMCrx8N6wfBcpxJpYVlyZe4hRgoNZSYR3326g EG9KYmVValF+fFFpTmrxIUZpDhYlcV7+/GORQgLpiSWp2ampBalFMFkmDk6pBsb+uty2wGX5 ffm787UYNHyCz+T29gfzefr2xpZ9ahbVffLuhfuTVVts42YrCD0Q7UtSdYhZ3iVms0j7aEWh zJ+WQuUjxk77t7cF/Jvgw+D9MjS6k/FySc629SaM/au22HcqmZmYdO17ZhKx5oRrydOVrn/O 2M/UdnoW2+nCmHEhgUv5rFKIEktxRqKhFnNRcSIApYKIMQUCAAA= X-CMS-MailID: 20171024055601epcas2p34a22b2b1fb3f1f71ed875125d87a47c4 X-Msg-Generator: CA CMS-TYPE: 102P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20171024055601epcas2p34a22b2b1fb3f1f71ed875125d87a47c4 X-RootMTR: 20171024055601epcas2p34a22b2b1fb3f1f71ed875125d87a47c4 References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171023_225629_810149_C427F910 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: aryabinin@virtuozzo.com, sw0312.kim@samsung.com, arnd@arndb.de MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Select ARCH_HAS_UBSAN_SANITIZE_ALL from arm confiuration to enable UBSAN on arm. Signed-off-by: Seung-Woo Kim --- arch/arm/Kconfig | 1 + arch/arm/boot/compressed/Makefile | 2 ++ arch/arm/vdso/Makefile | 2 ++ 3 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 7888c98..5eb3c89 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -11,6 +11,7 @@ config ARM select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST select ARCH_HAVE_CUSTOM_GPIO_H select ARCH_HAS_GCOV_PROFILE_ALL + select ARCH_HAS_UBSAN_SANITIZE_ALL select ARCH_MIGHT_HAVE_PC_PARPORT select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX select ARCH_OPTIONAL_KERNEL_RWX_DEFAULT if CPU_V7 diff --git a/arch/arm/boot/compressed/Makefile b/arch/arm/boot/compressed/Makefile index d50430c..8f06ab2 100644 --- a/arch/arm/boot/compressed/Makefile +++ b/arch/arm/boot/compressed/Makefile @@ -24,6 +24,8 @@ endif GCOV_PROFILE := n +UBSAN_SANITIZE := n + # # Architecture dependencies # diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile index 59a8fa7..e343700 100644 --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile @@ -29,6 +29,8 @@ CFLAGS_vgettimeofday.o = -O2 # Disable gcov profiling for VDSO code GCOV_PROFILE := n +UBSAN_SANITIZE := n + # Force dependency $(obj)/vdso.o : $(obj)/vdso.so