Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp601816ybt; Wed, 24 Jun 2020 06:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJye/S8dDLqseyBVVk/6CHvBwIXzZUon2zqUhNghZUgilTPV7qKfkN4DrkL24tx5UrP17nRX X-Received: by 2002:aa7:da89:: with SMTP id q9mr8683163eds.273.1593006965914; Wed, 24 Jun 2020 06:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593006965; cv=none; d=google.com; s=arc-20160816; b=rg/wALQJqDXFYx1DKvdbdXcsFS+eE2Ob3eQ+8Dq6pK6KWiyFVPEVwKr+Mzn/ZTXc3F hTYfPUpgw7noAfHH87JRFCzrlPb0SVbYOd5GE400GiCgEMl65C8gv9OwI/Tye3lFnTtF 3qXyjq0faVdwQeJcoUSLv7IDCaRauFedHagy5PkurVPRKteCkoeacPKVlfzDxCJwlb6o jggES1QVhpyUv+TOAJzbFp5Cv0LYpuO5EvBYl5Mq5ojtdfS8NBOwggcHJSlVmaklrZ7o q3MruZ08RYZkOJzKEerbl/Jc5bEx9RHilJwKsyl6Z/Jl1Xyp2CBTz1qelKy8PvYScf2I bOFQ== 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=SM57iov7K1nFZwFaFgW3ZqZBPL/B7K/7OvxmHqmCbmk=; b=mkiirZj7VlMtUdu7r2MdrrHMKnDQuOKvz7lI9FkewMuoBNBA9d4azpR1dbZkWMpjcR gOwQIBCDAwVihe3R3HCtaTU/2N6yvCvcWeE8o6t0tAfm/J8JP620Sbrek5hDssDEv2zb je8FkQI2ax2l3Xb5EiIDggBOkS1p0EtJW0pasqvTTgHpfUikdmzsoXrtlcx6TTjI4qF0 4aKlu63yahMVHZUE9cta6hdgkP2D19vwu36Eytx7BWKaVyz7iFp7OVXJ/MvL6GS17aM/ ifVTKVTvIKWlS9GDigUDavpF+58VtiH15VIMq2xT08OZ33LRjGJecuypsazCbo6jt5rD xVJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qTWXXWzz; 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 l4si6669004ede.133.2020.06.24.06.55.42; Wed, 24 Jun 2020 06:56:05 -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=qTWXXWzz; 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 S2391139AbgFXNzG (ORCPT + 99 others); Wed, 24 Jun 2020 09:55:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:42270 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389668AbgFXNzF (ORCPT ); Wed, 24 Jun 2020 09:55:05 -0400 Received: from localhost.localdomain (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1CD7320724; Wed, 24 Jun 2020 13:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593006905; bh=/1svtZ7NFc/8pJ2Kp6i4gm4ajra1i4VBRLm1WItsEMU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qTWXXWzzkiccoVFz/2cLbK9y/b4meGyKs970QbtqAoJKFfrYOE8wJQNan/2zkjIbG M9gInwgc0i5vdEgc9IJfSprW2ZMaMPfd25JecqOiJlhvlLKNXm9xCTx1tcU3dr6wx2 XnwsVCEoVoSbiftJU5wdTX+rn7DxiauXaityvSg4= From: Will Deacon To: Iurii Zaikin , PaX Team , Mathias Krause , x86@kernel.org, Sven Schnelle , Masahiro Yamada , Florian Weimer , Luis Chamberlain , linux-kernel@vger.kernel.org, Michal Marek , Catalin Marinas , Emese Revfy , kernel-hardening@lists.openwall.com, Laura Abbott , Brad Spengler , Thomas Gleixner , Jessica Yu , Miguel Ojeda , Kees Cook , linux-kbuild@vger.kernel.org, Andrew Morton , Vincenzo Frascino , Peter Collingbourne , Naohiro Aota , Alexander Monakov , Thiago Jung Bauermann , Masahiro Yamada , Alexander Popov , gcc@gcc.gnu.org, Jann Horn , linux-arm-kernel@lists.infradead.org Cc: kernel-team@android.com, Will Deacon , notify@kernel.org Subject: Re: [PATCH v2 0/5] Improvements of the stackleak gcc plugin Date: Wed, 24 Jun 2020 14:54:49 +0100 Message-Id: <159300400829.52405.11593787740425104484.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200624123330.83226-1-alex.popov@linux.com> References: <20200624123330.83226-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 On Wed, 24 Jun 2020 15:33:25 +0300, Alexander Popov wrote: > This is the v2 of the patch series with various improvements of the > stackleak gcc plugin. > > The first three patches disable unneeded gcc plugin instrumentation for > some files. > > The fourth patch is the main improvement. It eliminates an unwanted > side-effect of kernel code instrumentation performed by stackleak gcc > plugin. This patch is a deep reengineering of the idea described on > grsecurity blog: > https://grsecurity.net/resolving_an_unfortunate_stackleak_interaction > > [...] Applied to arm64 (for-next/fixes), thanks! [1/1] arm64: vdso: Don't use gcc plugins for building vgettimeofday.c https://git.kernel.org/arm64/c/e56404e8e475 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev