From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755158AbaIDTQm (ORCPT ); Thu, 4 Sep 2014 15:16:42 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:34057 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753855AbaIDTQl (ORCPT ); Thu, 4 Sep 2014 15:16:41 -0400 Date: Thu, 4 Sep 2014 12:14:51 -0700 (PDT) From: Hugh Dickins X-X-Sender: hugh@eggly.anvils To: Oleg Nesterov cc: Peter Zijlstra , Rik van Riel , Mel Gorman , Kautuk Consul , Ingo Molnar , Andrew Morton , Michal Hocko , David Rientjes , Ionut Alexa , Guillaume Morin , linux-kernel@vger.kernel.org, Kirill Tkhai Subject: Re: task_numa_fault() && TASK_DEAD In-Reply-To: <20140904103949.GA19300@redhat.com> Message-ID: References: <1408964064-21447-1-git-send-email-consul.kautuk@gmail.com> <20140825155738.GA5944@redhat.com> <20140901153935.GQ27892@worktop.ger.corp.intel.com> <20140901175851.GA15210@redhat.com> <20140901190931.GD5806@worktop.ger.corp.intel.com> <20140902155208.GA28668@redhat.com> <20140902164714.GA17033@redhat.com> <20140903160819.GA7682@redhat.com> <20140904071139.GH3190@worktop.ger.corp.intel.com> <20140904103949.GA19300@redhat.com> User-Agent: Alpine 2.11 (LSU 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Sep 2014, Oleg Nesterov wrote: > On 09/04, Peter Zijlstra wrote: > > On Wed, Sep 03, 2014 at 06:08:19PM +0200, Oleg Nesterov wrote: > > > > > And a stupid (really, I don't understand this code) question: > > > > > > /* for example, ksmd faulting in a user's mm */ > > > if (!p->mm) > > > return; I don't understand your difficulty with that, I thought the comment was helpful enough. Does the original commit comment help? commit 2832bc19f6668fd00116f61f821105040599ef8b Author: Hugh Dickins Date: Wed Dec 19 17:42:16 2012 -0800 sched: numa: ksm: fix oops in task_numa_placment() task_numa_placement() oopsed on NULL p->mm when task_numa_fault() got called in the handling of break_ksm() for ksmd. That might be a peculiar case, which perhaps KSM could takes steps to avoid? but it's more robust if task_numa_placement() allows for such a possibility.