From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753196AbaIJOer (ORCPT ); Wed, 10 Sep 2014 10:34:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30365 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751536AbaIJOeo (ORCPT ); Wed, 10 Sep 2014 10:34:44 -0400 Date: Wed, 10 Sep 2014 10:33:52 -0400 From: Dave Jones To: Sasha Levin Cc: Mel Gorman , Hugh Dickins , "linux-mm@kvack.org" , Andrew Morton , LKML , "Kirill A. Shutemov" , Peter Zijlstra , Rik van Riel , Johannes Weiner , Cyrill Gorcunov Subject: Re: Trinity and mbind flags (WAS: Re: mm: BUG in unmap_page_range) Message-ID: <20140910143352.GB10785@redhat.com> Mail-Followup-To: Dave Jones , Sasha Levin , Mel Gorman , Hugh Dickins , "linux-mm@kvack.org" , Andrew Morton , LKML , "Kirill A. Shutemov" , Peter Zijlstra , Rik van Riel , Johannes Weiner , Cyrill Gorcunov References: <20140827152622.GC12424@suse.de> <540127AC.4040804@oracle.com> <54082B25.9090600@oracle.com> <20140908171853.GN17501@suse.de> <540DEDE7.4020300@oracle.com> <20140909213309.GQ17501@suse.de> <540F7D42.1020402@oracle.com> <20140910124732.GT17501@suse.de> <54105F28.1000506@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <54105F28.1000506@oracle.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 10, 2014 at 10:24:40AM -0400, Sasha Levin wrote: > On 09/10/2014 08:47 AM, Mel Gorman wrote: > > That site should have checked PROT_NONE but it can't be the same bug > > that trinity is seeing. Minimally trinity is unaware of MPOL_MF_LAZY > > according to git grep of the trinity source. > > Actually, if I'm reading it correctly I think that Trinity handles mbind() > calls wrong. It passes the wrong values for mode flags and actual flags. Ugh, I think you're right. I misinterpreted the man page that mentions that flags like MPOL_F_STATIC_NODES/RELATIVE_NODES are OR'd with the mode, and instead dumped those flags into .. the flags field. So the 'flags' argument it generates is crap, because I didn't add any of the actual correct values. I'll fix it up, though if it's currently finding bugs, you might want to keep the current syscalls/mbind.c for now. Dave