Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4973847ybf; Wed, 4 Mar 2020 14:39:14 -0800 (PST) X-Google-Smtp-Source: ADFU+vug22FTLWfgtN/U8p3ts5s0tnZXHE8fCtiyeHiGiEd8cvV+zIrEgB1iMSgckb7z5na9qwoj X-Received: by 2002:a9d:5e8a:: with SMTP id f10mr4361974otl.143.1583361554171; Wed, 04 Mar 2020 14:39:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583361554; cv=none; d=google.com; s=arc-20160816; b=gDVw6/z6+Rw/+i0Dt9IF6S5rQsl6VH5WNUoAM7NG/wIv4PScWR+lOIqlcf6v7QGZkE hmIeX+9B71M49bHxvh6NW1rrvOANTpyr4M8KRTv8uv9AUdprMmsEg4Ao9qG/XYANRJmY urUUPZMewpiQEkfIDi091FTMZoHxQfngNNZqQQMi8iNUdq3IwYq5i08vjjE6xxmKNIkm CaMOXaxcN94p9eSRSqyBH5NSTsm/zrJTgkjuitv0zpG8WYVyzCMCrPzwdw6ZIe7dE6j8 nv/EzYB003pJdm/nXM8+eTo6Rc9T/OSJgZWWaNmkEKW/oaKy0PbEg4hGSCZ5bXK0r6pj VrQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=hcNpYZwuTDU31eLYEkVnPJlrkxRDwFPdhfWuzCYFOS8=; b=ZK9lxBsOwW9HtLDp32fYzLkB16pVJt+PPW+R90wEvcgGAjRUbkpKC3nErGc3TyMNEr ku0IL7smlBfOeYsl3FbTAdK4CpE/axrEe5s6W9Fn3L3lpEPQRXwISp9xYY0qCMaYChym 4tNLJHLBzcGWFcT7oY2S1T+76XMOJ9Nv/k38PBAaZtJ4cI8IfR+KiL0fEihwU1wvt/Iv 0TIlMNhVmI14y793NlDqVU9Pep6Gu2x5cC23v4eX7uHYdNMSvMMSQRDPtBsmi9R5UW4P QYRG/G+hHyVkkmCyQnlR5jcFzgQnbdPCQ5kDqLqGgotkjIogWbxcMhNWfNjYNv3Iwe2o cBLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OP+wwZho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e206si1977718oib.210.2020.03.04.14.39.02; Wed, 04 Mar 2020 14:39:14 -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; dkim=pass header.i=@kernel.org header.s=default header.b=OP+wwZho; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388412AbgCDWiw (ORCPT + 99 others); Wed, 4 Mar 2020 17:38:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:46638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388337AbgCDWiw (ORCPT ); Wed, 4 Mar 2020 17:38:52 -0500 Received: from mail-wm1-f46.google.com (mail-wm1-f46.google.com [209.85.128.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D03262146E for ; Wed, 4 Mar 2020 22:38:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583361532; bh=mtEUWSACFq3wx/O9ua/zYi51pShN+7Wwl3THKld0vGA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=OP+wwZho5k8DOSql7YbicixnD+qT9zRorhzq7SykBHETZy57fLzzSV+yzfQTnr/tG 2mFFafEL9RK8r2YmKC6lmrefqXmcEuedSTNPM39XCuLk8a2jk+PD3Jy2Af3nuMwxpg eScP/ibk4CZfyl8pnQhRiwsSjdX72KFXRYh4oIxQ= Received: by mail-wm1-f46.google.com with SMTP id a141so3585960wme.2 for ; Wed, 04 Mar 2020 14:38:51 -0800 (PST) X-Gm-Message-State: ANhLgQ2J6t7gHqJSezwQzb6gAfoYGaUIeokFNVTxiKZV2lOkIsfNrZrT xcDfaIfkufGZ6/Chn4ds9oKapsHFAYT2/UF8gUmjaA== X-Received: by 2002:a1c:9d43:: with SMTP id g64mr5410843wme.62.1583361530200; Wed, 04 Mar 2020 14:38:50 -0800 (PST) MIME-Version: 1.0 References: <20200303205445.3965393-1-nivedita@alum.mit.edu> In-Reply-To: <20200303205445.3965393-1-nivedita@alum.mit.edu> From: Ard Biesheuvel Date: Wed, 4 Mar 2020 23:38:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/4] Bugfix + small cleanup to populate_p[mug]d To: Arvind Sankar Cc: Dave Hansen , Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , linux-efi , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Mar 2020 at 21:54, Arvind Sankar wrote: > > 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} > Acked-by: Ard Biesheuvel Tested-by: Ard Biesheuvel > 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 >