Re: [PATCH] mm: redefine the MAP_SHARED_VALIDATE to other value

zhong jiang
2019-07-09T01:53:33Z

On 2019/7/8 22:43, Matthew Wilcox wrote:
> On Mon, Jul 08, 2019 at 04:05:41PM +0800, zhong jiang wrote:
>> As the mman manual says, mmap should return fails when we assign
>> the flags to MAP_SHARED | MAP_PRIVATE.
>>
>> But In fact, We run the code successfully and unexpected.
>> It is because MAP_SHARED_VALIDATE is introduced and equal to
>> MAP_SHARED | MAP_PRIVATE.
> No, you don't understand. Look back at the introduction of
> MAP_SHARED_VALIDATE.
>
> .
>
Thanks, I will look at the patch deeply.

Sincerely,
zhong jiang