Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp359729imm; Mon, 1 Oct 2018 11:03:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV62SQHEDyfNCNSGF//NvLx+sHL35dIwsHVv8PtpudmFo4Jd/v/6v4rtUf23LBpYqmvHXv2XX X-Received: by 2002:a17:902:8606:: with SMTP id f6-v6mr12594405plo.271.1538417005576; Mon, 01 Oct 2018 11:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538417005; cv=none; d=google.com; s=arc-20160816; b=n0Bh6DI1rg52vlR9yv1c6b8kg1HZwcMS8HYg7dBwJ4KVDEqoOf9p9vtFrfKdgQZtfU VbvQwt/LXCWhzH8Z9LRl94NQGx10rx7kN5S5JJPmcPm7m8NjpOT6yDecNywxVm+gsds6 dPite8840WB93Rn1AQdihQKrewQMi/At9Kz7NvZuhrPpJ5kimH+5iSL8uF9rGy0apFxi cibOz3SZABxmFF0tas3k+rMGX0OygdiZupdtVWbUsXRirzgQ3GmOX/PBbpGJHmHulh9K l+FvLmSAVRn/q9xQG98hrJVzRJn0DOm0Db8f4il78LbIKWMDpQD+61hw7lrB/eBnkKSt 5e3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=COOftGCHS9Nvs+MaqTej8LtTQeX/KosYEseJ+G3aMxk=; b=qv3qa5GW1jchX2cvZXWbslrGBvIQsfUdq1FS3yGMUnoXPMliuZvYgRBkBObIiKwavT JHtYW7wpsDocJV0mfXgJBqs9T/lhM7mfPPWj43p91fnwRGu+DHJxZAngeHz9QNL5FlwE MLyXQqG0z3+RsgJ7dS5ZmBNrhPJHeayfjOBvJThCNWfevjoaF/s8z3aMKt11drLv/FC0 pwyJtC7VoSc4VkBqlubvGmE+IbL0vosoqrt6sy2RSBdmnbgQMbNoJOZZ3JUZX0R+OG9q VOypv6X5WiM1Ss/YFBZSMDlMctBK91BQ6cujLUbcliy1jR0G+Tr3plokEfArHgxOc0JY rwiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@android.com header.s=20161025 header.b=VJ3okr6x; 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 8-v6si11825230pgr.205.2018.10.01.11.03.09; Mon, 01 Oct 2018 11:03:25 -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=VJ3okr6x; 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 S1726701AbeJBAkQ (ORCPT + 99 others); Mon, 1 Oct 2018 20:40:16 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35411 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725994AbeJBAkQ (ORCPT ); Mon, 1 Oct 2018 20:40:16 -0400 Received: by mail-pf1-f196.google.com with SMTP id p12-v6so9809329pfh.2 for ; Mon, 01 Oct 2018 11:01:19 -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 :mime-version:content-transfer-encoding; bh=COOftGCHS9Nvs+MaqTej8LtTQeX/KosYEseJ+G3aMxk=; b=VJ3okr6xDxbdqaWXg0DnrCXLtCHEZeyVEc6y4NyoyhlqO5G9hRR0ZVoJ5umlmnXrMd BOVgud2mB+BgRgOJlkND20wwgR9A7kZxDClmbz2CYUv6ANrdlBAoWU+IQgrB3gpJ/Ruw 1WnrBzGru8Hn2gVQbmjKNLDl75ALypKeeIFgj32TiAY77ksbIn68jwlShldUI4aokWu2 Y/GyeRlaeGfF2eF4CMerlB1ORPnxS/r+GjrnmZIKuv/VqUWyZKMv0HFEdXvyZoPLzg7q Y/YzdQMk7lniSKThGxKOhs66u4c9jWweidRMLHE2IqnFGZMJqVZAYSC3MAexe7aVsFvv Cr4A== 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:mime-version:content-transfer-encoding; bh=COOftGCHS9Nvs+MaqTej8LtTQeX/KosYEseJ+G3aMxk=; b=lmWyCrZWt1pIyrvrUf/vxBTXqm9voZzsisbmPB6CBa7djhEcvUlgnp0GhpqrMaKBxv pxJ1YGMi1V1TpSfaMkhRGC70zKXl3iXMC+4Ydy9ohEGT34EPmh0+ggrfVeCE4S3ZZwQT S2QNBKQGe07nwYIWe1Ee5+yVBudhWu6l7U9R8udqKM3G32B1+Nvl160BEFJmX1H4gviT u/3X33F2qZzhMFCLX+7Wyze50YbYWTH25WSI6uLwtgvruuVY8WaUtVKQhg+HKrBmTbbC xVvzCN9eHacEYoPKLL7A16AE7hS4uBxnW1sHDnjEy+RQXeFoDRV2vsWIxfnpaFiEDjUj hc/Q== X-Gm-Message-State: ABuFfojWm3RYYOPQ4drRhuu+GEkqwOSnxnE6tIMGb0ND2IjsCORvV/J3 C9aWFuj8SvsI7d0Iq6w/kY0EDrei4ZA= X-Received: by 2002:a63:9612:: with SMTP id c18-v6mr10979192pge.21.1538416878491; Mon, 01 Oct 2018 11:01:18 -0700 (PDT) Received: from nebulus.mtv.corp.google.com ([2620:0:1000:1612:b4fb:6752:f21f:3502]) by smtp.gmail.com with ESMTPSA id d186-v6sm24469261pfg.173.2018.10.01.11.01.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Oct 2018 11:01:18 -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 , android-kernel@android.com, Kate Stewart , Andrew Morton , Dmitry Vyukov , Greg Kroah-Hartman Subject: RESEND [PATCH v5 07/12] arm: vdso: disable profiling Date: Mon, 1 Oct 2018 10:58:27 -0700 Message-Id: <20181001175845.168430-8-salyzyn@android.com> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog In-Reply-To: <20181001175845.168430-1-salyzyn@android.com> References: <20181001175845.168430-1-salyzyn@android.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Tested-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 Cc: android-kernel@android.com 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.19.0.605.g01d371f741-goog