Message ID | 20171106210238.95064-1-salyzyn@android.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> 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 952036032D for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 6 Nov 2017 21:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8609E2A017 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 6 Nov 2017 21:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1EBE52A031; Mon, 6 Nov 2017 21:03:33 +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 EA6062A01F for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 6 Nov 2017 21:03:31 +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: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: References:List-Owner; bh=uG+MU0ygsLjnnYX90tDjtQpNX+09bpXkqGE834otBEM=; b=CPo Akv+VCBvX/CKuYXRFwdNZ7JP5mRYfsGsthw6q9j8e7EmsaoumVgJ6bzVjK3AVwVTi8klcPFePDKS3 j3Pv8+bRDouBdtcovgeEX1bhRckjNip/j4hf24xEOZ1BlNh648xmZEBB9e0TTBFO86JkSbNyNtU/h BeiCimUurc9VFGM0oivWozFIIuDWLIxyLS11LHjqUx4NewBtvhlTlTZf9NtBQiwfQVWF+B12JxLke 7Sd9B/+sWzQki/dGHsSu5JkiG2N+aA57c/WGZeF8MtpgEHvuP6ZDx4DHhSQlN+o503Oz6AO7mtkQ7 6e0Gam4QP8H+gBfy1fvWGwKdzPUsefg==; 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 1eBoYL-0002RM-Uv; Mon, 06 Nov 2017 21:03:29 +0000 Received: from mail-it0-x243.google.com ([2607:f8b0:4001:c0b::243]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eBoXv-00022j-PM for linux-arm-kernel@lists.infradead.org; Mon, 06 Nov 2017 21:03:27 +0000 Received: by mail-it0-x243.google.com with SMTP id c3so7069001itc.3 for <linux-arm-kernel@lists.infradead.org>; Mon, 06 Nov 2017 13:02:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=HVO7tFQ2BXl1zXzr55oot0ekMWqEY9++8LmmqAMmcr4=; b=pA2ruqPaQGkUfbe1VJnvDe4FokKGXorobUfh3MZdiEU7I0Dmdhzx0XTra1NUjnyNIu jy7lK2NJzx/9EQFmHp33hfXUCTYwrZeU31Wyd9Ct1vNCShPpTe9W1sJ451mMM1WW2rWa gd+6UT7tEKn0HEpz+1yd26/Qt5HrgcruROvVymPzhijPVVdJ1h/MsLOExiQnMYLEWBBV ueY/NO/u0483q7DXviKZwdjgLuxs/uiH2Nwtw/SdiLbnJGGfklOY8EC0p3C3/w93A+MG ykuHxJuZVDlchUJQ3HQs/wb9IWn3x+4uufjXnTVD9nq3/WUaSD1jbCO92s8CtFhvsASq 9kYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HVO7tFQ2BXl1zXzr55oot0ekMWqEY9++8LmmqAMmcr4=; b=bbJYn4U1mJ56SguRFF/GS/D3DPbpV7Elhu7iXlv4jV4NE6YTqlvUaDmGYXXXzauIfR qYQoXmuw2GP+GKT112TKmJRPPz6F0aAp4ISGAkm7vtT+6Kd7YevV0OezUaBoJQ3Ygcv2 nA7F7ToNmIUnokjkbgj9iOwlkV4mKXim5l+J0sd2/Wb58kyGzssfzNbZSJ+d4M+JgwMw YFG3JUfhzfW0W/w7iTubEiaC5tyg6RVwQPzksOiK2t+FwFF+1IFrEn8mxLffCx8z0sVG 18XRe+KJi5o5NwXOU3nuMtGqp3UDq2IYUBp5iXiJO1jsQVcnhLJ5d0sXbe6cSe8q/74X xdow== X-Gm-Message-State: AJaThX6ZHPDe75Ni6BGp4FP+VDVs8twOjS974eHJwDx8w47S341GUKgh KxG9tRp0OVLZ89YCyi9vTGX0+A== X-Google-Smtp-Source: ABhQp+TOP9X3KW4Bwad6dNoAS1pbzNwNN31jTWVScErMmbo37bwaBRJ7LdWYWGkUuHbDIjLtxAlnfA== X-Received: by 10.36.123.149 with SMTP id q143mr10746773itc.122.1510002163125; Mon, 06 Nov 2017 13:02:43 -0800 (PST) Received: from nebulus.mtv.corp.google.com ([100.98.120.17]) by smtp.gmail.com with ESMTPSA id u140sm4777819itc.41.2017.11.06.13.02.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Nov 2017 13:02:42 -0800 (PST) From: Mark Salyzyn <salyzyn@android.com> To: linux-kernel@vger.kernel.org Subject: [PATCH v5 07/12] arm: vdso: disable profiling Date: Mon, 6 Nov 2017 13:02:35 -0800 Message-Id: <20171106210238.95064-1-salyzyn@android.com> X-Mailer: git-send-email 2.15.0.403.gc27cc4dac6-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171106_130304_501737_B6982BBB X-CRM114-Status: GOOD ( 10.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 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> Cc: Mark Rutland <mark.rutland@arm.com>, Kate Stewart <kstewart@linuxfoundation.org>, Laura Abbott <labbott@redhat.com>, Kees Cook <keescook@chromium.org>, Ard Biesheuvel <ard.biesheuvel@linaro.org>, Catalin Marinas <catalin.marinas@arm.com>, Kevin Brodsky <kevin.brodsky@arm.com>, Will Deacon <will.deacon@arm.com>, Russell King <linux@armlinux.org.uk>, Andy Lutomirski <luto@amacapital.net>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Philippe Ombredanne <pombredanne@nexb.com>, James Morse <james.morse@arm.com>, Andrew Pinski <apinski@cavium.com>, Dmitry Safonov <dsafonov@virtuozzo.com>, Andy Gross <andy.gross@linaro.org>, John Stultz <john.stultz@linaro.org>, Thomas Gleixner <tglx@linutronix.de>, Mark Salyzyn <salyzyn@android.com>, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile index bb4118213fee..d64755a7ec88 100644 --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile @@ -27,8 +27,11 @@ CFLAGS_REMOVE_vdso.o = -pg CFLAGS_REMOVE_vgettimeofday.o = -pg -Os CFLAGS_vgettimeofday.o = -O2 -# Disable gcov profiling for VDSO code +# Disable gcov, kasan, ubsan and kcov profiling for VDSO code GCOV_PROFILE := n +KASAN_SANITIZE := n +UBSAN_SANITIZE := n +KCOV_INSTRUMENT := n # Force dependency $(obj)/vdso.o : $(obj)/vdso.so
Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski <apinski@cavium.com>, rework it for use in both arm and arm64, overlapping any optimizations for each architecture. But instead of landing it in arm64, land the result into lib/vdso and unify both implementations to simplify future maintenance. Make sure kasan and ubsan profiling, and kcov instrumentation, is turned off for VDSO code. Signed-off-by: Mark Salyzyn <salyzyn@android.com> Cc: James Morse <james.morse@arm.com> Cc: Russell King <linux@armlinux.org.uk> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Cc: Andy Lutomirski <luto@amacapital.net> Cc: Dmitry Safonov <dsafonov@virtuozzo.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Laura Abbott <labbott@redhat.com> Cc: Kees Cook <keescook@chromium.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Andy Gross <andy.gross@linaro.org> Cc: Kevin Brodsky <kevin.brodsky@arm.com> Cc: Andrew Pinski <apinski@cavium.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org v2: - Added this to the split up of first CL, based on comments in second CL v4: - update commit message to reflect overall reasoning v5: - rebase --- arch/arm/vdso/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)