Re: [PATCH 1/6] mm/mmap: Restrict generic protection_map[] array visibility

2022-06-05 Thread Anshuman Khandual
On 6/3/22 17:48, Christophe Leroy wrote: > > > Le 03/06/2022 à 12:14, Anshuman Khandual a écrit : >> Restrict generic protection_map[] array visibility only for platforms which >> do not enable ARCH_HAS_VM_GET_PAGE_PROT. For other platforms that do define >> their own vm_get_page_prot()

Re: [PATCH 1/6] mm/mmap: Restrict generic protection_map[] array visibility

2022-06-03 Thread Christophe Leroy
Le 03/06/2022 à 12:14, Anshuman Khandual a écrit : > Restrict generic protection_map[] array visibility only for platforms which > do not enable ARCH_HAS_VM_GET_PAGE_PROT. For other platforms that do define > their own vm_get_page_prot() enabling ARCH_HAS_VM_GET_PAGE_PROT, could have > their

[PATCH 1/6] mm/mmap: Restrict generic protection_map[] array visibility

2022-06-03 Thread Anshuman Khandual
Restrict generic protection_map[] array visibility only for platforms which do not enable ARCH_HAS_VM_GET_PAGE_PROT. For other platforms that do define their own vm_get_page_prot() enabling ARCH_HAS_VM_GET_PAGE_PROT, could have their private static protection_map[] still implementing an array look