Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1324427ybg; Thu, 4 Jun 2020 07:00:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXUOB6CzTgIDpKnoy+joIjsaU06n3Mg/WMTmNXNAh+m2w/wU25ofjmZEa2Yf3gfxSpE5tf X-Received: by 2002:a17:906:7498:: with SMTP id e24mr4008792ejl.174.1591279223120; Thu, 04 Jun 2020 07:00:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591279223; cv=none; d=google.com; s=arc-20160816; b=w4Jq+uq0vVUs8JUb+eicGxxPGPx9m3F/TfzgyC70sLQeMC8zGI7wiM2JZ18vjAZ6kI D8A+xITYpJJOQZDv4kkPmKXZylQd4IYhC9BZ4F1r2/VjRtSgLAE1/UXk/zFDGfbsVR9r 7cohjAzErakguJULEvSvT1sNrG1qyqzsOP9chbQ2wwKvP3o8aTHSeomA5ES/c3KkeXaL zrMsOEZKLxtB+r2GNXeyP2DgHilD+256mZ8XI8kIPMxzj+kZcBpeA4cHhFXyv3CCsLDm UD74fOySR3Iipq8j+FrdlQXsHPk1sLEj63tP0Z1AF3YPiYtl3nrzi0HMwD8JskEva11L cZRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=N5xslK73eHFhtW/oAnmlIHQStH26uLyR3YV4e5dKYQo=; b=ValpUdj2YNljJVyTRjrkUzmhfh8oaYZW6o44GfhL04uWq4yjWGGzVFT1TgbTmEH6L8 h99bFZyy1sX4c6ejeTvEmh+dprt2/CRE41D+rHw+nSR01aIo65MlkJ17w+SzCMsv37E7 Cd3JzJ6CBcrlgbB+kur0L/qlN9ov4Sw4efqir9LqXndUHq8K8juqVTz1PuqVuOLu0D+/ mCT4nX0lnSujt6vX/3XG/UmH7qwcU0Cbgcmy7Hv5/kPdp+vkBcZvRVz7sxmU6bZBsdDE K6IeNXnCYWlZjem/drz8auySTFuzrEvo6uBzIOL2FLnmr6WgZx5RfuxsBNDg2FzFHUDX h/iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="uGZWLY/9"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay19si1665732ejb.372.2020.06.04.07.00.00; Thu, 04 Jun 2020 07:00:23 -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; dkim=pass header.i=@kernel.org header.s=default header.b="uGZWLY/9"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728693AbgFDN6P (ORCPT + 99 others); Thu, 4 Jun 2020 09:58:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728337AbgFDN6P (ORCPT ); Thu, 4 Jun 2020 09:58:15 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCCA020772; Thu, 4 Jun 2020 13:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591279094; bh=NECwl9V9eUPjMiBKm4/NUElVNzAVswrtLb5Ash6AmNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uGZWLY/90X3PHBwBJBECC5AEfkkUvXvRftsarwbHRlL1ye5SM0NXKjjA7fXltKfGL /httPXwbNmxOx61CMzCyRmmNhJ4+zpJaCMxhkZyxsAuEoa42eK0fxNKhxjslhbGNOe FH0d0K3cWhCZARJdAG4cZYTOH1PPjLcVIF1yjwFA= Date: Thu, 4 Jun 2020 14:58:06 +0100 From: Will Deacon To: Alexander Popov Cc: 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 , Vincenzo Frascino , Thomas Gleixner , Peter Collingbourne , Naohiro Aota , Alexander Monakov , Mathias Krause , PaX Team , Brad Spengler , Laura Abbott , Florian Weimer , 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, notify@kernel.org Subject: Re: [PATCH 5/5] gcc-plugins/stackleak: Don't instrument vgettimeofday.c in arm64 VDSO Message-ID: <20200604135806.GA3170@willie-the-truck> References: <20200604134957.505389-1-alex.popov@linux.com> <20200604134957.505389-6-alex.popov@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200604134957.505389-6-alex.popov@linux.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 04:49:57PM +0300, Alexander Popov wrote: > 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) I can pick this one up via arm64, thanks. Are there any other plugins we should be wary of? It looks like x86 filters out $(GCC_PLUGINS_CFLAGS) when building the vDSO. Will