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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2AA15C433F5 for ; Mon, 7 Mar 2022 22:03:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231446AbiCGWEu (ORCPT ); Mon, 7 Mar 2022 17:04:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237549AbiCGWEq (ORCPT ); Mon, 7 Mar 2022 17:04:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC8C13A199 for ; Mon, 7 Mar 2022 14:03:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C3EB60E86 for ; Mon, 7 Mar 2022 22:03:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E5A5C340F4; Mon, 7 Mar 2022 22:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646690630; bh=ZfB+qqW0LGpCiciJCSs/OO+Ysvkzg3uawsoNh3RpyhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nGvNERzJtRRihZMnpHcs/jVf3YXkxnM4pgobcMW6f/lacBNuWKLt6vO7S90GyqRnL X6T65Ll7kyLIxcEf6oCenDkBeJ4h3z8S8RRFSEH7PHXCrsdD3cInGmA4/6Qb/W4vxE hKytU11uozyRtnLLJuOeIyCJSuZAQHOhnHC6UsoXWJyz3GHkc61sIF1+1COXLxogBW OPYwHSz/HaddTII4E3LTPEKADUOGnV+2SnybDKTf8HWP8wM3Y7aR0Jp45jgJtD9E2D O38I8VNfB6HepRIXUM7TY8uE+WFYfHlIRz8GX4Y083O1H+ctH+7tOJq9CbpG4zob5Q j6PnviJ+2afjQ== From: Will Deacon To: Mark Brown , Catalin Marinas Cc: kernel-team@android.com, Will Deacon , libc-alpha@sourceware.org, linux-arch@vger.kernel.org, Yu-cheng Yu , "H . J . Lu" , Jeremy Linton , Eric Biederman , Szabolcs Nagy , Kees Cook , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v10 0/2] arm64: Enable BTI for the executable as well as the interpreter Date: Mon, 7 Mar 2022 22:03:27 +0000 Message-Id: <164669030645.141062.12667484591752564518.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220228130606.1070960-1-broonie@kernel.org> References: <20220228130606.1070960-1-broonie@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Mon, 28 Feb 2022 13:06:04 +0000, Mark Brown wrote: > Deployments of BTI on arm64 have run into issues interacting with > systemd's MemoryDenyWriteExecute feature. Currently for dynamically > linked executables the kernel will only handle architecture specific > properties like BTI for the interpreter, the expectation is that the > interpreter will then handle any properties on the main executable. > For BTI this means remapping the executable segments PROT_EXEC | > PROT_BTI. > > [...] Applied to arm64 (for-next/bti), thanks! [1/2] elf: Allow architectures to parse properties on the main executable https://git.kernel.org/arm64/c/825b99a491ec [2/2] arm64: Enable BTI for main executable as well as the interpreter https://git.kernel.org/arm64/c/ddc35eb71d63 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev 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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B948C433EF for ; Mon, 7 Mar 2022 22:06:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kOsPaYDjc9HDCaKilafFw/5T7kghaSHY75okivc9n3o=; b=dgoz7OP+8cJbWk Yc2YMclnis9pf+dwJ/kugoiTZCulqTR3hhFw7llpqU6t4Ww1zUgoDUlh0lKD+Me7IfdI1vHrNU60v VLI4Hpt9/pGWwfdf6oNT3aI1tQstm5NSTWe2LQd/OCEgDJmKPz21345JERMMc0gre7j6RxczewNd3 l2Ml7KVfvpigHDUTxnT+nHe/XXqMlei1J46HMcTvrbuqA6I6kIWGzPK9jsRnbcw7Zw6ML1Rk75zFh uX8FFL5Sf8TGR/GgrARFGajfXTY9x084/R4x9d7fnUFUXQlG5C5ujF576K84MnMXnGFJBETWU6Cs0 sYkvSVHQ8FT8ur1LB0/Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRLT7-001ipR-N1; Mon, 07 Mar 2022 22:04:41 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRLSK-001iT2-NJ for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 22:03:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 43863B8172A; Mon, 7 Mar 2022 22:03:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E5A5C340F4; Mon, 7 Mar 2022 22:03:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1646690630; bh=ZfB+qqW0LGpCiciJCSs/OO+Ysvkzg3uawsoNh3RpyhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nGvNERzJtRRihZMnpHcs/jVf3YXkxnM4pgobcMW6f/lacBNuWKLt6vO7S90GyqRnL X6T65Ll7kyLIxcEf6oCenDkBeJ4h3z8S8RRFSEH7PHXCrsdD3cInGmA4/6Qb/W4vxE hKytU11uozyRtnLLJuOeIyCJSuZAQHOhnHC6UsoXWJyz3GHkc61sIF1+1COXLxogBW OPYwHSz/HaddTII4E3LTPEKADUOGnV+2SnybDKTf8HWP8wM3Y7aR0Jp45jgJtD9E2D O38I8VNfB6HepRIXUM7TY8uE+WFYfHlIRz8GX4Y083O1H+ctH+7tOJq9CbpG4zob5Q j6PnviJ+2afjQ== From: Will Deacon To: Mark Brown , Catalin Marinas Cc: kernel-team@android.com, Will Deacon , libc-alpha@sourceware.org, linux-arch@vger.kernel.org, Yu-cheng Yu , "H . J . Lu" , Jeremy Linton , Eric Biederman , Szabolcs Nagy , Kees Cook , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v10 0/2] arm64: Enable BTI for the executable as well as the interpreter Date: Mon, 7 Mar 2022 22:03:27 +0000 Message-Id: <164669030645.141062.12667484591752564518.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220228130606.1070960-1-broonie@kernel.org> References: <20220228130606.1070960-1-broonie@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_140352_948509_39D3399B X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 28 Feb 2022 13:06:04 +0000, Mark Brown wrote: > Deployments of BTI on arm64 have run into issues interacting with > systemd's MemoryDenyWriteExecute feature. Currently for dynamically > linked executables the kernel will only handle architecture specific > properties like BTI for the interpreter, the expectation is that the > interpreter will then handle any properties on the main executable. > For BTI this means remapping the executable segments PROT_EXEC | > PROT_BTI. > > [...] Applied to arm64 (for-next/bti), thanks! [1/2] elf: Allow architectures to parse properties on the main executable https://git.kernel.org/arm64/c/825b99a491ec [2/2] arm64: Enable BTI for main executable as well as the interpreter https://git.kernel.org/arm64/c/ddc35eb71d63 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel