Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2027527rwl; Thu, 6 Apr 2023 05:03:17 -0700 (PDT) X-Google-Smtp-Source: AKy350Zhwjen0BeMQcECCz5y7vNGkBW64MXYJ94vhGKwQIYBgfJ/PCxaxXeJ8uw7dF1eO1e4qnmW X-Received: by 2002:a05:6a20:c4aa:b0:d9:4c19:fe6a with SMTP id eo42-20020a056a20c4aa00b000d94c19fe6amr2975176pzb.9.1680782597402; Thu, 06 Apr 2023 05:03:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680782597; cv=none; d=google.com; s=arc-20160816; b=dB1wbgkaZPuSwVnkJV0yRihLyWn0GjTYyAZqXfV3JbTec6KBlHCwIH0+j3T1jL2Ytl Wv8Rhg+0rV5+mGQJnzjnTBbhwkOyuzatRF3I+7MwZO4NUzensJSHoVVmyzKK/38tyi8n p4mj+5t3HebEZR8lU2gY1uaTD50IPJQr0V8Rg9A8HQxsfLPaAjO5KJ6PFkdPLgyqlaQP czaA0RaDcQb2yB15LJMFjI+MHgNXj4lBX1i+Jb1HiEB53CsWljBQi0/GQ8eT6xwdnAT8 cJBP2mbL9vTRU+wcSfhYpy71Iw0Vg7MPp+aHIG21il42xbXl96RPVG1Dp1fb1RgZ1aaV iwbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hYu6beRr7Ncw3h1cfQofNH9KOL1VzFTX2Sp4LLx77mM=; b=XcgnrovLG328Z+9tcGRTjd2Gt/lmYr3jiUgh/zSV+xaGEP5CHwNcwUCyjpA249cNnu XopNnPyyCaPMHEZqz+Xun5n2iIZn8zWGbnhEbsJK4w/Ru7j5uhA3MHRhRxsZH6WYvQ8l vOvX/4jPTut49akB2dvSo4mtSUiBFMb1Q57Ajj1TOXIPskUmhbRQQJDGsnMLDL6XTgUY h8jVOeiga7hAvgHMjO98YguBNYrG4eeG31PNWDllQrIENzlTTwELm6Y0WcrCaWEWQJy7 Fn5jPAwo1hyAgo9/wgVcKjN25VGJ95EAk6STeKOdcF/Kg37wCYDmMtd0/YLWbPC6yTQX 14Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C0sI28Ax; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u70-20020a638549000000b0050c0c9d2916si1046124pgd.870.2023.04.06.05.02.54; Thu, 06 Apr 2023 05:03:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=C0sI28Ax; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238092AbjDFL5w (ORCPT + 99 others); Thu, 6 Apr 2023 07:57:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238746AbjDFL5J (ORCPT ); Thu, 6 Apr 2023 07:57:09 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F7CBCC01 for ; Thu, 6 Apr 2023 04:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1680781989; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hYu6beRr7Ncw3h1cfQofNH9KOL1VzFTX2Sp4LLx77mM=; b=C0sI28Axi/fLT4B9E4iRQNGkCrVHRJZk/WVCG8Fb87t9aDUOrmByEB1CQ9l6ORudghy3Dz yfh79UWsdgeUEqgPW4kjd6iMhk9BNwXr+/XnNKP++HV0ZuDCItybtc/tkCJ+TkN9uS8m8h TEgE6u7WnQ9W1GOBP5tVGU4ymBrHOws= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-592-WnaSA1slOL2hfGK6Oe5gpA-1; Thu, 06 Apr 2023 07:42:04 -0400 X-MC-Unique: WnaSA1slOL2hfGK6Oe5gpA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 30F033C0F37F; Thu, 6 Apr 2023 11:42:03 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.193.200]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 993E014171BC; Thu, 6 Apr 2023 11:42:02 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id C77F61800081; Thu, 6 Apr 2023 13:42:00 +0200 (CEST) Date: Thu, 6 Apr 2023 13:42:00 +0200 From: Gerd Hoffmann To: Borislav Petkov Cc: Evgeniy Baskov , Ard Biesheuvel , Andy Lutomirski , Dave Hansen , Ingo Molnar , Peter Zijlstra , Thomas Gleixner , Alexey Khoroshilov , Peter Jones , "Limonciello, Mario" , joeyli , lvc-project@linuxtesting.org, x86@kernel.org, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v5 02/27] x86/build: Remove RWX sections and align on 4KB Message-ID: References: <20230405174059.GEZC2yq9WiXFsICyEy@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405174059.GEZC2yq9WiXFsICyEy@fat_crate.local> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > > Currently paging is disabled in x86_32 in compressed kernel, so > > protection is not applied anyways, but .init code was incorrectly > > placed in non-executable ".data" segment. This should not change > > anything meaningful in memory layout now, but might be required in case > > memory protection will also be implemented in compressed kernel for > > x86_32. > > I highly doubt that - no one cares about 32-bit x86 anymore. Indeed. ia32 edk2 runs without paging even in latest tianocore/edk2, and I don't expect that to change until ia32 support gets removed. take care, Gerd