All of lore.kernel.org
 help / color / mirror / Atom feed
* KASAN vs vmapped stacks
@ 2016-07-10 12:47 Andy Lutomirski
  2016-07-11  8:30 ` Dmitry Vyukov
  2016-07-11  9:57 ` Andrey Ryabinin
  0 siblings, 2 replies; 7+ messages in thread
From: Andy Lutomirski @ 2016-07-10 12:47 UTC (permalink / raw)
  To: linux-kernel@vger.kernel.org, Andrey Ryabinin, kasan-dev, X86 ML,
	Alexander Potapenko, Dmitry Vyukov, Kees Cook, Borislav Petkov

Hi all-

I found two nasty issues with virtually mapped stacks if KASAN is
enabled.  The first issue is a crash: the first non-init stack is
allocated and accessed before KASAN initializes its zero shadow
AFAICT, which means that we switch to that stack and then blow up when
we start recursively faulting on failed accesses to the shadow.

The second issue is that, even if we survive (we initialize the zero
shadow on time), KASAN will fail to protect hte stack.

For now, I just disabled use of virtually mapped stacks if KASAN is
on.  Do you have any easy ideas to fix it?

Thanks,
Andy

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

end of thread, other threads:[~2016-07-13  9:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-10 12:47 KASAN vs vmapped stacks Andy Lutomirski
2016-07-11  8:30 ` Dmitry Vyukov
2016-07-11 14:52   ` Andy Lutomirski
2016-07-11  9:57 ` Andrey Ryabinin
2016-07-11 10:29   ` Dmitry Vyukov
2016-07-11 14:10     ` Andrey Ryabinin
2016-07-13  9:55       ` Dmitry Vyukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.