Aneesh Kumar K.V 475c8749d9 powerpc/book3s64/kuap: Improve error reporting with KUAP
This partially reverts commit eb232b162446 ("powerpc/book3s64/kuap: Improve
error reporting with KUAP") and update the fault handler to print

[   55.022514] Kernel attempted to access user page (7e6725b70000) - exploit attempt? (uid: 0)
[   55.022528] BUG: Unable to handle kernel data access on read at 0x7e6725b70000
[   55.022533] Faulting instruction address: 0xc000000000e8b9bc
[   55.022540] Oops: Kernel access of bad area, sig: 11 [#1]
....

when the kernel access userspace address without unlocking AMR.

bad_kuap_fault() is added as part of commit 5e5be3aed230 ("powerpc/mm: Detect
bad KUAP faults") to catch userspace access incorrectly blocked by AMR. Hence
retain the full stack dump there even with hash translation. Also, add a comment
explaining the difference between hash and radix.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201208031539.84878-1-aneesh.kumar@linux.ibm.com
2020-12-08 21:40:54 +11:00
..
2020-05-28 23:24:36 +10:00
2020-08-11 14:13:24 -07:00
2020-10-08 12:50:52 +11:00
2020-10-07 22:34:47 +11:00
2020-12-05 21:49:52 +11:00
2020-05-28 23:24:36 +10:00
2020-10-16 12:21:15 -07:00
2020-07-23 17:41:36 +10:00
2020-08-07 10:33:50 -07:00
2020-06-12 11:05:52 -07:00
2020-06-05 12:39:30 -07:00
2020-08-07 10:33:50 -07:00
2020-10-06 07:07:03 +02:00
2019-07-13 16:08:36 -07:00
2020-06-02 20:59:20 +10:00
2019-07-13 16:08:36 -07:00
2018-05-25 12:04:43 +10:00
2020-10-06 23:22:26 +11:00
2020-07-27 00:01:32 +10:00
2020-07-23 17:43:44 +10:00
2020-12-04 01:01:32 +11:00
2018-07-30 22:48:21 +10:00
2019-05-01 16:45:05 +10:00
2020-12-04 01:01:19 +11:00