From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752860AbdKGLYd (ORCPT ); Tue, 7 Nov 2017 06:24:33 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:9969 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751056AbdKGLYb (ORCPT ); Tue, 7 Nov 2017 06:24:31 -0500 Subject: Re: [PATCH RFC v2 4/4] mm/mempolicy: add nodes_empty check in SYSC_migrate_pages To: Christopher Lameter , Vlastimil Babka References: <1509099265-30868-1-git-send-email-xieyisheng1@huawei.com> <1509099265-30868-5-git-send-email-xieyisheng1@huawei.com> CC: , , , , , , , , , , Andi Kleen From: Yisheng Xie Message-ID: Date: Tue, 7 Nov 2017 19:23:52 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.40] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A0B0206.5A0197D7.006F,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2014-11-16 11:51:01, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 7833650ca11dd661885654e761560980 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hi Christopher and Vlastimil, Thanks for your comment! On 2017/11/6 23:29, Christopher Lameter wrote: > On Mon, 6 Nov 2017, Vlastimil Babka wrote: > >> I'm not sure what exactly is the EPERM intention. Should really the >> capability of THIS process override the cpuset restriction of the TARGET >> process? Maybe yes. Then, does "insufficient privilege (CAP_SYS_NICE) to > > CAP_SYS_NICE never overrides cpuset restrictions. The cap can be used to > migrate pages that are *also* mapped by other processes (and thus move > pages of another process which may have different cpu set restrictions!). So you means the specified nodes should be a subset of target cpu set, right? Thanks Yisheng Xie > The cap should not allow migrating pages to nodes that are not allowed by > the cpuset of the current process. > > > > . >