On 04/13/2017 12:33 PM, Aneesh Kumar K.V wrote:
I missed this part earlier. I guess that should be fixed in radix code. This came in via fbfef9027c2a7ad9277755509fdb849dbccfe8c1 (powerpc/mm: Switch some TASK_SIZE checks to use mm_context addr_limit). That patch needs update. When we switched from mm->task_size to mm->context.addr_limit in latest version of the patch, we missed updating the above correctly. I have now send a version which should update this correctly.
Ok - so the intent then is that you may extend your address space, but you still may not allocate anything larger than task_size (which will never be larger than 128TB)? The section we are talking about is checking the length of the request against task_size, so that means we may not allocate a single vm area larger than 128TB even though it would be okay to (say) allocate 3 of those within 512TB of address space? Rick