Re: [PATCH 0/2] Use generic code for virtual address of randomization of x86
From: Kees Cook
Date: Tue Sep 21 2021 - 09:24:13 EST
On September 21, 2021 4:02:50 AM PDT, sxwjean@xxxxxx wrote:
>From: Xiongwei Song <sxwjean@xxxxxxxxx>
>
>Hello,
>
>The two patches are to use generic code for randomization of virtual
>address of x86. Since the basic code logic of x86 is same as generic
>code, so no need to implement these functions on x86, please see the
>details in comments of patch 2.
Hi!
The other patches do not seem to have arrived; I only see 0/2.
-Kees
>
>Please review it.
>
>Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
>Cc: Ingo Molnar <mingo@xxxxxxxxxx>
>Cc: Borislav Petkov <bp@xxxxxxxxx>
>Cc: "H. Peter Anvin" <hpa@xxxxxxxxx>
>Cc: Andy Lutomirski <luto@xxxxxxxxxx>
>Cc: Gabriel Krisman Bertazi <krisman@xxxxxxxxxxxxx>
>Cc: "Chang S. Bae" <chang.seok.bae@xxxxxxxxx>
>Cc: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
>Cc: Arvind Sankar <nivedita@xxxxxxxxxxxx>
>Cc: Alexey Dobriyan <adobriyan@xxxxxxxxx>
>Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
>Cc: Balbir Singh <sblbir@xxxxxxxxxx>
>Cc: Jens Axboe <axboe@xxxxxxxxx>
>Cc: Lai Jiangshan <laijs@xxxxxxxxxxxxxxxxx>
>Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
>Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
>Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
>Cc: Arnd Bergmann <arnd@xxxxxxxx>
>Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>
>Cc: Kees Cook <keescook@xxxxxxxxxxxx>
>Cc: Kim Phillips <kim.phillips@xxxxxxx>
>Cc: Yazen Ghannam <yazen.ghannam@xxxxxxx>
>Cc: Davidlohr Bueso <dave@xxxxxxxxxxxx>
>Cc: Stefan Metzmacher <metze@xxxxxxxxx>
>Cc: Marco Elver <elver@xxxxxxxxxx>
>Cc: "Eric W. Biederman" <ebiederm@xxxxxxxxxxxx>
>Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
>Cc: linux-kernel@xxxxxxxxxxxxxxx
>
>Xiongwei Song (2):
> x86: Rename TIF_ADDR32 to TIF_32BIT
> x86/mm: Randomize va with generic arch_pick_mmap_layout()
>
> arch/x86/Kconfig | 2 +-
> arch/x86/include/asm/compat.h | 7 +-
> arch/x86/include/asm/elf.h | 2 +-
> arch/x86/include/asm/page_64_types.h | 6 +-
> arch/x86/include/asm/processor.h | 4 +-
> arch/x86/include/asm/thread_info.h | 4 +-
> arch/x86/kernel/process.c | 5 --
> arch/x86/kernel/process_64.c | 4 +-
> arch/x86/mm/mmap.c | 112 ---------------------------
> include/linux/compat.h | 4 +
> mm/util.c | 18 ++++-
> 11 files changed, 37 insertions(+), 131 deletions(-)
>