Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1320418ybg; Thu, 4 Jun 2020 06:53:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoTJj1Gj/SChj29CQsk4yCAv9ejGGNQJe+lMvq045R0ooO6eR3xZI3a7vDlGA1RmyTHlmW X-Received: by 2002:a50:f611:: with SMTP id c17mr4280224edn.60.1591278838252; Thu, 04 Jun 2020 06:53:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591278838; cv=none; d=google.com; s=arc-20160816; b=0bBBXOYlzthwvfbIFOgcu42FcjxWxcMI4Btw3FEAxThlbqbTezT8BW3Br4Mrn14B10 QD2EUoej0p+mT9emOKJbXwlG4lJ8bYQXkAYw0lyiH+s4g+GgW3gAUqErbWI2I0zFhlFs fSTciJ6d1U8rn61ACJZxa4YnRgcv8NBZ2CBXnJPKIl4G7Qy6pkF21RbTo1D+2k6voGwk +M3bK5cM1JC7LZsyDrKOc+WUDGlhW2yfFQicbf3OpCDBw25ZX+l/4PMiisy12YkVfFb+ 8knyHxZTySmWeBgf6cNemYueNhNwObm1OPpkgWMn0lpHCMf4EeMt5v3Gl1BDEDYtvwOY Z8GQ== 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; bh=b54SpJMSTOd6h+DBnk1Lku3f1oWBTa5w9a5vkJqB3fA=; b=UebDHTp29JjXJh2F6pz8DDvOmBWEhRrHPpyJyG4+RMM99StYJOlITbsLMn5ZYKKg8T iOoFbkjQGD5Rtmo2r9ycSDPtay4ZDfhCftwgJXbNNqL9sQ1Squ1JkQ050rZ+dtXzlf8G DGGzpuUVPQAIpG0Rcl6dBfRV/RMBUttEtr9fLfw/W/eDYHylqEgtQ5GAffSThs8Ri5D6 NpgcSJ7DSv07sPPzbBYJHuuKQnOya6Nx+gzi2lHhybn/htv1bdpqMC1jtLc+t5jm/D5q /WJ2Jxd2giZ0X8IXFAiRz4qIvu821Lu6sh2VRs5wjupA6uiydhBP6WN/EW6dzJVX5/LF +LKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d18si1631428edv.51.2020.06.04.06.53.34; Thu, 04 Jun 2020 06:53:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728869AbgFDNvQ (ORCPT + 99 others); Thu, 4 Jun 2020 09:51:16 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:40568 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728337AbgFDNvP (ORCPT ); Thu, 4 Jun 2020 09:51:15 -0400 Received: by mail-lj1-f195.google.com with SMTP id n23so7383230ljh.7; Thu, 04 Jun 2020 06:51:14 -0700 (PDT) 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=b54SpJMSTOd6h+DBnk1Lku3f1oWBTa5w9a5vkJqB3fA=; b=NOKcnCnHmgLbHUot2+eJwnhNzECR4FMJbk1qYoqQ++S6V2X9r5jBm1/aDrPWux9kwy m5F5YKtwExVAXlAfK49L4gUJmTQvaoTjxmyG7L6/xUmKQ6iIAPIuMgp6oaRPQkdgkNBz Dd6QdErvBVfzOFIaT5DcZ0Az8tl7YC4DQXIKlUizcvvV4D/ULFHbZJgURjYeqyFVVvFB DmsFka4YcYyzeQfvItGHaw8a/lIrpRR9VUiJ1uHPgP+8tUWzQBIwix+oYOwV1fF7OUt1 lzx45X/YW1QqeS73mP+f8ggeTav//83ZS++hJP5swqVnZdInGo3ZnClz6nq/RpH1dr+p 8zRw== X-Gm-Message-State: AOAM532isEgAATR8l2s5HmPS1pTIEoHJPvtDt4NPuDjHRU9q6bnj8/fc 4M+w2vojj9gRWxPyH2K1Ci4= X-Received: by 2002:a2e:9dd8:: with SMTP id x24mr2410838ljj.304.1591278673307; Thu, 04 Jun 2020 06:51:13 -0700 (PDT) Received: from localhost.localdomain ([185.248.161.177]) by smtp.gmail.com with ESMTPSA id u16sm1202140lji.58.2020.06.04.06.51.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jun 2020 06:51:12 -0700 (PDT) From: Alexander Popov To: Kees Cook , Emese Revfy , Miguel Ojeda , Masahiro Yamada , Michal Marek , Andrew Morton , Masahiro Yamada , Thiago Jung Bauermann , Luis Chamberlain , Jessica Yu , Sven Schnelle , Iurii Zaikin , Catalin Marinas , Will Deacon , Vincenzo Frascino , Thomas Gleixner , Peter Collingbourne , Naohiro Aota , Alexander Monakov , Mathias Krause , PaX Team , Brad Spengler , Laura Abbott , Florian Weimer , Alexander Popov , kernel-hardening@lists.openwall.com, linux-kbuild@vger.kernel.org, x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, gcc@gcc.gnu.org Cc: notify@kernel.org Subject: [PATCH 5/5] gcc-plugins/stackleak: Don't instrument vgettimeofday.c in arm64 VDSO Date: Thu, 4 Jun 2020 16:49:57 +0300 Message-Id: <20200604134957.505389-6-alex.popov@linux.com> X-Mailer: git-send-email 2.25.2 In-Reply-To: <20200604134957.505389-1-alex.popov@linux.com> References: <20200604134957.505389-1-alex.popov@linux.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 Don't try instrumenting functions in arch/arm64/kernel/vdso/vgettimeofday.c. Otherwise that can cause issues if the cleanup pass of stackleak gcc plugin is disabled. Signed-off-by: Alexander Popov --- arch/arm64/kernel/vdso/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/vdso/Makefile b/arch/arm64/kernel/vdso/Makefile index 3862cad2410c..9b84cafbd2da 100644 --- a/arch/arm64/kernel/vdso/Makefile +++ b/arch/arm64/kernel/vdso/Makefile @@ -32,7 +32,8 @@ UBSAN_SANITIZE := n OBJECT_FILES_NON_STANDARD := y KCOV_INSTRUMENT := n -CFLAGS_vgettimeofday.o = -O2 -mcmodel=tiny -fasynchronous-unwind-tables +CFLAGS_vgettimeofday.o = -O2 -mcmodel=tiny -fasynchronous-unwind-tables \ + $(DISABLE_STACKLEAK_PLUGIN) ifneq ($(c-gettimeofday-y),) CFLAGS_vgettimeofday.o += -include $(c-gettimeofday-y) -- 2.25.2