Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3833768ybf; Tue, 3 Mar 2020 13:49:07 -0800 (PST) X-Google-Smtp-Source: ADFU+vvVb6qgLSzeMtCHhC+TDIndLevv+wRr3XSqadDyOt5E0xGRvNGhI3ykyJHOa8TBakltc1Qf X-Received: by 2002:a9d:3f8:: with SMTP id f111mr2816536otf.204.1583272147758; Tue, 03 Mar 2020 13:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583272147; cv=none; d=google.com; s=arc-20160816; b=TIVuiCscYPCSYEkfrnhVzayk7CxTawSgYzni5DiiqWcEucvP3Yrc1q0R+hagWNidFR N+ZlpiMaA2WOsHs7j0BtivuJAhm04y6tjKfjY6FKb2OmuTdWZ0UE9/Gr9E0tG8KKbBw0 gfK/CFmlEVY0OhP+YkqT26z9fnWUy0LFx4PJltGjApHU2FG7Gci6PG7HBiY+mNJjJguK qlruzjHetU4nvadJFGdnbOOVUr4lMQYNKxMQwY9kN7kT1X6pq/wvyubgPDxUtew1V4rV Lr6mGjGJRvViPaQekVvXEzicO0TfO6j+P4Y2c7zF/3CNOZYybGv76CeiIv1cdALZLdTh iBVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=M8leJle+RWUzuAGtnKfypyt7f42XpUo4qzg+KJegl9Y=; b=Ndnbh9hWgDTWbJ+csI0Eub4Hz5MjVIKZY97qODcSF8aXtOg/iwsbv6uj94qQqTDNWM UGi1ZB5y2Xp1b2J4EsvquKxJG8lgU28TTriFswF+J9PMXhANnoIxqwf0MlyZmO3B0GGA MYD3Cog6UdHNVxR2PSG4y/xgrzKpL6eJuC7SmPBjSMuvNvNJt7mJ55Wx7f4hCD7c8tew 0jhi1wH7MpxEINbpCgvoRQt7GiqaGVqTee72zPD7XIcPgcJ0qWYrHlOz2nGDDjCd1o2O i9NIAQ11QECA18JD5Qxdad3R1BbT8eHDi+QFI8MSvGT6jS1t1JyU/ozOBOU+Yc+ggIu9 r/BA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x7si1704966oto.183.2020.03.03.13.48.56; Tue, 03 Mar 2020 13:49:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732091AbgCCUyt (ORCPT + 99 others); Tue, 3 Mar 2020 15:54:49 -0500 Received: from mail-qt1-f195.google.com ([209.85.160.195]:34076 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731387AbgCCUys (ORCPT ); Tue, 3 Mar 2020 15:54:48 -0500 Received: by mail-qt1-f195.google.com with SMTP id 59so2799248qtb.1; Tue, 03 Mar 2020 12:54:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=M8leJle+RWUzuAGtnKfypyt7f42XpUo4qzg+KJegl9Y=; b=OjU4ncjqn6WeTUDjpv0a627yTlL2zxH8FzdFxLtVsA8sfXrtrQZphi/hk2Um+mMjwp gxSMRo/MMkheGKEJXvEKL05yacshgB4hgVEhSvioUTSDOfiiMqLOju6N4T5QjUNAsc8n uFsvFOdafgBKI8+NPVWsQTXQGT8zIk7CPfw78oeixdMzcdM8bHVKAnkr/KLv5hHx2l6D kBUcD3lXM6w/ISfTLQkkdSZMMRzwbtnGlZmxC+tpWfMOEuc5fGKmsit4kLHqfXirVx8M NvKZhl6zLq0N0JGIWAh3YsbUj+yYUtUeQuQU/8urdXNKi2QlvIGcUOco4yumCX9SZxVi F5mw== X-Gm-Message-State: ANhLgQ1IrydboRBkfcZlLhEeVqGV6rsYwwJAIg7PG6Si6ZZEzp3MUGh3 35lK+h8NscWI0ogzV5FlPVU+YcYfVD8= X-Received: by 2002:ac8:16b3:: with SMTP id r48mr2486825qtj.31.1583268886268; Tue, 03 Mar 2020 12:54:46 -0800 (PST) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id v12sm11473041qti.84.2020.03.03.12.54.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 12:54:45 -0800 (PST) From: Arvind Sankar To: Dave Hansen , Andy Lutomirski , Peter Zijlstra Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , x86@kernel.org, Ard Biesheuvel , linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] Bugfix + small cleanup to populate_p[mug]d Date: Tue, 3 Mar 2020 15:54:41 -0500 Message-Id: <20200303205445.3965393-1-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch fixes a bug in populate_pud, which results in the requested mapping not being completely installed if the CPU does not support GB pages. The next three are small cleanups. Thanks. Arvind Sankar (4): x86/mm/pat: Handle no-GBPAGES case correctly in populate_pud x86/mm/pat: Ensure that populate_pud only handles one PUD x86/mm/pat: Propagate all errors out of populate_pud x86/mm/pat: Make num_pages consistent in populate_{pte,pud,pgd} arch/x86/include/asm/pgtable_types.h | 2 +- arch/x86/mm/pat/set_memory.c | 74 +++++++++++++++++----------- 2 files changed, 45 insertions(+), 31 deletions(-) -- 2.24.1