linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Use generic code for virtual address of randomization of x86
@ 2021-09-21 11:02 sxwjean
  2021-09-21 13:24 ` Kees Cook
  0 siblings, 1 reply; 4+ messages in thread
From: sxwjean @ 2021-09-21 11:02 UTC (permalink / raw)
  To: x86, linux-mm
  Cc: sxwjean, Xiongwei Song, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, H. Peter Anvin, Andy Lutomirski,
	Gabriel Krisman Bertazi, Chang S. Bae, Al Viro, Arvind Sankar,
	Alexey Dobriyan, Oleg Nesterov, Balbir Singh, Jens Axboe,
	Lai Jiangshan, Dave Hansen, Peter Zijlstra, Andrew Morton,
	Arnd Bergmann, David S. Miller, Kees Cook, Kim Phillips,
	Yazen Ghannam, Davidlohr Bueso, Stefan Metzmacher, Marco Elver,
	Eric W. Biederman, Christophe Leroy, linux-kernel

From: Xiongwei Song <sxwjean@gmail.com>

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.

Please review it.

Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
Cc: "Chang S. Bae" <chang.seok.bae@intel.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Arvind Sankar <nivedita@alum.mit.edu>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Balbir Singh <sblbir@amazon.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Lai Jiangshan <laijs@linux.alibaba.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Kees Cook <keescook@chromium.org>
Cc: Kim Phillips <kim.phillips@amd.com>
Cc: Yazen Ghannam <yazen.ghannam@amd.com>
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Stefan Metzmacher <metze@samba.org>
Cc: Marco Elver <elver@google.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
Cc: linux-kernel@vger.kernel.org

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(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Use generic code for virtual address of randomization of x86
  2021-09-21 11:02 [PATCH 0/2] Use generic code for virtual address of randomization of x86 sxwjean
@ 2021-09-21 13:24 ` Kees Cook
  2021-09-21 14:11   ` Xiongwei Song
  2021-09-21 14:19   ` Peter Zijlstra
  0 siblings, 2 replies; 4+ messages in thread
From: Kees Cook @ 2021-09-21 13:24 UTC (permalink / raw)
  To: sxwjean, x86, linux-mm
  Cc: Xiongwei Song, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	H. Peter Anvin, Andy Lutomirski, Gabriel Krisman Bertazi,
	Chang S. Bae, Al Viro, Arvind Sankar, Alexey Dobriyan,
	Oleg Nesterov, Balbir Singh, Jens Axboe, Lai Jiangshan,
	Dave Hansen, Peter Zijlstra, Andrew Morton, Arnd Bergmann,
	David S. Miller, Kim Phillips, Yazen Ghannam, Davidlohr Bueso,
	Stefan Metzmacher, Marco Elver, Eric W. Biederman,
	Christophe Leroy, linux-kernel



