Received: by 10.192.165.148 with SMTP id m20csp1634553imm; Sat, 28 Apr 2018 02:03:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrq//BYel7TUrwov4j7uibkyCCMqyhOtnfl4D5BH27YvBAi5+Ngp0uDpBml1stjjHNo1bfx X-Received: by 2002:a63:4285:: with SMTP id p127-v6mr4682807pga.421.1524906224378; Sat, 28 Apr 2018 02:03:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524906224; cv=none; d=google.com; s=arc-20160816; b=BzzRTX61RG1alE+P5jGMmVfmSC37LU2Ur03qwqfjduOVDJ1TGUeQ28PKv2cc0JK+Ae tRVuP6rAd3BKW/iMJO44R8lc2BWE8OoR+BpBXtwckHoBGPKmdvQns16IK+Iv4kVZReyJ xgnA6N5wSQKROuST55WujkUqmLvrtydP8pEGokplrwf9HHDa6F64LrfeinS8clRPtizt ewnug48RXvTKKoGCawYwA6fMt1wKZpQN1x/f1yEHGc0ee2QLtBK4FeR7f7WupYiYcGkL n69ZydGhewl8MTHrar/PEVQ9pV7QA/1tL309mrvdnUHcKELcq15JC5R0mB4WoQ90OFLi t/vw== 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:dkim-signature:arc-authentication-results; bh=RtyIm5GZ+LVP2VAsaf+1Qmh/ZSwpO6qUrS9rsauB9Ck=; b=rHqzdBcKBiSuKureF3933tGfTVxYl/qHX6Hj36uvFzO/cGMszDuSiYrHbClwyAx2ZT fiBQkHSTT7ve1tpMugsNPVwxow2COikxbXCcmkQ9u308HuhOSzQdRMkZtUnwRgeImacb PsK6xBUcQ5k71o+W3HuR3XBsK2Xh7uq4bNV/pdJR8ftJ/1H4zt2/1w4YVd/RQFYSQnPL J2IN64Sb5A7PB/wZITnLmfawjPVNyZ73rlYtI2Rx8Dv95pjlZ3P/I1vtcJ9xgzJHEDJ9 eVKCRHaHnR0YaZBKkRLYaOLHV5GgfSm10sP9lWfpHrma0bnyuvOgWNoFVNjxlNdErUom ZL/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=B978+4bm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 59-v6si3095074plp.179.2018.04.28.02.03.30; Sat, 28 Apr 2018 02:03:44 -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; dkim=fail (test mode) header.i=@8bytes.org header.s=mail-1 header.b=B978+4bm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759710AbeD1JCZ (ORCPT + 99 others); Sat, 28 Apr 2018 05:02:25 -0400 Received: from 8bytes.org ([81.169.241.247]:50440 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759592AbeD1JCW (ORCPT ); Sat, 28 Apr 2018 05:02:22 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id D1EEA325; Sat, 28 Apr 2018 11:02:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=8bytes.org; s=mail-1; t=1524906138; bh=8i7DEpzLMt/sUbOIZINvpNl6oJ3SHi3V3hGKs5io050=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=B978+4bmKxtlwhjONK5rYvCgp6SsziUaX4lrAPe7gTTY08za55weqgxIjbWn/9Lrh 0my/VdeHTIIf6X/PgGsQRiJHPGAPFW+HwE6mNiJpSsWrux9RseHeVTNKUvW3xCgCSl 7idT6o4LiHy7MZQ5OzTKlHCfZoUvaPOEavN3//a06oEbCLgNid/jKq4zfvg5Sj4QUJ sRP0Yy8o7Su2uxp/hb9RqPQwY3/X2KZKxfoZ/R2Mv+q+7SUqeYtVDd1jJz1QtLP5LA IQQFZ4hNNo8WbDVYiUrQxQ4AyHQHxlFMDF6BNpzmpZ2BJ9QWGK5uVQht3D95Ku+CB9 W/sx6kYkz5hYA== Date: Sat, 28 Apr 2018 11:02:17 +0200 From: "joro@8bytes.org" To: "Kani, Toshi" Cc: "linux-kernel@vger.kernel.org" , "bp@suse.de" , "tglx@linutronix.de" , "linux-mm@kvack.org" , "guohanjun@huawei.com" , "wxf.wang@hisilicon.com" , "stable@vger.kernel.org" , "x86@kernel.org" , "akpm@linux-foundation.org" , "willy@infradead.org" , "hpa@zytor.com" , "catalin.marinas@arm.com" , "mingo@redhat.com" , "will.deacon@arm.com" , "Hocko, Michal" , "cpandya@codeaurora.org" , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH v2 2/2] x86/mm: implement free pmd/pte page interfaces Message-ID: <20180428090217.n2l3w4vobmtkvz6k@8bytes.org> References: <20180314180155.19492-1-toshi.kani@hpe.com> <20180314180155.19492-3-toshi.kani@hpe.com> <20180426141926.GN15462@8bytes.org> <1524759629.2693.465.camel@hpe.com> <20180426172327.GQ15462@8bytes.org> <1524764948.2693.478.camel@hpe.com> <20180426200737.GS15462@8bytes.org> <1524781764.2693.503.camel@hpe.com> <20180427073719.GT15462@8bytes.org> <1524839460.2693.531.camel@hpe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1524839460.2693.531.camel@hpe.com> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 27, 2018 at 02:31:51PM +0000, Kani, Toshi wrote: > So, we can add the step 2 on top of this patch. > 1. Clear pud/pmd entry. > 2. System wide TLB flush <-- TO BE ADDED BY NEW PATCH > 3. Free its underlining pmd/pte page. This still lacks the page-table synchronization and will thus not fix the BUG_ON being triggered. > We do not need to revert this patch. We can make the above change I > mentioned. Please note that we are not in the merge window anymore and that any fix needs to be simple and obviously correct. Thanks, Joerg