From patchwork Fri Apr 12 10:27:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Rutland X-Patchwork-Id: 162104 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp449181jan; Fri, 12 Apr 2019 03:27:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNqP2Utrwf+tiYDls8/0cEGWKBOOVwXpJjiaes4RhiLysVXfTYYrXzAioOcK5oFJnG+gdi X-Received: by 2002:a63:c746:: with SMTP id v6mr51523350pgg.401.1555064862913; Fri, 12 Apr 2019 03:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555064862; cv=none; d=google.com; s=arc-20160816; b=bRjQ6TdKu6PikL0CgyvuL6GFMleP8coKwpUPY4X4ValLYIuP/W6h4ckfD/QIIZ306e i2ifietLHTm+QC82YNSLlez35dWAc6xcTOKR8xjV1xCoMOPyZDc0fSqZ/Iu/qOWDR3Cx ICTEsCott2eNWpMzQyrXCs0H8Kumkr2+MAP7F8DU3cZobSHBeOe8tkjpPBdyIUkObw9s icRgXnonlHjEej3p5tjTiNjXMWrOlbztF1bkk80MPZ6KR0UASk8Oq03+yEmVyzTES2Sp 2L51Gk4LmYn5wpSKKYdx108yie0i3Ts6e5B+B/2cM+GR+Yvv3YpUwaymS6aJaX5XCYRR Wrlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=76RDFuycS1pSq7UqSgPykUf2OxJGA+sqgU87d6uS1dM=; b=v3K1+sibFrdM1/mDGjRUSI1QTP2j4IHPSeq/crsTTFjaL+qxGgffDyD9lvtk50mJLG KyCRIiufnmnzOIpWM8Py08GrQvNQQfjEzqCXHn7ldERVLfySSqzmn4bd2zvKJgsnDDrq o+uZgb6hZ1PGsNUD9bZXIPB+P//l8Pk76qW8gt4nEK7sB+Ec6/pwpu8bF41JjEh2Drsy CmvnAt9unANwSbePYFon1Cy4bDAwaJzfi2Pn9rXnq7e7EH6nvz4QCcdgLHthNLg7sHG9 7CZQ8r//2n41f2o1n5gTHrJJTXb7kktIwLqY4s4vrCVK1mOzFeyMMCSZWCK/adfQeBRB Xicw== ARC-Authentication-Results: i=1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q13si37786542pfi.208.2019.04.12.03.27.42; Fri, 12 Apr 2019 03:27:42 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726950AbfDLK1l (ORCPT + 31 others); Fri, 12 Apr 2019 06:27:41 -0400 Received: from foss.arm.com ([217.140.101.70]:57392 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbfDLK1l (ORCPT ); Fri, 12 Apr 2019 06:27:41 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0033815AB; Fri, 12 Apr 2019 03:27:40 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C9CAA3F718; Fri, 12 Apr 2019 03:27:39 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org Cc: Mark Rutland , Andrew Morton , Dmitry Vyukov , Kees Cook Subject: [PATCH] kcov: improve CONFIG_ARCH_HAS_KCOV help text Date: Fri, 12 Apr 2019 11:27:33 +0100 Message-Id: <20190412102733.5154-1-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The help text for CONFIG_ARCH_HAS_KCOV is stale, and describes the feature as being enabled only for x86_64, when it is now enabled for several architectures, including arm, arm64, powerpc, and s390. Let's remove that stale help text, and update it along the lines of hat for ARCH_HAS_FORTIFY_SOURCE, better describing when an architecture should select CONFIG_ARCH_HAS_KCOV. Signed-off-by: Mark Rutland Cc: Andrew Morton Cc: Dmitry Vyukov Cc: Kees Cook --- lib/Kconfig.debug | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.11.0 Acked-by: Dmitry Vyukov diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index 0d9e81779e37..00dbcdbc9a0d 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -753,9 +753,9 @@ endmenu # "Memory Debugging" config ARCH_HAS_KCOV bool help - KCOV does not have any arch-specific code, but currently it is enabled - only for x86_64. KCOV requires testing on other archs, and most likely - disabling of instrumentation for some early boot code. + An architecture should select this when it can successfully + build and run with CONFIG_KCOV. This typically requires + disabling instrumentation for some early boot code. config CC_HAS_SANCOV_TRACE_PC def_bool $(cc-option,-fsanitize-coverage=trace-pc)