On September 21, 2021 4:02:50 AM PDT, sxwjean@me.com wrote:
>From: Xiongwei Song <sxwjean@gmail.com>
>
>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@linutronix.de>
>Cc: Ingo Molnar <mingo@redhat.com>
>Cc: Borislav Petkov <bp@alien8.de>
>Cc: "H. Peter Anvin" <hpa@zytor.com>
>Cc: Andy Lutomirski <luto@kernel.org>
>Cc: Gabriel Krisman Bertazi <krisman@collabora.com>
>Cc: "Chang S. Bae" <chang.seok.bae@intel.com>
>Cc: Al Viro <viro@zeniv.linux.org.uk>
>Cc: Arvind Sankar <nivedita@alum.mit.edu>
>Cc: Alexey Dobriyan <adobriyan@gmail.com>
>Cc: Oleg Nesterov <oleg@redhat.com>
>Cc: Balbir Singh <sblbir@amazon.com>
>Cc: Jens Axboe <axboe@kernel.dk>
>Cc: Lai Jiangshan <laijs@linux.alibaba.com>
>Cc: Dave Hansen <dave.hansen@linux.intel.com>
>Cc: Peter Zijlstra <peterz@infradead.org>
>Cc: Andrew Morton <akpm@linux-foundation.org>
>Cc: Arnd Bergmann <arnd@arndb.de>
>Cc: "David S. Miller" <davem@davemloft.net>
>Cc: Kees Cook <keescook@chromium.org>
>Cc: Kim Phillips <kim.phillips@amd.com>
>Cc: Yazen Ghannam <yazen.ghannam@amd.com>
>Cc: Davidlohr Bueso <dave@stgolabs.net>
>Cc: Stefan Metzmacher <metze@samba.org>
>Cc: Marco Elver <elver@google.com>
>Cc: "Eric W. Biederman" <ebiederm@xmission.com>
>Cc: Christophe Leroy <christophe.leroy@csgroup.eu>
>Cc: linux-kernel@vger.kernel.org
>
>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(-)
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Use generic code for virtual address of randomization of x86
  2021-09-21 13:24 ` Kees Cook
@ 2021-09-21 14:11   ` Xiongwei Song
  2021-09-21 14:19   ` Peter Zijlstra
  1 sibling, 0 replies; 4+ messages in thread
From: Xiongwei Song @ 2021-09-21 14:11 UTC (permalink / raw)
  To: Kees Cook
  Cc: x86, linux-mm, Xiongwei Song, Thomas Gleixner, Ingo Molnar,
	Borislav Petkov, H. Peter Anvin, Andy Lutomirski,
	Gabriel Krisman Bertazi, Chang S. Bae, Al Viro, Arvind Sankar,
	Alexey Dobriyan, Oleg Nesterov, Balbir Singh, Jens Axboe,
	Lai Jiangshan, Dave Hansen, Peter Zijlstra, Andrew Morton,
	Arnd Bergmann, David S. Miller, Kim Phillips, Yazen Ghannam,
	Davidlohr Bueso, Stefan Metzmacher, Marco Elver,
	Eric W. Biederman, Christophe Leroy, linux-kernel



> On Sep 21, 2021, at 9:24 PM, Kees Cook <keescook@chromium.org> wrote:
> 
> 
> 
> On September 21, 2021 4:02:50 AM PDT, sxwjean@me.com wrote:
>> From: Xiongwei Song <sxwjean@gmail.com>
>> 
>> 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.

Sorry for that. Let me resend the patches.

Regards,
Xiongwei


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Use generic code for virtual address of randomization of x86
  2021-09-21 13:24 ` Kees Cook
  2021-09-21 14:11   ` Xiongwei Song
@ 2021-09-21 14:19   ` Peter Zijlstra
  1 sibling, 0 replies; 4+ messages in thread
From: Peter Zijlstra @ 2021-09-21 14:19 UTC (permalink / raw)
  To: Kees Cook
  Cc: sxwjean, x86, linux-mm, Xiongwei Song, Thomas Gleixner,
	Ingo Molnar, Borislav Petkov, H. Peter Anvin, Andy Lutomirski,
	Gabriel Krisman Bertazi, Chang S. Bae, Al Viro, Arvind Sankar,
	Alexey Dobriyan, Oleg Nesterov, Balbir Singh, Jens Axboe,
	Lai Jiangshan, Dave Hansen, Andrew Morton, Arnd Bergmann,
	David S. Miller, Kim Phillips, Yazen Ghannam, Davidlohr Bueso,
	Stefan Metzmacher, Marco Elver, Eric W. Biederman,
	Christophe Leroy, linux-kernel

On Tue, Sep 21, 2021 at 06:24:07AM -0700, Kees Cook wrote:
> 
> 
> On September 21, 2021 4:02:50 AM PDT, sxwjean@me.com wrote:
> >From: Xiongwei Song <sxwjean@gmail.com>
> >
> >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.

They were only sent to the list for some weird raisin. Operator error
perhaps.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-21 14:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 11:02 [PATCH 0/2] Use generic code for virtual address of randomization of x86 sxwjean
2021-09-21 13:24 ` Kees Cook
2021-09-21 14:11   ` Xiongwei Song
2021-09-21 14:19   ` Peter Zijlstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).