Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5662137pxb; Wed, 26 Jan 2022 18:00:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDBXQeULWkyQjHqQ5tHC1aRQgvW9KBfTswmbHCDgHuHajBQfohgYML6Wek0OCZmj+uq+Iu X-Received: by 2002:a17:906:58d4:: with SMTP id e20mr1162203ejs.769.1643248817947; Wed, 26 Jan 2022 18:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643248817; cv=none; d=google.com; s=arc-20160816; b=igeSKEf6QT+0YE0Y4g5PTDg6GVmrUem5bGkLXnuwLPAhVyQa/XJBJWyuah5P1FwGht IMMHJ8woiXBlCjTZZxvplVyEcpqnPxYPSiwu2qQtBpxGb/24Xnh5R/4pwD358VIs30zi Frd6VwjoINIZbLxZ2EP89AtmNg+EYFikGZVxnWrOR4uXUgaE24nBmM4xqCXj78yje6AQ so+pNNa6JHusH5LerOaUUjXWpPBXEph4OfYkVkJewyCv1vHVx9PtZ2b00P4HdsJU1TX2 isID47AkddQYJe2CAaJLUJ4Mo3ATdOOa+WCyZ3t2zFWXxyH5VG9XdFUbw4hsmMM2z91Z JGUg== 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=wpccFDEg32oKMl65qvPOOg3B2yeumkN67JGbHTPE1nM=; b=omsXLmLo9PWAhhlt9ksmpsH3cjfZYgAISMvhGNAO+jYoE05yQOhxFDb33zCgfQTYtW NOZDEmL+3P+5lKzKL+tVtD1UlomMDv7LNDg9Pz7k+W2mklQ0rTSYW4BNFwCavhLx4Kzx lyD2OxBtw8wwKx0RNdo+VVJMeCNar5H5lnWo3AOmDHeayb6uL95YbJseNVqb9LLG8DQN a3/gS2WB3StMnIh3Ozm9y5dofT1Yhso541AgoMFgMDb8MeG9zxw5rTGi6WlCJJQkopnR co0Hva+aquSIUv0PboLTqyf/1azL8HCRGa9sI+4PYtUDyqSR9d4PSbRbIhhBOEQq8pT7 R9gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AX1hK+TS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n6si573654edw.263.2022.01.26.17.59.53; Wed, 26 Jan 2022 18:00:17 -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=@kernel.org header.s=k20201202 header.b=AX1hK+TS; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232641AbiAZVin (ORCPT + 99 others); Wed, 26 Jan 2022 16:38:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230369AbiAZVim (ORCPT ); Wed, 26 Jan 2022 16:38:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9DB3C06161C for ; Wed, 26 Jan 2022 13:38:42 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 5D8156191A for ; Wed, 26 Jan 2022 21:38:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8D55C340E3; Wed, 26 Jan 2022 21:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643233121; bh=0ecxNlw62WJvra/OF+IRNXwztuf5U1ZovPthVp24nSQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AX1hK+TSKreuoWTxwy2SoEkBiJd1PLC9xxTxgcTgf8s5jCGEpFNcr/AthESmPOqt3 WNHsU4mcilnm3W5VjoUTXmCCiwnafW065aC3ka4y8u/rWxkujFIqW4M4yx0mQCIyYu nt7wvOYqbtoyuovOa45rehHDPuqesR2T2Q3+uaVcksDoCTmWZnq7EiO9xIDfJdCDkt YNBtXE0R/DqQkw+zmQaTY1k1I0Dp4NGtDEzsWmpgNhSniynL47+GUm1T65fkvT3J3H i0kdyulnLLWgZ5PQTSIfhu365pTqyZbv71PureX78iRmo4pXP4fyUJsLQYQSJIhGm5 JtahrOxRQ+kVA== Date: Wed, 26 Jan 2022 23:38:34 +0200 From: Mike Rapoport 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 Message-ID: References: <20220124170555.1054480-1-ardb@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220124170555.1054480-1-ardb@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 24, 2022 at 06:05:55PM +0100, Ard Biesheuvel wrote: > The 'highmem' variable is only set at boot, so we can make it > ro_after_init and prevent it from being corrupted inadvertently, or from > ending up in a contended cacheline. > > Signed-off-by: Ard Biesheuvel Acked-by: Mike Rapoport > --- > mm/memory.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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); > > /* > -- > 2.30.2 > > -- Sincerely yours, Mike.