From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 099933858D3C for ; Wed, 20 Apr 2022 05:33:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 099933858D3C Received: by mail-pl1-x636.google.com with SMTP id s17so814027plg.9 for ; Tue, 19 Apr 2022 22:33:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hnW6ITWz2YDcWQnTq9FpOk+73CLbsXJ06SvhUXIrkNc=; b=pOyQ3JLrm2C3Rkbhcab0kJIyXX44ZWqVxc4LXfE94KjSENrRZoP6pi3cMw7KK1WkRY vrE3Ay3w/k9Gvbq3sTRFCRTLe+r3idS4J0ggyIrw0wGTOL655Kb5pNNjR2QbynMY5lLN hoAoqlDCAgWIOgEfq6p2dIw/PgDs/xuwqDL7PHN6YBUayzYT4jx8rekZ1rJhR8hkxWYG ThGk/aBu1gl6AxQ9AVxQmUHE3iX4/eK2u+nvc+eiDpB//8PHPkBliF6AMKRqNhsbpBHL uCNDqegTSsDjFPEO69YiIvK5Ydy8yqMhlBYBKOriY8kmwdMexIlJ2IIFVI0oVoO2SB61 yCAQ== X-Gm-Message-State: AOAM530KJcHcYIgACmQxLJBC/VuB6H6iZqTLr9Ctex2KVw/a3oZm8/89 OmrUYCL1FIs50VQ/n5+fuVXGsw== X-Google-Smtp-Source: ABdhPJx41LeczR669y78GNJRIV70hrjaeefY5K7srln+1SMsu01He+CrKVT95wg8yWPc6eF9mmQeTw== X-Received: by 2002:a17:902:c40d:b0:15a:2d52:7900 with SMTP id k13-20020a170902c40d00b0015a2d527900mr1457170plk.99.1650432800101; Tue, 19 Apr 2022 22:33:20 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id ml1-20020a17090b360100b001cd40539cd9sm17636859pjb.1.2022.04.19.22.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Apr 2022 22:33:19 -0700 (PDT) From: Kees Cook To: will@kernel.org, broonie@kernel.org, catalin.marinas@arm.com Cc: Kees Cook , 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 Date: Tue, 19 Apr 2022 22:33:06 -0700 Message-Id: <165043278356.1481705.13924459838445776007.b4-ty@chromium.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220419105156.347168-1-broonie@kernel.org> References: <20220419105156.347168-1-broonie@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2022 05:33:22 -0000 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! [1/2] elf: Allow architectures to parse properties on the main executable https://git.kernel.org/kees/c/b2f2553c8e89 [2/2] arm64: Enable BTI for main executable as well as the interpreter https://git.kernel.org/kees/c/b65c760600e2 -- Kees Cook