From patchwork Sat Feb 6 00:05:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Shi X-Patchwork-Id: 61361 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp271232lbl; Fri, 5 Feb 2016 16:27:40 -0800 (PST) X-Received: by 10.98.65.148 with SMTP id g20mr23984464pfd.21.1454718459874; Fri, 05 Feb 2016 16:27:39 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id tl10si27066447pac.177.2016.02.05.16.27.39; Fri, 05 Feb 2016 16:27:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=pass header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751103AbcBFA1h (ORCPT + 30 others); Fri, 5 Feb 2016 19:27:37 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:36097 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750757AbcBFA1g (ORCPT ); Fri, 5 Feb 2016 19:27:36 -0500 Received: by mail-pa0-f42.google.com with SMTP id yy13so41983218pab.3 for ; Fri, 05 Feb 2016 16:27:36 -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=G3N9LWosEIY4oUDLopgHJKDTMar4DEUoMRF6blN7aZI=; b=Fz/BCASAKqpmM4Omq135UHXHziVFz36qbf/EGPkY5zMVjYtSSuqOmVCx2f0OyMisXC 2Zu/PZTD1yGfoF6AhpWau/ul7/TmPiHss2oollXMXZlQlJlhPHv6bBjEsYu26S6cUSui zwzPm78+z57QyTlJqKuAUguHWlfbI4gpaBzAE= 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=G3N9LWosEIY4oUDLopgHJKDTMar4DEUoMRF6blN7aZI=; b=dTUgjqZ3Xad8fWfCyJ6gl8Uf3FPT6GQYIsgZIXR5eLaAaL8D9aA+RA7W+HFUq0zKnN vPmoj1fvVFQ2yRLhp5b5z9zlgVmK+wPYlm19kKKPpTTgFW9B/9r2jR2kyFaSP2ad9pQw JvFQas+ECCpvRKTH/vmodD4Vy68EVPuvPEJkAqilZR1cxNRdaX0R2hUkOoxFjzYktml8 kYR+Fx0Q9xw7U05DjEunTTCktfiUJXN3xIPmjoAReIhZF+WLoJyMztEOBmXORgQhl2Du D0KdExiOOvH/KHZuThjhscyk1NYoW5zOq5l0fp3rezDbr3qx08kXAxD6eze6isuwpKBo mNAw== X-Gm-Message-State: AG10YOSxBN2Dg0nDjJTODXSQzG/0N7UVxzeA13xcDGpoRZ9T7+mNtjvJfHZWoIsIv2zOQ0ii X-Received: by 10.67.15.73 with SMTP id fm9mr24242808pad.130.1454718456338; Fri, 05 Feb 2016 16:27:36 -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 bx1sm26932510pab.33.2016.02.05.16.27.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Feb 2016 16:27:35 -0800 (PST) From: Yang Shi To: aryabinin@virtuozzo.com Cc: linux-kernel@vger.kernel.org, linaro-kernel@lists.linaro.org, yang.shi@linaro.org Subject: [PATCH] ubsan: cosmetic fix to Kconfig text Date: Fri, 5 Feb 2016 16:05:13 -0800 Message-Id: <1454717113-5094-1-git-send-email-yang.shi@linaro.org> X-Mailer: git-send-email 2.0.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When enabling UBSAN_SANITIZE_ALL, the kernel image size gets increased significantly (~3x). So, it sounds better to have some note in Kconfig. And, fixed a typo. Signed-off-by: Yang Shi --- lib/Kconfig.ubsan | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.0.2 diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan index 49518fb..e07c1ba 100644 --- a/lib/Kconfig.ubsan +++ b/lib/Kconfig.ubsan @@ -18,6 +18,8 @@ config UBSAN_SANITIZE_ALL This option activates instrumentation for the entire kernel. If you don't enable this option, you have to explicitly specify UBSAN_SANITIZE := y for the files/directories you want to check for UB. + Enabling this option will get kernel image size increased + significantly. config UBSAN_ALIGNMENT bool "Enable checking of pointers alignment" @@ -25,5 +27,5 @@ config UBSAN_ALIGNMENT default y if !HAVE_EFFICIENT_UNALIGNED_ACCESS help This option enables detection of unaligned memory accesses. - Enabling this option on architectures that support unalligned + Enabling this option on architectures that support unaligned accesses may produce a lot of false positives.