Re: [PATCH RFC v2 3/4] mm/mempolicy: fix the check of nodemask from user

2017-10-31 Thread Vlastimil Babka
On 10/31/2017 12:01 PM, Yisheng Xie wrote: > > > On 2017/10/31 17:30, Vlastimil Babka wrote: >> On 10/27/2017 12:14 PM, Yisheng Xie wrote: >>> + /* >>> +* When the user specified more nodes than supported just check >>> +* if the non supported part is all zero. >>> +* >>> +* If

Re: [PATCH RFC v2 3/4] mm/mempolicy: fix the check of nodemask from user

2017-10-31 Thread Yisheng Xie
On 2017/10/31 17:30, Vlastimil Babka wrote: > On 10/27/2017 12:14 PM, Yisheng Xie wrote: >> +/* >> + * When the user specified more nodes than supported just check >> + * if the non supported part is all zero. >> + * >> + * If maxnode have more longs than MAX_NUMNODES, check >

Re: [PATCH RFC v2 3/4] mm/mempolicy: fix the check of nodemask from user

2017-10-31 Thread Vlastimil Babka
On 10/27/2017 12:14 PM, Yisheng Xie wrote: > As Xiaojun reported the ltp of migrate_pages01 will failed on ARCH arm64 > system which has 4 nodes[0...3], all have memory and CONFIG_NODES_SHIFT=2: > > migrate_pages010 TINFO : test_invalid_nodes > migrate_pages01 14 TFAIL : migrate_pages_

[PATCH RFC v2 3/4] mm/mempolicy: fix the check of nodemask from user

2017-10-27 Thread Yisheng Xie
As Xiaojun reported the ltp of migrate_pages01 will failed on ARCH arm64 system which has 4 nodes[0...3], all have memory and CONFIG_NODES_SHIFT=2: migrate_pages010 TINFO : test_invalid_nodes migrate_pages01 14 TFAIL : migrate_pages_common.c:45: unexpected failure - returned value = 0