Re: [PATCH v2] prctl: Get private anonymous memory region name

From: David Hildenbrand
Date: Mon Nov 27 2023 - 09:52:57 EST


On 26.11.23 14:56, Oleg Nesterov wrote:
On 11/26, Rong Tao wrote:

then the PR_GET_VMA interface should be provided accordingly,
which is necessary, as the userspace program usually wants to know what
VMA name it has configured for the anonymous page.

I don't really understand the use-case for PR_GET_VMA ...


Can't we simply read "/proc/PID/maps" and just have that information from there?

Also, I don't understand the exact use case, that should be clarified -- especially, why the existing way is insufficient.

--
Cheers,

David / dhildenb