Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1451132

Re: [PATCH -v2 1/2] x86/asm: Add __PAGE_OFFSET_BASE define on 32-bit

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH -v2 1/2] x86/asm: Add __PAGE_OFFSET_BASE define on 32-bit
Date 2016-07-27 11:10 +0200
Message-ID <rZt0J-5Pc-11@gated-at.bofh.it> (permalink)
References <rZ7jz-lC-11@gated-at.bofh.it> <rZeuK-4Z7-29@gated-at.bofh.it> <rZhiW-6Jx-13@gated-at.bofh.it> <rZpTb-3KT-3@gated-at.bofh.it> <rZsel-5j9-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Borislav Petkov <bp@suse.de> wrote:

> From: Borislav Petkov <bp@suse.de>
> 
> ... in order to avoid ifdeffery in code computing the ASLR randomization
> offset.
> 
> Suggested-by: Kees Cook <keescook@chromium.org>
> Signed-off-by: Borislav Petkov <bp@suse.de>
> ---
>  arch/x86/include/asm/page_32_types.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/x86/include/asm/page_32_types.h b/arch/x86/include/asm/page_32_types.h
> index 3a52ee0e726d..3bae4969ac65 100644
> --- a/arch/x86/include/asm/page_32_types.h
> +++ b/arch/x86/include/asm/page_32_types.h
> @@ -13,7 +13,8 @@
>   * If you want more physical memory than this then see the CONFIG_HIGHMEM4G
>   * and CONFIG_HIGHMEM64G options in the kernel configuration.
>   */
> -#define __PAGE_OFFSET		_AC(CONFIG_PAGE_OFFSET, UL)
> +#define __PAGE_OFFSET_BASE	_AC(CONFIG_PAGE_OFFSET, UL)
> +#define __PAGE_OFFSET		__PAGE_OFFSET_BASE

Could you please send a delta patch for this? I've already applied the original 
fix, with a few minor edits.

Thanks,

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] x86/microcode/intel: Fix initrd loading with CONFIG_RANDOMIZE_MEMORY Borislav Petkov <bp@alien8.de> - 2016-07-26 12:00 +0200
  [tip:x86/microcode] x86/microcode/intel: Fix initrd loading with  CONFIG_RANDOMIZE_MEMORY=y tip-bot for Borislav Petkov <tipbot@zytor.com> - 2016-07-26 19:40 +0200
    Re: [tip:x86/microcode] x86/microcode/intel: Fix initrd loading with CONFIG_RANDOMIZE_MEMORY=y Kees Cook <keescook@chromium.org> - 2016-07-26 22:40 +0200
      Re: [tip:x86/microcode] x86/microcode/intel: Fix initrd loading with  CONFIG_RANDOMIZE_MEMORY=y Borislav Petkov <bp@suse.de> - 2016-07-27 07:50 +0200
        [PATCH -v2 2/2] x86/microcode/intel: Fix initrd loading with  CONFIG_RANDOMIZE_MEMORY Borislav Petkov <bp@suse.de> - 2016-07-27 10:20 +0200
        [PATCH -v2 1/2] x86/asm: Add __PAGE_OFFSET_BASE define on 32-bit Borislav Petkov <bp@suse.de> - 2016-07-27 10:20 +0200
          Re: [PATCH -v2 1/2] x86/asm: Add __PAGE_OFFSET_BASE define on 32-bit Ingo Molnar <mingo@kernel.org> - 2016-07-27 11:10 +0200
            Re: [PATCH -v2 1/2] x86/asm: Add __PAGE_OFFSET_BASE define on 32-bit Borislav Petkov <bp@suse.de> - 2016-07-27 11:20 +0200
              Re: [PATCH -v2 1/2] x86/asm: Add __PAGE_OFFSET_BASE define on 32-bit Ingo Molnar <mingo@kernel.org> - 2016-07-27 12:40 +0200
                [PATCH] x86/asm, microcode: Add __PAGE_OFFSET_BASE define on 32-bit Borislav Petkov <bp@suse.de> - 2016-07-27 14:10 +0200
                [tip:x86/microcode] x86/asm, x86/microcode: Add __PAGE_OFFSET_BASE  define on 32-bit tip-bot for Borislav Petkov <tipbot@zytor.com> - 2016-07-27 19:20 +0200

csiph-web