From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762502AbdJQNzQ (ORCPT ); Tue, 17 Oct 2017 09:55:16 -0400 Received: from mga04.intel.com ([192.55.52.120]:52598 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751828AbdJQNzP (ORCPT ); Tue, 17 Oct 2017 09:55:15 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,391,1503385200"; d="scan'208";a="163591309" From: "Huang\, Ying" To: Zi Yan Cc: "Huang\, Ying" , "Kirill A. Shutemov" , Andrew Morton , , , Michal Hocko , "Kirill A. Shutemov" , David Rientjes , Arnd Bergmann , Hugh Dickins , =?utf-8?B?Su+/vXLvv71tZQ==?= Glisse , Daniel Colascione , Naoya Horiguchi Subject: Re: [PATCH -mm] mm, pagemap: Fix soft dirty marking for PMD migration entry References: <20171017081818.31795-1-ying.huang@intel.com> <20171017112100.pciya6pmo62owpht@node.shutemov.name> <874lqy7yks.fsf@yhuang-dev.intel.com> <59E5F881.20105@cs.rutgers.edu> Date: Tue, 17 Oct 2017 21:55:12 +0800 In-Reply-To: <59E5F881.20105@cs.rutgers.edu> (Zi Yan's message of "Tue, 17 Oct 2017 08:33:05 -0400") Message-ID: <87vajd7ubj.fsf@yhuang-dev.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zi Yan writes: > Huang, Ying wrote: >> "Kirill A. Shutemov" writes: >> >>> On Tue, Oct 17, 2017 at 04:18:18PM +0800, Huang, Ying wrote: >>>> From: Huang Ying >>>> >>>> Now, when the page table is walked in the implementation of >>>> /proc//pagemap, pmd_soft_dirty() is used for both the PMD huge >>>> page map and the PMD migration entries. That is wrong, >>>> pmd_swp_soft_dirty() should be used for the PMD migration entries >>>> instead because the different page table entry flag is used. >>>> >>>> Cc: Michal Hocko >>>> Cc: "Kirill A. Shutemov" >>>> Cc: David Rientjes >>>> Cc: Arnd Bergmann >>>> Cc: Hugh Dickins >>>> Cc: "J.r.me Glisse" >>>> Cc: Daniel Colascione >>>> Cc: Zi Yan >>>> Cc: Naoya Horiguchi >>>> Signed-off-by: "Huang, Ying" >>> What is effect of the misbehaviour? pagemap reports garbage? >> >> Yes. pagemap may report incorrect soft dirty information for PMD >> migration entries. > > Thanks for fixing it. > >> >>> Shoudn't it be in stable@? And maybe add Fixes: . >> >> Yes. Will do that in the next version. > > PMD migration is merged in 4.14, which is not final yet. Do we need to > split the patch, so that first hunk(for present PMD entries) goes into > stable and second hunk(for PMD migration entries) goes into 4.14? Oh, if so, I think we don't need to back port it to stable kernel. But we still need Fixes: tag. Best Regards, Huang, Ying