]> git.baikalelectronics.ru Git - kernel.git/commit
um: Memory corruption on startup
authorAnton Ivanov <antivano@cisco.com>
Fri, 7 Mar 2014 18:37:47 +0000 (18:37 +0000)
committerRichard Weinberger <richard@nod.at>
Sun, 20 Apr 2014 21:57:21 +0000 (23:57 +0200)
commitcc2667b14e45f9a306e6c3d0f3d728a68ca7c8cf
treebc72dc69499b068766284276bee91884afb1218b
parenteabce3c03aa270718c0db1dbf1edf3023ff45f57
um: Memory corruption on startup

The reverse case of this race (you must msync before read) is
well known. This is the not so common one.

It can be triggered only on systems which do a lot of task
switching and only at UML startup. If you are starting 200+ UMLs
~ 0.5% will always die without this fix.

Signed-off-by: Anton Ivanov <antivano@cisco.com>
[rw: minor whitespace fixes]
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/include/shared/os.h
arch/um/kernel/physmem.c
arch/um/os-Linux/file.c