]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
um: Catch unprotected user memory access
authorRichard Weinberger <richard@nod.at>
Sun, 31 May 2015 17:21:51 +0000 (19:21 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 31 May 2015 17:21:51 +0000 (19:21 +0200)
commitd2313084e2c3488e254796617fcda45d69731b21
tree3e1a011f87f645cfc5c09330d8a56741d8f019d1
parent6c684465587aab2a0d2712ee755c0164fa33efd1
um: Catch unprotected user memory access

If the kernel tries to access user memory without copy_from_user()
a trap will happen as kernel and userspace run in different processes
on the host side. Currently this special page fault cannot be resolved
and will happen over and over again. As result UML will lockup.
This patch allows the page fault code to detect that situation and
causes a panic() such that the root cause of the unprotected memory
access can be found and fixed.

Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/trap.c