]> git.baikalelectronics.ru Git - kernel.git/commit
um: Fix kernel mode fault condition
authorRichard Weinberger <richard@nod.at>
Sun, 9 Aug 2015 20:26:33 +0000 (22:26 +0200)
committerRichard Weinberger <richard@nod.at>
Mon, 19 Oct 2015 20:53:37 +0000 (22:53 +0200)
commita5631f6a68b1669679bb48b40dcf8acdfc17c552
tree408b519405bd8545f8da4102ac120db58d2a1f3e
parente887cc3bd09987f7c25517736003df9485d8116b
um: Fix kernel mode fault condition

We have to exclude memory locations <= PAGE_SIZE from
the condition and let the kernel mode fault path catch it.
Otherwise a kernel NULL pointer exception will be reported
as a kernel user space access.

Fixes: 945e8293708 (um: Catch unprotected user memory access)
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/kernel/trap.c