From patchwork Tue Sep 24 11:29:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magali Lemes X-Patchwork-Id: 1988874 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XCd2J4zX4z1xsn for ; Tue, 24 Sep 2024 21:30:15 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1st3k3-00047H-Ez; Tue, 24 Sep 2024 11:30:03 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1st3k1-00045w-LB for kernel-team@lists.ubuntu.com; Tue, 24 Sep 2024 11:30:01 +0000 Received: from mail-vs1-f71.google.com (mail-vs1-f71.google.com [209.85.217.71]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 492DB40641 for ; Tue, 24 Sep 2024 11:30:01 +0000 (UTC) Received: by mail-vs1-f71.google.com with SMTP id ada2fe7eead31-49bbef8dc4bso1241749137.0 for ; Tue, 24 Sep 2024 04:30:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727177399; x=1727782199; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yLxJ1+ppS2eo8r7ajTu5rgCPQCStIbeH2KbDFfst3X0=; b=NEbV6fSk7h7v7MrIjvslXJ0Z6choHehtanjfayLcJELBiXr56qNhWpeufP01KGhlSf RGEZAyNCweiRDaEDe2TuFE6Vaqk6xgy3Cr1pU0UZ7Gk+vq4Ybzxn0LDkd6XBxKgrF5w9 O8JDT3jGBXTSWfNeEuv61nYjiOArL7uCmM/N4XXFgZG4FI+Kh6RUOKt29GpO6B68ALTq F173Y1uTL+S5Gv8SOlQCaeVH1e3y+SJb2LdLtMa/BX4rXjy629cJyC0CTHgz9wtt9WUu UWvJatYmwumMIgN5VQ2F465w1Yo0m0ba4nU9nlbR3XtjMo9L3cUpZkN00Z44SAtzr8JU Yh5Q== X-Gm-Message-State: AOJu0YzrL8WVHROQG7GKHQvqlhkDNKu7q7wfmDSX/Wd+trN1a+dWGpZq aqC9KlGZXgCiNBQ67+dRjEJgGaFmo2G0m84Gfah4MU5koRdCJb0Yb4auP8/GrS3ivzk4kYEKYDh t+1u4MnZSleKoq5mhxvK005bkdbccp9Bhf5ksFfp1KaR9yJAQET9ZRgWxqII7ari7vVNShmW8hS cwQaRmJeC9OA== X-Received: by 2002:a05:6102:2ad3:b0:498:d495:2cd7 with SMTP id ada2fe7eead31-49fc957da7bmr9267165137.14.1727177399279; Tue, 24 Sep 2024 04:29:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzC8vPRwzIgu4v/kG8oUvFYMQLIoKOWWazpNKPhZFBxAqsxbLcHPNPpEh9BJPxxzMuYK4ysQ== X-Received: by 2002:a05:6102:2ad3:b0:498:d495:2cd7 with SMTP id ada2fe7eead31-49fc957da7bmr9267139137.14.1727177398901; Tue, 24 Sep 2024 04:29:58 -0700 (PDT) Received: from localhost.localdomain ([2804:14c:14a:807c:645d:9d7:54bc:b0be]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-4a151860053sm678827137.24.2024.09.24.04.29.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2024 04:29:57 -0700 (PDT) From: Magali Lemes To: kernel-team@lists.ubuntu.com Subject: [SRU][focal:gcp/jammy:gcp/noble:gcp][PATCH 0/1] Expose and use the end of the physical memory address space Date: Tue, 24 Sep 2024 08:29:30 -0300 Message-Id: <20240924112933.242923-1-magali.lemes@canonical.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2080563 [Impact] Request from Google to backport "x86/kaslr: Expose and use the end of the physical memory address space" to address intermittent CUDA hangs. [Fix] Focal: backport Jammy: backport Noble: clean cherry-pick [Test] Compile and boot tested. [Where problems could occur] The fix directly affects memory management in x86 systems, specifically when KASLR is enabled. [Other info] #SF 00395854 Thomas Gleixner (1): x86/kaslr: Expose and use the end of the physical memory address space arch/x86/include/asm/page_64.h | 1 + arch/x86/include/asm/pgtable_64_types.h | 4 ++++ arch/x86/mm/init_64.c | 4 ++++ arch/x86/mm/kaslr.c | 32 ++++++++++++++++++++----- include/linux/mm.h | 4 ++++ kernel/resource.c | 6 ++--- mm/memory_hotplug.c | 2 +- mm/sparse.c | 2 +- 8 files changed, 43 insertions(+), 12 deletions(-)