Received: by 10.192.165.148 with SMTP id m20csp2278653imm; Thu, 26 Apr 2018 08:28:52 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpVjul/0DoaXxHC5Qz5NZKKjtNTENTK43Zoz7wQd+nV0849UDat7SHF4JjginnEl8TKSmnv X-Received: by 10.101.76.130 with SMTP id m2mr8259483pgt.23.1524756532733; Thu, 26 Apr 2018 08:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524756532; cv=none; d=google.com; s=arc-20160816; b=yGYICqXHU9hn+4Mrt1MSzn+ura8k1RaSl9YJ+MoWBRKpw9DPCs6g/Cvy75HujBW7C5 6EezMh5aPwjCQfDrZdCjFhSbuKYVDPkeM4/R6yURjyQew+yQRQcxJkwQhYDXpnwbzFxW saifMYl0xMnx6uG8LBgDFEjT3BjHknh4x4A0cFzx7V2uNjNLBMbkIguB1JRzchx3Yoo5 CjrGOO/5wRQUZfRPEwpNg9F7vJFPqWgv/yhVxqF3RvfqUl82SlBfYUkz7EbFg0ZHbsGO //b/zCh5DCxvo2QB9zbmnnUFoU0W2bhbWzT9oyNfFSbn+uMTLHVSTFXlr5oJ1HrpLqOQ toBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:arc-authentication-results; bh=Ae3DVLTCoYDnU6VmVcepH6e2GywLdh13beywfdAvyDQ=; b=WRxGhFOmB6WjreZifpY5BEN4DnU2ThNpNqRhrhTfurxqWfDV8md01gZgixuofCY7/6 LXm5rBRhf2YrIC9YjVO4Vxvc4xT3F8COAUwbS2Q3KXcDrIz91qxZwOA7BVTwM4Nyg5vN GRScEb12tAUJWfm23TY1xnpMvaOOaOscXzm+G5Gv+bYwbulyxx7MhdtN/rKcLuqCZmQV rLCrIuT9nTi9Ny6JfR0E1lsjKslD1o78xTmyfJL2q3l4YA27FXnWG/2xNMrzWyQ+D7pn SyafBvRqyqbh4kTinhvKWY5jUrha3teoClVXHRobgPA7I2xQB+h9222tR6fAv9Dr8+b8 h1/g== 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 p1-v6si18755279pld.412.2018.04.26.08.28.38; Thu, 26 Apr 2018 08:28:52 -0700 (PDT) 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 S1756703AbeDZP1Y (ORCPT + 99 others); Thu, 26 Apr 2018 11:27:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:59038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756262AbeDZP1V (ORCPT ); Thu, 26 Apr 2018 11:27:21 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9CC7421745; Thu, 26 Apr 2018 15:27:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9CC7421745 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linuxfoundation.org Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=gregkh@linuxfoundation.org Date: Thu, 26 Apr 2018 17:27:12 +0200 From: Greg KH To: Joerg Roedel Cc: Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Michal Hocko , Borislav Petkov , Matthew Wilcox , stable@vger.kernel.org, Andrew Morton , linux-kernel@vger.kernel.org, x86@kernel.org, Toshi Kani , Joerg Roedel Subject: Re: [PATCH] Revert "x86/mm: implement free pmd/pte page interfaces" Message-ID: <20180426152712.GA17729@kroah.com> References: <1524755647-18695-1-git-send-email-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1524755647-18695-1-git-send-email-joro@8bytes.org> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 05:14:07PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > This reverts commit 28ee90fe6048fa7b7ceaeb8831c0e4e454a4cf89. > > This commit is broken for x86, as it unmaps the PTE and PMD > pages and immediatly frees them without doing a TLB flush. > > Further this lacks synchronization with other page-tables in > the system when the PMD pages are not shared between > mm_structs. > > On x86-32 with PAE and PTI patches on-top this patch > triggers the BUG_ON in vmalloc_sync_one() because the kernel > and the process page-table were not synchronized. > > Signed-off-by: Joerg Roedel > --- > arch/x86/mm/pgtable.c | 28 ++-------------------------- > 1 file changed, 2 insertions(+), 26 deletions(-) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.