public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kasan_map_early_shadow() on Xen
@ 2015-03-03  9:40 Luis R. Rodriguez
  2015-03-03 10:06 ` [Xen-devel] " David Vrabel
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Luis R. Rodriguez @ 2015-03-03  9:40 UTC (permalink / raw)
  To: Andrey Ryabinin
  Cc: linux-kernel@vger.kernel.org, xen-devel, Andy Lutomirski,
	Boris Ostrovsky, Jeremy Fitzhardinge, Chris Wright, Alok Kataria,
	Rusty Russell, virtualization

Andrey,

I believe that on Xen we should disable kasan, would like confirmation
from someone on xen-devel though. Here's the thing though -- if true
-- I'd like to do it *properly*, where *properly* means addressing a
bit of architecture. A simple Kconfig slap seems rather reactive. I'd
like to address a way to properly ensure we don't run into this and
other similar issues in the future. The CR4 shadow issue was another
recent example issue, also introduced via v4.0 [0]. We can't keep
doing this reactively.

Let's go down the rabbit hole for a bit. HAVE_ARCH_KASAN will be
selected on x86 when:

if X86_64 && SPARSEMEM_VMEMMAP

Now Xen should not have SPARSEMEM_VMEMMAP but PVOPs' goal is to enable
distributions to be able to have a single binary kernels and let the
rest be figured out, so we can't just disable SPARSEMEM_VMEMMAP for
Xen alone, we want to build Xen.. or part of Xen and perhaps keep
SPARSEMEM_VMEMMAP, and only later figure things out.

How do we do this cleanly and avoid future reactive measures? If the
answer is not upon us, I'd like to at least highlight the issue so
that in case we do come up with something its no surprise PVOPs is
falling short for that single binary pipe dream right now.

[0] https://lkml.org/lkml/2015/2/23/328

 Luis

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

end of thread, other threads:[~2015-12-15 20:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03  9:40 kasan_map_early_shadow() on Xen Luis R. Rodriguez
2015-03-03 10:06 ` [Xen-devel] " David Vrabel
2015-03-03 19:20   ` Luis R. Rodriguez
2015-03-04  4:53     ` Juergen Gross
2015-03-04  8:02       ` Jan Beulich
2015-03-03 10:09 ` Jan Beulich
2015-03-03 13:15 ` Andrey Ryabinin
2015-03-03 14:16   ` [Xen-devel] " Konrad Rzeszutek Wilk
2015-03-03 15:38     ` Andrey Ryabinin
2015-03-03 16:02       ` Konrad Rzeszutek Wilk
2015-03-04 14:36         ` Andrey Ryabinin
2015-03-05  1:47           ` Luis R. Rodriguez
2015-03-06 16:02             ` Konrad Rzeszutek Wilk
2015-03-06 16:47               ` Luis R. Rodriguez
2015-12-15 20:02                 ` Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox