Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp1777639rdh; Sat, 28 Oct 2023 06:55:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEhETSmfiAbinC1xg5aGh6c12ebNtA0PPwcUsmWIEStRYa0pzVEhO4VfhXoScbTI7xEl023 X-Received: by 2002:a05:6808:181e:b0:3ae:4cad:91a0 with SMTP id bh30-20020a056808181e00b003ae4cad91a0mr7473856oib.6.1698501318850; Sat, 28 Oct 2023 06:55:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698501318; cv=none; d=google.com; s=arc-20160816; b=b9YS39MGmQOnYj3ZpY+U+z+MIdbBlubmQC6qmc0Z0ZfYMn+A+i5pwRjnI96nQASxg0 CHEZUkpqIvi4otL6xzQLaYcPlCZvvhd6R/Du9MytmPj5oHowUJ3HIENuKBFeKmuSDU8x 8mRK6DExyK2ZtMngee2Mcg13e+2p0FIqVJuURXwWi/CicRtE0Sn+UBDOX8yD6xqW5zMZ 8gN6vL1nrLBYFnDzwgDewVUXz6UGBqC0Ltd5MAKFArqvD4s5jBmNUYaoXKC6WZNT2CtR 9Se9Q7i4xqkUHurUJUGYBIfQMl4hBES7Q3nkSXbbl/5j1rKae/d30cfL3uYvHD6XdN1V NK9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:sender:dkim-signature; bh=13B4rWNHywHRgMR1Bza+TmHKe1mS1JOxZEq7LGiAlh4=; fh=lK08FZTbtM9QSrHuy+7byXWUBTqb0OGlQi39G2mxRZc=; b=Z2xImhgsOnJZbo+vWdvNOudxTegK+aVeXXkU4wbGHKprhaynh1ZxeDa+oMpOgzZkGC Ocgshnya4IEIMVXWkZW/RFUWx4iPYMEB5Oxtzz2ecsD3IpZiYdDHXc9ayTof4Ova8Gxx Wy2+MXCcl4y4AiCyhk++/iogBV8BTFk27xw+XPhlJ1JWZi0BhlvQZPV+EanZv3t6K3QX iY/mEJjPZtuxDKB04aUU3ODWwLW83PP+w6Hkjk9DoFLXgGgJ25M+trCluOyAB3/fd9mE oa/dpNQWLp6qtLxn9GciKOfT8ch+w+Mwxo17zuIe0p3AT53vqY8ybzAX/YrCq1tHne5H 1Iqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k61sdXge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h63-20020a638342000000b0059c55ce6d4asi2486862pge.586.2023.10.28.06.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 06:55:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=k61sdXge; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id B4234804C616; Sat, 28 Oct 2023 06:55:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229520AbjJ1NzN (ORCPT + 99 others); Sat, 28 Oct 2023 09:55:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229454AbjJ1NzM (ORCPT ); Sat, 28 Oct 2023 09:55:12 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F7A593 for ; Sat, 28 Oct 2023 06:55:09 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-509109104e2so440907e87.3 for ; Sat, 28 Oct 2023 06:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698501307; x=1699106107; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=13B4rWNHywHRgMR1Bza+TmHKe1mS1JOxZEq7LGiAlh4=; b=k61sdXgeir+tpNPDs7GCR1EYlYcU6MCAOinh4K0Icog3K47dDnu5fMcMYQvHtRx41G fx8kpeieUWSvTYegmIxDS/O5s1jA2ypcNwD5kfVOP9Dn3GiGklk2iOiaH3a0L1jEzPJx jaG3/JdEgbZImED9CK/E5Gt8CaaKRgBvoHvzz2A4Gv+fwWlKnHa1AgMTzzCsVS2V+nLb zzIJAiYx7UK44+LM9Q57W2Y66iS2qChQmrLSY3PxhoLDAYJ7q7c//ZD+q3tvJ0/RaSJi lkAy1hjQQddY3KynMHNiRd/z/PmrMZZQ9CC1B1RVOE62wcvlL9X+Cl7zaQdKTHkkwyna xoNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698501307; x=1699106107; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=13B4rWNHywHRgMR1Bza+TmHKe1mS1JOxZEq7LGiAlh4=; b=hrGSFC8neKkJT/N7bEEUl8NzeG2PjavH/9fIqHxLX6i+xbrWSRlRewEaQqiuVpNtpe vq2uoj4Mi9+MZIoIVb3C/KAD6E/ixEcn/XvkjsW8+t35GvOPZtobu0wm3InHfTdm7hhc kI8M4V64OKL6j46nwOIFekoSFDzJVcIW6Y+OOMhU2mPExqdll5gNQ0F1ynotwgZJL+zL pMTFBKgQORq7JShRbWFO79XNR8Cadoqcz9+WVX2H/kJMPBU0m/TKpbbPBTZZhM2ID+2T by9izrp2pA3Q9r/dePoWoWsP4B7SGVwqG/0/SfV3I3K/EJjhrLoK+R663YS96sAMy4ko q80A== X-Gm-Message-State: AOJu0YxhnoLVCkN9+qGNlU0017M6HcFafjCu4h0pzOfBaDSRPn2tMQLs V3oXjMWKgenfER3XArdtRU0= X-Received: by 2002:a05:6512:14c:b0:506:8b22:bac2 with SMTP id m12-20020a056512014c00b005068b22bac2mr3873234lfo.4.1698501306818; Sat, 28 Oct 2023 06:55:06 -0700 (PDT) Received: from gmail.com (1F2EF1E7.nat.pool.telekom.hu. [31.46.241.231]) by smtp.gmail.com with ESMTPSA id o15-20020a1709062e8f00b009c70b392051sm2816621eji.100.2023.10.28.06.55.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 06:55:06 -0700 (PDT) Sender: Ingo Molnar Date: Sat, 28 Oct 2023 15:55:04 +0200 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Borislav Petkov , Thomas Gleixner , Peter Zijlstra , Andrew Morton , Dave Hansen , "H. Peter Anvin" Subject: [GIT PULL] x86/mm changes for v6.7 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE, SPF_PASS autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 28 Oct 2023 06:55:18 -0700 (PDT) Linus, Please pull the latest x86/mm git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-mm-2023-10-28 # HEAD: a1e2b8b36820d8c91275f207e77e91645b7c6836 x86/mm: Drop the 4 MB restriction on minimal NUMA node memory size x86 MM handling code changes for v6.7: - Add new NX-stack self-test - Improve NUMA partial-CFMWS handling - Fix #VC handler bugs resulting in SEV-SNP boot failures - Drop the 4MB memory size restriction on minimal NUMA nodes - Reorganize headers a bit, in preparation to header dependency reduction efforts - Misc cleanups & fixes Thanks, Ingo ------------------> Adam Dunlap (2): x86/sev-es: Allow copy_from_kernel_nofault() in earlier boot x86/sev-es: Set x86_virt_bits to the correct value straight away, instead of a two-phase approach Alexander Shishkin (2): x86/sev: Move sev_setup_arch() to mem_encrypt.c x86/sev: Drop unneeded #include Alexey Dobriyan (1): selftests/x86/mm: Add new test that userspace stack is in fact NX Alison Schofield (2): x86/numa: Introduce numa_fill_memblks() ACPI/NUMA: Apply SRAT proximity domain to entire CFMWS window Binbin Wu (1): selftests/x86/lam: Zero out buffer for readlink() Dave Hansen (1): x86/boot: Move x86_cache_alignment initialization to correct spot GUO Zihua (1): x86/sev: Make boot_ghcb_page[] static Hugh Dickins (1): x86_64: Show CR4.PSE on auxiliaries like on BSP Ingo Molnar (1): x86/mm: Move arch_memory_failure() and arch_is_platform_page() definitions from to Jianlin Li (2): x86/sev/docs: Update document URL in amd-memory-encryption.rst x86/iommu/docs: Update AMD IOMMU specification document URL Justin Stitt (1): x86/tdx: Replace deprecated strncpy() with strtomem_pad() Mike Rapoport (IBM) (1): x86/mm: Drop the 4 MB restriction on minimal NUMA node memory size Documentation/arch/x86/amd-memory-encryption.rst | 2 +- Documentation/arch/x86/iommu.rst | 2 +- arch/x86/boot/compressed/sev.c | 2 +- arch/x86/coco/tdx/tdx.c | 2 +- arch/x86/include/asm/mem_encrypt.h | 4 +- arch/x86/include/asm/numa.h | 7 - arch/x86/include/asm/pgtable.h | 8 + arch/x86/include/asm/processor.h | 8 - arch/x86/include/asm/sparsemem.h | 2 + arch/x86/kernel/cpu/common.c | 40 +++-- arch/x86/kernel/head_64.S | 4 +- arch/x86/kernel/setup.c | 2 +- arch/x86/mm/maccess.c | 19 +- arch/x86/mm/mem_encrypt.c | 34 ++++ arch/x86/mm/mem_encrypt_amd.c | 36 ---- arch/x86/mm/numa.c | 87 +++++++++- drivers/acpi/numa/srat.c | 11 +- include/linux/numa.h | 7 + tools/testing/selftests/x86/Makefile | 4 + tools/testing/selftests/x86/lam.c | 6 +- tools/testing/selftests/x86/nx_stack.c | 212 +++++++++++++++++++++++ 21 files changed, 404 insertions(+), 95 deletions(-) create mode 100644 tools/testing/selftests/x86/nx_stack.c