Re: [uml-devel] [PATCH 2/2] um: Ensure that nobody remaps the stub vma

2014-05-06 Thread Geert Uytterhoeven
Hi Richard, On Sat, May 3, 2014 at 9:12 PM, Richard Weinberger wrote: > @@ -90,6 +91,9 @@ static int add_mmap(unsigned long virt, unsigned long phys, > unsigned long len, > struct host_vm_op *last; > int fd, ret = 0; > > + if ((virt >= STUB_START) && (virt < STUB_END)) > +

[uml-devel] [PATCH 2/2] um: Ensure that nobody remaps the stub vma

2014-05-03 Thread Richard Weinberger
This fixes a long standing problem that UML crashes or locks up if a task messes with it' stub vma. Reported-by: toralf.foers...@gmx.de Signed-off-by: Richard Weinberger --- arch/um/kernel/tlb.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/arch/um/kerne