From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 920CFC2D0A3 for ; Wed, 4 Nov 2020 18:49:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2619920780 for ; Wed, 4 Nov 2020 18:49:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="wUTiWtRU" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2619920780 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=yRmjUGyoGlWKX5lgU/IhEoEx28fwdEZ/MDfCZcJMzXA=; b=wUTiWtRUp5ub+Dvpj1bngmnnn VEcbT+ElBL8vj6RBhkAK/M3kxBPELjmgx9vSi+lFl6vtW8Do4RAc1yteAiqqnAWOXZoknRrLZR7po ytK00J76dWpteFVggfHuJiLS3EhjgnHvyxhYg5P2ZAhjPZy2xm4wlE+fZZsfqAlxj2Ldut+9ui3IZ YLlFSOwwc4vu6FBdj2TNHnPTMXPLGEjveHFVNP/RQOeoB83OU7IoOFdROmJFz8wOa7j0CkqHYOmTq 17ERDTpOmn9T/UqC0Y+NDlaU8BqFhtOWtpo51qjH31otVHFJ00uCDJnylS1e35B06NeA6UVwgZK+e 70MpdwLmA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaNoy-0007hx-J0; Wed, 04 Nov 2020 18:47:48 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaNoP-0007YC-KN for linux-arm-kernel@lists.infradead.org; Wed, 04 Nov 2020 18:47:26 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 40FF114BF; Wed, 4 Nov 2020 10:47:11 -0800 (PST) Received: from [192.168.122.166] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 77B623F718; Wed, 4 Nov 2020 10:47:10 -0800 (PST) Subject: Re: [PATCH 0/4] aarch64: avoid mprotect(PROT_BTI|PROT_EXEC) [BZ #26831] To: Mark Brown References: <20201103173438.GD5545@sirena.org.uk> <8c99cc8e-41af-d066-b786-53ac13c2af8a@arm.com> <20201104105058.GA4812@sirena.org.uk> From: Jeremy Linton Message-ID: <8c2d08a7-5595-6221-8da8-a7cbf6e1d493@arm.com> Date: Wed, 4 Nov 2020 12:47:09 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1 MIME-Version: 1.0 In-Reply-To: <20201104105058.GA4812@sirena.org.uk> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201104_134714_094863_0DA1F37A X-CRM114-Status: GOOD ( 23.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Florian Weimer , libc-alpha@sourceware.org, Kees Cook , kernel-hardening@lists.openwall.com, Szabolcs Nagy , Catalin Marinas , linux-kernel@vger.kernel.org, Lennart Poettering , linux-hardening@vger.kernel.org, Salvatore Mesoraca , Topi Miettinen , Will Deacon , linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, On 11/4/20 4:50 AM, Mark Brown wrote: > 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. > That works, but your also losing seccomp in the case where the machine is BTI capable, but the service isn't. So it should really be checking the elf notes, but at that point you might just as well patch glibc. _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel