Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-10-09 Thread Lorenzo Stoakes
On Thu, Sep 26, 2024 at 01:54:09PM +, Arnd Bergmann wrote: > On Thu, Sep 26, 2024, at 08:46, David Hildenbrand wrote: > > On 25.09.24 23:06, Arnd Bergmann wrote: > > > > The first, uncontroversial step could indeed be to make > > MAP_UNINITIALIZED a nop, but still leave the definitions in mman.

Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-26 Thread Arnd Bergmann
On Thu, Sep 26, 2024, at 08:46, David Hildenbrand wrote: > On 25.09.24 23:06, Arnd Bergmann wrote: > > The first, uncontroversial step could indeed be to make > MAP_UNINITIALIZED a nop, but still leave the definitions in mman.h etc > around. > > This is the same we did with MAP_DENYWRITE. There m

Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-26 Thread Helge Deller
On 9/25/24 23:06, Arnd Bergmann wrote: From: Arnd Bergmann MAP_UNINITIALIZED was added back in 2009 for NOMMU kernels, specifically for blackfin, which is long gone. MAP_HUGE_SHIFT/MAP_HUGE_MASK were added in 2012 for architectures supporting hugepages, which at the time did not overlap with th

Re: [PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-26 Thread David Hildenbrand
On 25.09.24 23:06, Arnd Bergmann wrote: From: Arnd Bergmann MAP_UNINITIALIZED was added back in 2009 for NOMMU kernels, specifically for blackfin, which is long gone. MAP_HUGE_SHIFT/MAP_HUGE_MASK were added in 2012 for architectures supporting hugepages, which at the time did not overlap with t

[PATCH 5/5] [RFC] mm: Remove MAP_UNINITIALIZED support

2024-09-25 Thread Arnd Bergmann
From: Arnd Bergmann MAP_UNINITIALIZED was added back in 2009 for NOMMU kernels, specifically for blackfin, which is long gone. MAP_HUGE_SHIFT/MAP_HUGE_MASK were added in 2012 for architectures supporting hugepages, which at the time did not overlap with the ones supporting NOMMU. Adding the macr