Message ID | 20171031183205.81190-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 256D260327 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 31 Oct 2017 18:48:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17D4B28988 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 31 Oct 2017 18:48:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C478289E2; Tue, 31 Oct 2017 18:48:25 +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 722AE28988 for <patchwork-linux-arm@patchwork.kernel.org>; Tue, 31 Oct 2017 18:48:24 +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=ReAl6dFQsdljDkhHhocnv7aFWMu8IhQywtxqeztq0ao=; b=GDA ftM8T0QbK+UVnEdi47hAWffmsexgOypWFxsvtREfSqFrYitxPEb8ME9MoHXXne9oM72VlyT/BIJO6 xAnv6/o79rm6ibUrw1lROwwOrWowFORMHaHajGbiOai/F/uJv91ljEKzlA13EXFjyh3qwljlSX2zz j0a2tXsgWQXEzCW042MDV2wDPzuCYHX3a/dpwWrZg/H/Lwbaz3PyU4gusdKCCjW+d0as6SRGgIuFh 5R9A/sBWd4wncVEYKlAtcMOuw9pWz44TlWWU7oUkjm3xHqe1LgqA41FZm4dFII58JSH94S9X8RQl9 BPF57i/ZKAua95jhr4RYZbFja40bCAA==; 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 1e9baJ-0000kl-Sr; Tue, 31 Oct 2017 18:48:23 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e9bZc-0008W4-Fy for linux-arm-kernel@bombadil.infradead.org; Tue, 31 Oct 2017 18:47:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wUFJEXGbfMCl1XbJck2pkSaSZK6w6gpadcVvT+lQzkE=; b=Wmo+wECXczzQ1lkeXAqSKrgKc y9usy+RuEAsFQLpkNUWmM6DCzdl4Rzw/PzqSUNtYBPC9KlEU0E9MJD8Ya+e4tfltH1lkGXdi3QIo6 RVH8zsCqxwPC+Uhej0CQfuMxfDcplDrn+nrShhOOjHFdxq2fjKUxVRi8lqq/yxxcAW/krN2wEDa1L j7cJ5KX5vVsnQO41EbP+Yac4J+BsxwFC2dosWE58T6PKiYr2MdEnb5r6skWGB2+aqloO4Qr0bsTsC mV7tw9stvj21VH+6sHprER7WTNRAwYENYSo4tFV4TmmVjXXXTxw8e+5Nm6vNqeM7MR25cJRVd6ekM x/WKGDeIg==; Received: from mail-io0-x242.google.com ([2607:f8b0:4001:c06::242]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1e9bKx-0007Wt-EU for linux-arm-kernel@lists.infradead.org; Tue, 31 Oct 2017 18:32:33 +0000 Received: by mail-io0-x242.google.com with SMTP id h70so877743ioi.4 for <linux-arm-kernel@lists.infradead.org>; Tue, 31 Oct 2017 11:32:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=android.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=wUFJEXGbfMCl1XbJck2pkSaSZK6w6gpadcVvT+lQzkE=; b=EFhGnRONNuQj/0lCCjdydMjrDjfuFNsD0NVq/4tbrYV743jUv2pU9ujmIds9E3dx31 f2m3Ielzkb7KB3KzE5WGWjRQIkJwqp0aH40eRtedtqBQ7ar+bHZGSKwoSc39/4qdbt87 kHpqlhsaytUzV/fxnvmKVdwsDVk5EDzXg6VWu/9Dv5DT8qUsJaGKE/k/eGEtRPdNCjsv A1dxpRoFAEHOD6qP+0hgmhubZN321Vxo4Qrx9nuyz4fMwZzhKm296V8XWfRo6eF+EzVy Dg4KxVyiTaASHeXZG6RZ4+h3Y03XOATrwSA23QS1ZyhNDuNWx34CpBY1epjZzLdmu9uj 2h1w== 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=wUFJEXGbfMCl1XbJck2pkSaSZK6w6gpadcVvT+lQzkE=; b=f9UhWERPFnIfVdnEnRMWb2wdTBo3z4VSc82vidht6ez8SkyM5buIfHf1tZ4VxHjKAd MenRXJKII5apgFDG6HN1i7T5fvbaQ1AWEs0vINlCgTso6pekMJ9tYcIQexq3zvUBkvhR avka3vD2X93o16+Am/gtxtwuE3YXViI+dw5BX8WsCMa5EzqJVTxH+ICkKpfHkEqsCgaT eQLOQuzV+L/oQvwWPcAkO4/fxxGYLCKGQSzbCdWl5vBy9L+v9xTcEmAJwr9J7brYqFPE uUQD+zHRRqMJIGAgVgE4f338BIQXxgGeUssVqHtXGM5sOsA9o9OxRLiihZrxSrZB2DRX HvLg== X-Gm-Message-State: AMCzsaW4sr7w6gvnZbBWQ/EE5Ri2Vc3nszBULc1x47siW8o+OctoVYWj eqY6b1HLwOXiKL9Q8RH20plc1A== X-Google-Smtp-Source: ABhQp+T0cd5QgT4MTYZ+GF5ec4MaK+U7nRE6pDqAlGJd/oDjTXX0ABumFBJNgyYugSuOPUkIk6FChw== X-Received: by 10.36.34.206 with SMTP id o197mr4469978ito.51.1509474729368; Tue, 31 Oct 2017 11:32:09 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([100.98.120.17]) by smtp.gmail.com with ESMTPSA id d186sm1161653itd.38.2017.10.31.11.32.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 31 Oct 2017 11:32:08 -0700 (PDT) From: Mark Salyzyn <salyzyn@android.com> To: linux-kernel@vger.kernel.org Subject: [PATCH v4 07/12] arm: vdso: disable profiling Date: Tue, 31 Oct 2017 11:32:02 -0700 Message-Id: <20171031183205.81190-1-salyzyn@android.com> X-Mailer: git-send-email 2.15.0.rc2.357.g7e34df9404-goog X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171031_183231_611875_09B63581 X-CRM114-Status: GOOD ( 13.22 ) 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>, 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>, 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 59a8fa7b8a3b..1ce912ab47cc 100644 --- a/arch/arm/vdso/Makefile +++ b/arch/arm/vdso/Makefile @@ -26,8 +26,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 --- arch/arm/vdso/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)