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


Groups > linux.kernel > #1469308

Re: [PATCH v6 1/3] fork: Add generic vmalloced stack support

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v6 1/3] fork: Add generic vmalloced stack support
Date 2016-08-24 12:20 +0200
Message-ID <s9DrQ-QH-5@gated-at.bofh.it> (permalink)
References <s4UD0-208-19@gated-at.bofh.it> <s4UD0-208-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Andy Lutomirski <luto@kernel.org> wrote:

> +config VMAP_STACK
> +	default y
> +	bool "Use a virtually-mapped stack"
> +	depends on HAVE_ARCH_VMAP_STACK && !KASAN
> +	---help---
> +	  Enable this if you want the use virtually-mapped kernel stacks
> +	  with guard pages.  This causes kernel stack overflows to be
> +	  caught immediately rather than causing difficult-to-diagnose
> +	  corruption.
> +
> +	  This is presently incompatible with KASAN because KASAN expects
> +	  the stack to map directly to the KASAN shadow map using a formula
> +	  that is incorrect if the stack is in vmalloc space.

Btw., is this KASAN limitation fundamental?

As x86 is going to enable this feature by default, this probably limits KASAN 
utility rather significantly.

Thanks,

	Ingo

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


Thread

[PATCH v6 1/3] fork: Add generic vmalloced stack support Andy Lutomirski <luto@kernel.org> - 2016-08-11 11:40 +0200
  Re: [PATCH v6 1/3] fork: Add generic vmalloced stack support Michal Hocko <mhocko@kernel.org> - 2016-08-15 14:00 +0200
  Re: [PATCH v6 1/3] fork: Add generic vmalloced stack support Ingo Molnar <mingo@kernel.org> - 2016-08-24 12:20 +0200
    Re: [PATCH v6 1/3] fork: Add generic vmalloced stack support Dmitry Vyukov <dvyukov@google.com> - 2016-08-24 18:20 +0200
  [tip:x86/asm] fork: Add generic vmalloced stack support tip-bot for Andy Lutomirski <tipbot@zytor.com> - 2016-08-24 15:10 +0200
  Re: [PATCH v6 1/3] fork: Add generic vmalloced stack support Josh Cartwright <joshc@ni.com> - 2016-08-24 19:20 +0200

csiph-web