From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933449AbcASXIC (ORCPT ); Tue, 19 Jan 2016 18:08:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:36048 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933164AbcASXHx (ORCPT ); Tue, 19 Jan 2016 18:07:53 -0500 Subject: Re: [lkp] [mm] 7d2eba0557: BUG: unable to handle kernel NULL pointer dereference at (null) To: Cyrill Gorcunov , David Rientjes , Andrew Morton References: <8737tue3mn.fsf@yhuang-dev.intel.com> <20160119080211.GD2890@uranus> <20160119224536.GA2262@uranus> Cc: kernel test robot , Ebru Akagunduz , lkp@01.org, LKML , Dan Carpenter , Michal Hocko , Johannes Weiner , Hugh Dickins , "Aneesh Kumar K.V" , Mel Gorman , Xie XiuQi , Joonsoo Kim , Andrea Arcangeli , Naoya Horiguchi , Rik van Riel , "Kirill A. Shutemov" , Linus Torvalds From: Vlastimil Babka Message-ID: <569EC1C2.1060906@suse.cz> Date: Wed, 20 Jan 2016 00:07:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20160119224536.GA2262@uranus> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/19/2016 11:45 PM, Cyrill Gorcunov wrote: > On Tue, Jan 19, 2016 at 02:30:45PM -0800, David Rientjes wrote: >> On Tue, 19 Jan 2016, Cyrill Gorcunov wrote: >> >> > Seems it should be something like that (untested at moment, please >> > take a look). >> > --- >> > From: Cyrill Gorcunov >> > Subject: [PATCH] mm: Fix tracepoint for scanning pages >> > >> > The page might be NULL so use page_to_pfn in conditional call. >> > >> > Signed-off-by: Cyrill Gorcunov >> >> I think this is obviously correct, so >> >> Acked-by: David Rientjes > > Thank you. I've compile tested it, but didn't run. This has been in mmotm since november: http://ozlabs.org/~akpm/mmotm/broken-out/mm-fix-kernel-crash-in-khugepaged-thread.patch Although your patch does use -1UL instead of -1 (AFAICS the only difference, but it's too late here), which Steven Rostedt suggested, so it's probably better.