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 5153AC433EF for ; Mon, 13 Jun 2022 16:53:08 +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=DlGich1XIWfsAuTFHqDxC9zv4QvWfZ9PhcL8tu+qyMo=; b=jN6BJAVKVzwI9y k10NllZGvMvvMlcms9/0bgUYbzX8f9e0XknuC163/7Ns+BMM58jZInYVE3eoszb0itkvW3Wwza1OD b6ZW7SZRqJ51TE1/L2b9+qMGecGTx4T3e3DkT6D6jZPdnjfv6gtdhL54CKClME2KycOpIBjEY8WSY ftyBEFTcT7zPyCKVv7jB05u1ce0GKN9N2EqEaCqd6w1izz4S+ESrmZQWOEAJU5ftS4DGcvOjulvHT +ILYEs7Rq3KGNGEn8oHCMOL8fp7KILFXaEJMQiuvJeuqWcGMa9j8eD35IqWbY4dnfvpSgFeIVYF6K OtpepNh0IAbWvYLW1ajg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nIP-004mQU-7y; Mon, 13 Jun 2022 16:52:09 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0nIL-004mNn-Fx for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 16:52:06 +0000 Received: by mail-pg1-x52e.google.com with SMTP id f65so6036562pgc.7 for ; Mon, 13 Jun 2022 09:52:01 -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=psIrdAxHCtnc6q4IJpJl9Zump1AIOtLpL4hFyqJn+tM=; b=J15xHtznkRebeLygk639L7OICpuQRVYHRcHJocri4mA4Nt4sNr4iarQ30xa5wK+bNy TI0L1GIE4tP+lw9W6OA7FH4vE69Oj2JAKKDRB71hOar/xeKUxuzFpd9LoxFYfCADpmd+ TUiO1kRglujYxcaB+5PfE8nuUWTg9bLOIiKTc= 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=psIrdAxHCtnc6q4IJpJl9Zump1AIOtLpL4hFyqJn+tM=; b=efIh/4XWi/T2NEcs3BAJK96yIFcB7BDIGJ2GrTsefxV05K8pZ23cnJHSIdLBVGDj9q vo8Yi0BiUc+L/TyejpGjGHpJfN6paWdia8bWcdWDIYlDpVkfYTkn/Adrg3dM2dXC0/VN iz086MXwMczaWJmsTuhdGqfgmEPXzky11e1C5I9qdRl7EY/0YdzQzVClK/ojiGoY+L+/ V9Zpkt8RCuVAvKAO06hRLfvpMzqnkO8YSikRuOG/mQNYZcAnW9Zu4YUKge8X366ZSD2g ZpziQHZdolIPO2coH6IClkHvHk8sk+I/y7PacbmYvz8rv6x7H8p5gGdGF5AY8/vhmgDd o4mg== X-Gm-Message-State: AOAM531vl9riDUnbOvjJF4buBNAg+Y4zu8BhU7rNUmCjwqiiCeuTVYj0 j77FgCSdIZXogL8PvX0hFIsUNw== X-Google-Smtp-Source: ABdhPJyhBoRgttc7rYISPUYA+Q/co2CGb5UirsMY5xm6BOjJAi3m92tDEutnaY/Vuc3lzAn9YHnveA== X-Received: by 2002:a63:ff0c:0:b0:3fd:29dd:c478 with SMTP id k12-20020a63ff0c000000b003fd29ddc478mr431918pgi.291.1655139121368; Mon, 13 Jun 2022 09:52:01 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id fs23-20020a17090af29700b001df2f8f0a45sm5571473pjb.1.2022.06.13.09.52.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 09:52:01 -0700 (PDT) Date: Mon, 13 Jun 2022 09:52:00 -0700 From: Kees Cook To: Ard Biesheuvel Cc: linux-arm-kernel@lists.infradead.org, linux-hardening@vger.kernel.org, Marc Zyngier , Will Deacon , Mark Rutland , Catalin Marinas , Mark Brown , Anshuman Khandual Subject: Re: [PATCH v4 26/26] arm64: kernel: move ID map out of .text mapping Message-ID: <202206130951.57B5E48736@keescook> References: <20220613144550.3760857-1-ardb@kernel.org> <20220613144550.3760857-27-ardb@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220613144550.3760857-27-ardb@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_095205_572031_C5D47EA0 X-CRM114-Status: GOOD ( 12.35 ) 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, Jun 13, 2022 at 04:45:50PM +0200, Ard Biesheuvel wrote: > Reorganize the ID map slightly so that only code that is executed via > the 1:1 mapping remains. This allows to move the ID map out of the .text > segment, given that it no longer needs exec permissions via the kernel > mapping. > > Signed-off-by: Ard Biesheuvel This could be done earlier in the series, yes? Regardless: Reviewed-by: Kees Cook -- Kees Cook _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel