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 4395FC433FE for ; Wed, 20 Apr 2022 16:51:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380777AbiDTQya (ORCPT ); Wed, 20 Apr 2022 12:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234342AbiDTQy2 (ORCPT ); Wed, 20 Apr 2022 12:54:28 -0400 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F88F3E0CD for ; Wed, 20 Apr 2022 09:51:41 -0700 (PDT) Received: by mail-pl1-x62d.google.com with SMTP id s14so2305811plk.8 for ; Wed, 20 Apr 2022 09:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=e9+En7kf8cMM4lilm6s+J9uWhGlWcAjQzxaK8L2b/yA=; b=YqfTGXkTj7mUMNHl8AR6co6vtH+qL2mZip14QkbPsN4nY07sBa+sTvz1XMbbeyz4AE qsMT1ljKJMRiRYNdr5loSuoF+qM7e9zZe2N9noxI5SlSpTHKcpaZ3wLrHTaHd8v7rNf/ FMCNM7fgNDKr/3l8mkrkZzwqn66Xz1UFPnDU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e9+En7kf8cMM4lilm6s+J9uWhGlWcAjQzxaK8L2b/yA=; b=2yvR30aQKMsZOI7K3EDv/CIG+ZFgP5XLydiSVyGX3VFPTB6Gdbn2Vand+b5nTbI5ua p9YBtvGW2OWwaj0/csVMcLSgMrvPGELPwsvBm55vjVHETOrxceB2Fc/UzKgdcXzMuZLa cb+ngGpClrxiSiOY+AWPJQASI+TDh6Dj+SDwWl/XBm0JCO7CDB5RQccNirrXGVigq9Kj 3QXM8WQaqusEc1bt38xyr/llKSKot64zvbX/xLtgm9I0uOfR2nCLMlbHcFcoTEXyTU2o diy8IuFVSvI4yMZDHxw9iHMqGZK7m0qZZd1t8BlKqv2l7o8yqfD5rfET/qEBMTWvlCSw UywA== X-Gm-Message-State: AOAM53338lXbyYqp71EO1EJWB1XPqES55UfP/WCD/7HGrpW24r8xv9+f QO6Bu/1siR8OhBSGCnTDLs+Oug== X-Google-Smtp-Source: ABdhPJzHr7hb1CMb581iKLRjKcnWhaVG0GzBTLI6ORlSb6FQuuY7KCcKgljZRLw4A39xOXvmx3eGYQ== X-Received: by 2002:a17:90b:33cc:b0:1ce:a3fe:af41 with SMTP id lk12-20020a17090b33cc00b001cea3feaf41mr5502986pjb.229.1650473500753; Wed, 20 Apr 2022 09:51:40 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e6-20020a056a001a8600b004fac74c8382sm21286448pfv.47.2022.04.20.09.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 09:51:40 -0700 (PDT) Date: Wed, 20 Apr 2022 09:51:39 -0700 From: Kees Cook To: will@kernel.org, broonie@kernel.org, catalin.marinas@arm.com Cc: linux-arm-kernel@lists.infradead.org, jeremy.linton@arm.com, hjl.tools@gmail.com, libc-alpha@sourceware.org, szabolcs.nagy@arm.com, yu-cheng.yu@intel.com, ebiederm@xmission.com, linux-arch@vger.kernel.org Subject: Re: [PATCH v13 0/2] arm64: Enable BTI for the executable as well as the interpreter Message-ID: <202204200951.68BC793FC3@keescook> References: <20220419105156.347168-1-broonie@kernel.org> <165043278356.1481705.13924459838445776007.b4-ty@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <165043278356.1481705.13924459838445776007.b4-ty@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-arch@vger.kernel.org On Tue, Apr 19, 2022 at 10:33:06PM -0700, Kees Cook wrote: > On Tue, 19 Apr 2022 11:51:54 +0100, 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 for-next/execve, thanks! Now un-applied! :) -- Kees Cook 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 B60A2C433F5 for ; Wed, 20 Apr 2022 16:55:16 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0K3orsaWb3sTfztyxFWXmzaku2usFastI5buj3OJjg8=; b=4+58f7LN9SC7Ku 6HXwpUx52b9cSh4DAcpO08+7SbEpQaP68DfWpkXUt8hQgMgTk0P/71pfIzHjT7YiWbJXraGfm6yIN eZqVu9AA/vRBME60yRWWvfQf28LeB0j8sK++evlOyriMyeSfeGuHjYDwZPMNgCm15qfZIx8CR0OL/ hoYAfZWUyuoDPFJOxW2SZXid5P9fc/D7Ls2WlYKxZUW2jQptATuBNqOAIRwmsVJsr8xccxKztnxeR /O5Odq4ZokdvFEotgJdfngH9Kf3RCN0tlW98U8yuXhb4DluVOqq82S24qmZ8qMQ5slIa8CHkZIe3z hkcGETmCYO9yene/N/rA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhDad-009lvB-VE; Wed, 20 Apr 2022 16:54:05 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhDYN-009kiA-Hw for linux-arm-kernel@lists.infradead.org; Wed, 20 Apr 2022 16:51:44 +0000 Received: by mail-pj1-x1033.google.com with SMTP id n33-20020a17090a5aa400b001d28f5ee3f9so2554763pji.4 for ; Wed, 20 Apr 2022 09:51:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=e9+En7kf8cMM4lilm6s+J9uWhGlWcAjQzxaK8L2b/yA=; b=YqfTGXkTj7mUMNHl8AR6co6vtH+qL2mZip14QkbPsN4nY07sBa+sTvz1XMbbeyz4AE qsMT1ljKJMRiRYNdr5loSuoF+qM7e9zZe2N9noxI5SlSpTHKcpaZ3wLrHTaHd8v7rNf/ FMCNM7fgNDKr/3l8mkrkZzwqn66Xz1UFPnDU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=e9+En7kf8cMM4lilm6s+J9uWhGlWcAjQzxaK8L2b/yA=; b=cs1dfIWSm65rkOWiZ0M1lK3+gMbYDIen8ZkwgUyWmz66sRnwuHJ03d0nLCj7//YW/z bDI33zvDnKS5OUGJLYW8LP2dVcvs2IAQDmFeKpVsDPRe4ZlkToMFFXbzdQwG+/EiPcQd R37zLwUFlHa1ABYi5zKpzjS02F4/nTQUmro34NqPi1AtpANeZTHL9/ve2VLD7Y23qlJv o2d1ibBqNS0Dmk5C6qOjmHoJRTnlr//dLAuLKGp1S3O6xC5agwXslYerCAegFeqMes0G AV9KB7WAqcDpTFSsxawDI3YyQLtFPtX5yQtPHNuwV4QGM5NBcUpbKrn6hNz8FjV6hpe9 XohA== X-Gm-Message-State: AOAM5309hcswoUg/FRH0r6vhj8u5hsxeZV4v5KDM0/iWqarO4jnRZtBB WX5rPkGI/qSAfgyUKD0heZaXGQ== X-Google-Smtp-Source: ABdhPJzHr7hb1CMb581iKLRjKcnWhaVG0GzBTLI6ORlSb6FQuuY7KCcKgljZRLw4A39xOXvmx3eGYQ== X-Received: by 2002:a17:90b:33cc:b0:1ce:a3fe:af41 with SMTP id lk12-20020a17090b33cc00b001cea3feaf41mr5502986pjb.229.1650473500753; Wed, 20 Apr 2022 09:51:40 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id e6-20020a056a001a8600b004fac74c8382sm21286448pfv.47.2022.04.20.09.51.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Apr 2022 09:51:40 -0700 (PDT) Date: Wed, 20 Apr 2022 09:51:39 -0700 From: Kees Cook To: will@kernel.org, broonie@kernel.org, catalin.marinas@arm.com Cc: linux-arm-kernel@lists.infradead.org, jeremy.linton@arm.com, hjl.tools@gmail.com, libc-alpha@sourceware.org, szabolcs.nagy@arm.com, yu-cheng.yu@intel.com, ebiederm@xmission.com, linux-arch@vger.kernel.org Subject: Re: [PATCH v13 0/2] arm64: Enable BTI for the executable as well as the interpreter Message-ID: <202204200951.68BC793FC3@keescook> References: <20220419105156.347168-1-broonie@kernel.org> <165043278356.1481705.13924459838445776007.b4-ty@chromium.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <165043278356.1481705.13924459838445776007.b4-ty@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220420_095143_640136_D7CA0732 X-CRM114-Status: GOOD ( 13.20 ) 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 Tue, Apr 19, 2022 at 10:33:06PM -0700, Kees Cook wrote: > On Tue, 19 Apr 2022 11:51:54 +0100, 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 for-next/execve, thanks! Now un-applied! :) -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel