Message ID | 20220411094824.4176877-1-ardb@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 10608C433F5 for <linux-arm-kernel@archiver.kernel.org>; Mon, 11 Apr 2022 09:54:34 +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: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:In-Reply-To:References: List-Owner; bh=DaU+mXT0PaOjQspiLC0w9dePKc5xDvLMyoOJD0s+sy4=; b=B5mGJU+8uGyk7l dfIkeHV01aAg6+gOVCRXruNo5y2AjwIFLTe7qxNnf0o75DcCunCdICZHyJn2RLKuGRSZZz2vp3/F8 mNVEW0i7XOLNTqoIQnxxPWayxEj48JZjDldzbBe/5peiNPIVeXqH4dEOUfm2LfVokW8fQI6IwIWZA Gj1qfarz/gNp7lwlx0OWD1mVAeRWdWgjqb+iU1oWDUT7dBMClupjYSW7+otMJjoE3ZrIfJiRWNC8D vlHSVYIwhSg6aC7qms+93GBjCCnfqpobZqsHdUT3/msOcJmphltrpHYCuZrApFHR1usfz0AyO7R/v 5slzSXtaXZ2NdXIw6MKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndqjD-0084Ln-1Y; Mon, 11 Apr 2022 09:53:00 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ndqf9-00825S-Iy for linux-arm-kernel@lists.infradead.org; Mon, 11 Apr 2022 09:48:50 +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 sin.source.kernel.org (Postfix) with ESMTPS id 5B045CE16C2; Mon, 11 Apr 2022 09:48:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2C91C385AD; Mon, 11 Apr 2022 09:48:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649670522; bh=5dlrVCuM0Ye/Lc4591H2bttplSfxAK9hblaYVtblALU=; h=From:To:Cc:Subject:Date:From; b=Mi6T13af+bzg8nXotJ+i6weQVp5mKeECxHpisyZNHm5i97zOMfTxtvW+GKOO7Q0yT AToAha7fXlZAFUeMUFxzjcNjUQwk8qNldQS/yTwE3zlciQQmysH4mfrysQ2AxwcQFx H8M0KnPlI+QH0oNj38PhVGKzfryDq3Q11C3zHITiMlJmgPU9Cq0a2HrC/Ay7SiW+1O hBG/Ufn/tgHhMT+YtwkuK/65HwxI1FfugPKRnrZ3WZV4w6t5ocH64qWLHywgFXRDK0 FYuhXX3TgwJAajFKuoyhJoMVDlAoqn4dskd4ropha6cdOJQfPz/8mikYWkR5Rx7jwI LCX4PmsO1X16A== From: Ard Biesheuvel <ardb@kernel.org> To: linux-arm-kernel@lists.infradead.org Cc: linux-efi@vger.kernel.org, Ard Biesheuvel <ardb@kernel.org>, Marc Zyngier <maz@kernel.org>, Will Deacon <will@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Kees Cook <keescook@chromium.org>, Catalin Marinas <catalin.marinas@arm.com>, Mark Brown <broonie@kernel.org> Subject: [PATCH v3 00/30] arm64: support WXN and entry with MMU enabled Date: Mon, 11 Apr 2022 11:47:54 +0200 Message-Id: <20220411094824.4176877-1-ardb@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=7632; h=from:subject; bh=5dlrVCuM0Ye/Lc4591H2bttplSfxAK9hblaYVtblALU=; b=owEB7QES/pANAwAKAcNPIjmS2Y8kAcsmYgBiU/k12s3pR4jlklXD4NA07YY/CnqJbSnyu3q9tXSD fO4TYhmJAbMEAAEKAB0WIQT72WJ8QGnJQhU3VynDTyI5ktmPJAUCYlP5NQAKCRDDTyI5ktmPJN2cC/ 9vrdFCglTMACwmHrSFNZ91YPnaY0YgaX/c5zerLPX31VfWnlRQqXRFB5pVj39nbOTQR3X3BBCJQwZr FE5GuYG0hlcQD75FLLYK7ls/m/jNW0hF0cz48V2AU4gFXnE1YYOtOzIjq0eO0qCCBRrXZmqtk/4Aa0 jySp5cp6+yKwX03YpPlLb8+a7PxbOZZ3HLEenM+tJ/cLQdZr75HydC5IxiHBQ+NtsZ5cffv5NK+g+z 54XlVkNdJQAnrk2b7evhgTS1K6YJQ7TgTzU3PoS9HUYunBuVDJ3a5esGcWwdA+UAqNjCTyvE0z75NF ZNGHBsyzaf3u42rX+DLOyExhP8uQs3hwq6RDlpdPbrbekWsamTBZFT0QMlzuhd/PScxzbfXB/AeNfF 64kg9QnjP8pa9uZzDNloJMrMsgWPLQDB0DM0zhsNiyS5BYxpB7+IsdxupmQP9xnm3lUK4bCM5D52M2 CmmN2rvdc47sJxD38fKcgDsNIeUtSzeymWITqwzTwaxzU= X-Developer-Key: i=ardb@kernel.org; a=openpgp; fpr=F43D03328115A198C90016883D200E9CA6329909 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220411_024848_087591_E2257842 X-CRM114-Status: GOOD ( 33.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
arm64: support WXN and entry with MMU enabled
|
expand
|
On Mon, Apr 11, 2022 at 11:47:54AM +0200, Ard Biesheuvel wrote: > - allow WXN to be enabled (with an opt-out) so writable mappings are > never executable; Besides all the rest of this series's awesomeness; this really stands out to me. I didn't even know this was a feature in aarch64. Nice! I really like the idea of having this enabled -- anything executing out of a writable mapping should already be considered a mistake (and tons of work over the last 2 decades has already gone into making stuff this doesn't happen in both the kernel and userspace). We could even make a new LKDTM test for this. (Right now stuff like EXEC_DATA just verifies that the .data segment doesn't have the X bit... but adding something like EXEC_WXN where a memory region is made explicitly W+X, and it _still_ can't be executed would be great.) Cool! -Kees