Re: [PATCH 2/2] powerpc: Simplify and move arch_randomize_brk()

2021-12-16 Thread Christophe Leroy
Le 08/12/2021 à 15:32, Christophe Leroy a écrit : > arch_randomize_brk() is only needed for hash on book3s/64, for other > platforms the one provided by the default mmap layout is good enough. > > Move it to hash_utils.c and use randomize_page() like the generic one. > > And properly opt out th

[PATCH 2/2] powerpc: Simplify and move arch_randomize_brk()

2021-12-08 Thread Christophe Leroy
arch_randomize_brk() is only needed for hash on book3s/64, for other platforms the one provided by the default mmap layout is good enough. Move it to hash_utils.c and use randomize_page() like the generic one. And properly opt out the radix case instead of making an assumption on mmu_highuser_ssi