Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3543619pxb; Mon, 24 Jan 2022 11:51:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxG4WsbAxqe/haumuhfOYiNn7MKuNMkrf6YS917S7xxp0MzeQoyj0um1mNsLG7CdAKBooV/ X-Received: by 2002:a17:902:c201:b0:14b:2c5f:b278 with SMTP id 1-20020a170902c20100b0014b2c5fb278mr11783909pll.13.1643053886109; Mon, 24 Jan 2022 11:51:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643053886; cv=none; d=google.com; s=arc-20160816; b=pJtt5ZHNnkdhykwRNd8KmWrGuBrYMSVgKasY/ww8lxt0urIqWALPxrxj8f2db23sVZ BLgK+M2TFrCvCKVEKnZC8ug+1yH0Mj0Fmi+sxlH+oVHtMLYOZAZrzEtQhuwK7GErR40q r4EjvWK2FD6/iW6YCSsF0r67TJ57iELeihKLS8UjjLUCvM8abKus390Y8low4IAKLITE Fne8IMOuEfSgxejA3A65fHeNhBlXQ3kT2cGY1yuEJiMmvws8LrZQRa4lFRw9y88+UKRI Ssga17OqmX3jLMJElDjOWByUdEegiE2dXH+X6VBModL1Whaho6gfNr+gbnAIFuMgxNR3 8f+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=08wQ/FjWhd9KqUOc/eygK6tPJPPOkuZJXthR/BJ1yOQ=; b=BdO9uX+beNWtCeCXGQPZSsmGQoIRP4o54BUKvrbOQdI4cch5IDkWhLrhkM38gPqNpA 93fJoH5TD/FDVDkpXGh+y/U1OnXNW6BNB4bfLulebtmhzD2ZeaTHZO1IsWBhP0N60ws3 Jgu4AmCOF5xSLymQ/QQI7GdycRXbCBIovUP4+rVnWiwwe8mTWc4Vy7SwEWfppbeT8F50 leRyyiJFLVafGo/JQqRxkZ81WHkqY9qYLk2QdQsnfPEMv7dkBe3Cuu2EuvDFeyeAPXjj Yx1ObYdQZvYHEPTQ2SgsNTY/p2wXVC+XeWk9bAmwviQvpUV3/ojtTqFyfzROdf1VzACi hSRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Yk1yEoQ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k64si6717442pgd.697.2022.01.24.11.51.12; Mon, 24 Jan 2022 11:51:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=Yk1yEoQ8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244960AbiAXSRS (ORCPT + 99 others); Mon, 24 Jan 2022 13:17:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235979AbiAXSRQ (ORCPT ); Mon, 24 Jan 2022 13:17:16 -0500 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB925C06173B for ; Mon, 24 Jan 2022 10:17:16 -0800 (PST) Received: by mail-pl1-x636.google.com with SMTP id u11so16449637plh.13 for ; Mon, 24 Jan 2022 10:17:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=08wQ/FjWhd9KqUOc/eygK6tPJPPOkuZJXthR/BJ1yOQ=; b=Yk1yEoQ8dSUuH70Owq9SrFlZ8iEBBJ2JlN/Agb3VcDyAS+Hw0PLCUcGTQpbYUlVRhd NDKuZ1ulFRT9MptnA02ChWFhtT3rDQeKp9ERrEkZA3dqUKvfJSFoncnYERrpOnuTgf1+ CmTQyGTU7sKiyA6We0JdSy9IsOlfSvw24gZc4/voFoOToWu8UlkXa5nAgAMRBkjm0nZt bM9uFooFDB43qdI8zab1kZd+yowvFtUOdXgai0A3iv6f/SansSGZiT3+PSutCLaR1Ivw Uian5SN/N/hKzlE79Imv3L9dK64i023UabCW0eSZQjZj9PfocX/l4B8yL47XW04ond61 oRQw== 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:in-reply-to:message-id :references:mime-version; bh=08wQ/FjWhd9KqUOc/eygK6tPJPPOkuZJXthR/BJ1yOQ=; b=5dtTX8dmYVCvzfZ/bE75onuWltiAjzY+uYu3Nb+5jS143tnuXz4d9QM8HV1eQSi09o CNjFbrHMZpnsBD/IrpoVb6ibDAK5qTJrfmnWB4/EAWukgN8vgRAtbHfNge7OScze+6nQ vKz9U5WvFcggGNVZyl4iUjBeZsvh8R95ZkPuEnPRW0+gKSIw/1HAAiLS6H9RCX2q/nsl vQx6Yg41ybh37+BisNS6MTfisv1XzMJzB2+GP8gYi6PMfXKFL8DIEM0m6fqKZSSazi9o UQBxijODGQ9Nb6ntnuqnxqQ8uyiajYtpjEuuhsNDSgzGMXga/NVvRE19k3zIurlDvzZW wVVQ== X-Gm-Message-State: AOAM530FeVeBOxnDqBOul6vplGeAnDypsQ3zBP2qElYipcsQUaVUGczI bObI1wLriioM9ihEAxzyzqCoPF/QMgozhw== X-Received: by 2002:a17:902:7c09:b0:148:e02f:176b with SMTP id x9-20020a1709027c0900b00148e02f176bmr15367461pll.130.1643048235855; Mon, 24 Jan 2022 10:17:15 -0800 (PST) Received: from [2620:15c:29:204:1f99:bd65:fcbb:146c] ([2620:15c:29:204:1f99:bd65:fcbb:146c]) by smtp.gmail.com with ESMTPSA id ce15sm55886pjb.5.2022.01.24.10.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Jan 2022 10:17:15 -0800 (PST) Date: Mon, 24 Jan 2022 10:17:14 -0800 (PST) From: David Rientjes To: Ard Biesheuvel cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mm: make 'highmem' symbol ro_after_init In-Reply-To: <20220124170555.1054480-1-ardb@kernel.org> Message-ID: <346af9f-d9ea-463a-686e-1cce79a1c8d2@google.com> References: <20220124170555.1054480-1-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 24 Jan 2022, Ard Biesheuvel wrote: > diff --git a/mm/memory.c b/mm/memory.c > index c125c4969913..50e82cb94ccc 100644 > --- a/mm/memory.c > +++ b/mm/memory.c > @@ -106,7 +106,7 @@ EXPORT_SYMBOL(mem_map); > * highstart_pfn must be the same; there must be no gap between ZONE_NORMAL > * and ZONE_HIGHMEM. > */ > -void *high_memory; > +void *high_memory __ro_after_init; > EXPORT_SYMBOL(high_memory); > > /* Same should be true for the mm/nommu.c variant?