Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4037942imm; Mon, 18 Jun 2018 08:10:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJjNuNJgu5hK8E/aL9Y+kxjSVyFHJOePLSGiQnGgly5E2NewrqDZyyHGNhSR9Gg2htemLCn X-Received: by 2002:a17:902:8497:: with SMTP id c23-v6mr14842161plo.124.1529334624676; Mon, 18 Jun 2018 08:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529334624; cv=none; d=google.com; s=arc-20160816; b=BAUQ5bUCh1EEGJmgG7kr7CadSLysbMscVd3R60oXkewvEUc89njGpW1Royi4UCC4uh DHxRN3hwyfM7caemYPxgePCO4qB87iQtmgkHkYEEXeORwiWbNSeP+LdcbxFQajo+3Mn7 RM8K5QQoCGssCxACnt7VXLtJ19m0+XU2BQCAfI8t2+EoaWNZjeSQqumUiF5Bogn5jtpN 9Fd0hxRlepnN3xoEIEB/mcmI/IOuZlszeUhZAiddO7mmwmGjKAjUVcDTjZBizSi15y0j AJQnuePzx0JaLK7/1bco74rb1LNDeBuN+fQo26d6wOF3KQwvIbjhvrsrdiIJtXsr4ZuN ClCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=YDT3d1VxBK0YiBEZ1hS7fYSLK7481fKshItjGaWAOGs=; b=X61VzjU5hDzsww2K428ZHCKrakEd8iuLbkaBsT0B2VbOGgBl+bZcMLdyFTCqCAznZ+ h2VHwbJEaLUjsEDzAjLVkw4BVGKwGk2aXkoMh1uNAB/uVaGa+7/5uyQOJ76XgFerVfD8 ijOGggNApKriDtad7KkizAGh4NXm5dxjCM+9Dnd8sRyavUSbKQAN44yHNT+Gvh+aoN8p jRDMYQXUCXhapEJLGVdVtHqbJ7gor2l4t3sjeM1IiMeOs80uQ00Gip2AH6X+/30wFIkb /pLphBeHJ0pyGP6YvQAty0JdtIzsS7yeXbbiCAeMwUpzDCzTOtUCpSjTyGX81KPe+kNg pwzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=QlQTyt7b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h11-v6si14926387pls.399.2018.06.18.08.10.10; Mon, 18 Jun 2018 08:10:24 -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; dkim=pass header.i=@android.com header.s=20161025 header.b=QlQTyt7b; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=android.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935591AbeFRPIV (ORCPT + 99 others); Mon, 18 Jun 2018 11:08:21 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:42454 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965477AbeFRPHa (ORCPT ); Mon, 18 Jun 2018 11:07:30 -0400 Received: by mail-pf0-f195.google.com with SMTP id w7-v6so8318947pfn.9 for ; Mon, 18 Jun 2018 08:07:30 -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:in-reply-to:references; bh=YDT3d1VxBK0YiBEZ1hS7fYSLK7481fKshItjGaWAOGs=; b=QlQTyt7b8pqu8WG/lziJBb3L6OdVoEzKHbanvYqjAVMaQvw87kHx286Wq7BIijhU+b oHeA7Vdnno8pXhL6pK6xQONn98AfViOg0VQS0trWSiUnAyxXV0Cb/7JbV3vR4ymu9ewM xMZLpdLWeugjE5xIg2AGN0C1/RxpaM5rgjgMWPHXwK7ECE3P0atp49apKnPAeJ4/YqNu AUYGxIHWFx4PRb9oDJXSFLSBRtl7u5dn2rcv/0DZQPRK9jHycQhot1tkgQFsn+CKg4Nk FwPVD/zF5YerARHJT/PDpVRH5EWBC/yYXITpxfmuSYN0iI9aZIhAePP+kTxLx85eKfyx Nk3w== 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:in-reply-to :references; bh=YDT3d1VxBK0YiBEZ1hS7fYSLK7481fKshItjGaWAOGs=; b=uVy72S1c2B2fuiWNnKNr0+yTukN/pcTErGzzceRU3rLncadJKH6XLJsQJcOmjwRNyh afCxMxj5tYoqdBqcdusdNIwSK4RidMc+wSvIGow0nMCg5tJxJqnpT28IxuOdWQvJBtSy w9VzTmBjlxXcRnRn3UWiSBS5HsFhYSHqK1Jva+LYsiapAHH9uGu+IjWbQOSGAzHGpzcR zi5AL+nHfnRV8xBSQ1VCeuROeCkdAPv8Y23GwT3Kg2CWlju0AJIafVU9xLjDbUrVi7tW SH5Rd584fmUFk4ioGzD/gUnSw+o6i1dPBcuzEXGN+AlWJUB/q5GGgQCFTg1W3Uc6gGZa AmJg== X-Gm-Message-State: APt69E02C3smbG8U5aTcVcOoOr7zpEK73E6jvIhXHgoTObvzVCi4zjZI ZDMF4uwpskxgMGdib8WmzF2jlfKQoDE= X-Received: by 2002:a62:84e:: with SMTP id c75-v6mr14022815pfd.35.1529334449699; Mon, 18 Jun 2018 08:07:29 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:0:1000:1611:6077:8eec:bc7e:d0f4]) by smtp.gmail.com with ESMTPSA id i7-v6sm54830660pfa.34.2018.06.18.08.07.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Jun 2018 08:07:29 -0700 (PDT) From: Mark Salyzyn To: linux-kernel@vger.kernel.org Cc: Mark Salyzyn , James Morse , Russell King , Catalin Marinas , Will Deacon , Andy Lutomirski , Dmitry Safonov , John Stultz , Mark Rutland , Laura Abbott , Kees Cook , Ard Biesheuvel , Andy Gross , Kevin Brodsky , Andrew Pinski , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, Jeremy Linton , Kate Stewart , Philippe Ombredanne , Greg Kroah-Hartman , Dmitry Vyukov Subject: RESEND [PATCH v5 07/12] arm: vdso: disable profiling Date: Mon, 18 Jun 2018 08:05:53 -0700 Message-Id: <20180618150613.10322-8-salyzyn@android.com> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog In-Reply-To: <20180618150613.10322-1-salyzyn@android.com> References: <20180618150613.10322-1-salyzyn@android.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Take an effort to recode the arm64 vdso code from assembler to C previously submitted by Andrew Pinski , 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 Cc: James Morse Cc: Russell King Cc: Catalin Marinas Cc: Will Deacon Cc: Andy Lutomirski Cc: Dmitry Safonov Cc: John Stultz Cc: Mark Rutland Cc: Laura Abbott Cc: Kees Cook Cc: Ard Biesheuvel Cc: Andy Gross Cc: Kevin Brodsky Cc: Andrew Pinski Cc: Thomas Gleixner Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: Jeremy Linton 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(-) diff --git a/arch/arm/vdso/Makefile b/arch/arm/vdso/Makefile index f4efff9d3afb..1125e3fb8006 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 # Prevents link failures: __sanitizer_cov_trace_pc() is not linked in. KCOV_INSTRUMENT := n -- 2.18.0.rc1.244.gcf134e6275-goog