Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1206111pxb; Wed, 4 Nov 2020 02:53:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJwbs41CSf+XfQm0eMgUo+8f6PCqrVnfie19p9JI98h6bdtcyBPwZB/Pm5xiSeRog083vFXQ X-Received: by 2002:a50:bf4b:: with SMTP id g11mr19258700edk.170.1604487234254; Wed, 04 Nov 2020 02:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604487234; cv=none; d=google.com; s=arc-20160816; b=dq7ZQmDN/K4foJy+doad9mOjpId4DKVCfEptVhmda8FcTNU5og6UDgo15VVxZ6K0u9 LGg7FBfj2uHS4J95XIPzkIFy0ZHK+BREH8SpQ8tEHyRXiOqvaifHnjmT7JlRHqsqgbXR hQ30hiRm0nb8gKlX+RiPqXrGZNpqvlzls0BO8fAqYKWxBUOFuqYVTZvdNXuB54b7pmzx E4BRE7ZZKMx0dur5x+FC6Q4xS1XP4j3Arb43ZGtSuf/RofLnN9gimnMu31thLD1/H/tG IZeaZ7MFFHvZ2WpOQ60/kQLKP9ZJiSo5+LLv+WTaOmKdXI1iUvUg8/U/YOa88MnvHnYg YzJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=w4EseGrXoLIosSAGal+hxVmH3ywi01WU5ummc/9nZyU=; b=YqcF3EtmY45tiDGWdZz5laB7ztwKV5ChhN2n6+RbgMbLm3nUDhIglu0wJVBOP7A8Rc Ifk4dMq1SOU7zccZlhGXCSiGj9DX3jn+/WVg2Tco45OZVxZasr1O7/sL5DpSTTZEE8JU MZIKn3zXefqq5tYpGycqFPAmlUrW51NmcLmP676Pwgo97Lwhsg+gkMh6NF2rc5t+mm9W kzdjoBP18SsHTleyBIl/5wdPO5y6jpmS8Nrei5ZDjLSPm6qNMZxqrxoK+PX3PhXEQGJr f+6t62cB+bmC5w62XF5S/ApiTCy7DFM1TTnF7bfbeNb9M0+JV7qCIReLZ6StFwTsovEN MPdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Gnw8ix7j; 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 j12si1202747ejt.283.2020.11.04.02.53.31; Wed, 04 Nov 2020 02:53:54 -0800 (PST) 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=Gnw8ix7j; 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 S1728523AbgKDKvK (ORCPT + 99 others); Wed, 4 Nov 2020 05:51:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:46152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726344AbgKDKvJ (ORCPT ); Wed, 4 Nov 2020 05:51:09 -0500 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (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 74C3D21734; Wed, 4 Nov 2020 10:51:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604487069; bh=EL3MPPblpZETCN5CGBbpdx2wNFw2ehB7q+0vul79rOU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Gnw8ix7jtk+FpSQ2JPIWzav2vH+eYG7WJxtrf3gv/xekAf36Ws7aUG0veeDYpGsdL ZjtWjWdRkESnWPvGc+DUh/VM2bj8OT7CsSAU3S2NIC1qWVtX/2BmeZkbk7CC9Iar2b vUlKB7Q91MQqaa5expOpYUMEFOz2ppmzbdDJ95Es= Date: Wed, 4 Nov 2020 10:50:58 +0000 From: Mark Brown To: Jeremy Linton Cc: Szabolcs Nagy , libc-alpha@sourceware.org, Catalin Marinas , Mark Rutland , Will Deacon , Florian Weimer , Kees Cook , Salvatore Mesoraca , Lennart Poettering , Topi Miettinen , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel-hardening@lists.openwall.com, linux-hardening@vger.kernel.org Subject: Re: [PATCH 0/4] aarch64: avoid mprotect(PROT_BTI|PROT_EXEC) [BZ #26831] Message-ID: <20201104105058.GA4812@sirena.org.uk> References: <20201103173438.GD5545@sirena.org.uk> <8c99cc8e-41af-d066-b786-53ac13c2af8a@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <8c99cc8e-41af-d066-b786-53ac13c2af8a@arm.com> X-Cookie: Take your Senator to lunch this week. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 03, 2020 at 11:41:42PM -0600, Jeremy Linton wrote: > On 11/3/20 11:34 AM, Mark Brown wrote: > > Given that there were still some ongoing discussions on a more robust > > kernel interface here and there seem to be a few concerns with this > > series should we perhaps just take a step back and disable this seccomp > > filter in systemd on arm64, at least for the time being? That seems > > safer than rolling out things that set ABI quickly, a big part of the > So, that's a bigger hammer than I think is needed and punishes !BTI > machines. I'm going to suggest that if we need to carry a temp patch its > more like the glibc patch I mentioned in the Fedora defect. That patch > simply logs a message, on the mprotect failures rather than aborting. Its > fairly non-intrusive. > That leaves seccomp functional, and BTI generally functional except when > seccomp is restricting it. I've also been asked that if a patch like that is > needed, its (temporary?) merged to the glibc trunk, rather than just being > carried by the distro's. The effect on pre-BTI hardware is an issue, another option would be for systemd to disable this seccomp usage but only after checking for BTI support in the system rather than just doing so purely based on the architecture. --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAl+ih5EACgkQJNaLcl1U h9Dcpwf/XdKNaAx2fhe7pT7ULDO3eS7hkZsOWJAp/10DTzy4okkGEczgGoT+sN0F 5SY0u/yy8VpiUyQbxawQcWMFX4F8mwiNq6SH4GOFGL+zE4BbLUWULZsszOc2d4oQ MmtZZPIE/+e8dNjvfe/rV+BEcKV4vTgVYHm/khWphDNYFymbinSrEkkCaTltcjdT zr85iYltlC5uVO+WxbNhSc4rXx63oWZV3XCpUpwHf6go8ke0LrWqVH7XbZzXqrDC h/c/vVfMESWXbxtPO46wo1g+KP+cL1ySrz2jK5LswI2aBDCyL3dWJSDaMeM7puX6 K37KSG088x6Vh/z2Qv2bjUci04ePeA== =ta+U -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND--