tile: don't assume user privilege is zero
Technically, user privilege is anything less than kernel privilege. We modify the existing user_mode() macro to have this semantic (and use it in a couple of places it wasn't being used before), and add an IS_KERNEL_EX1() macro to the assembly code as well. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
This commit is contained in:
@@ -103,7 +103,7 @@ static struct pt_regs *valid_fault_handler(struct KBacktraceIterator* kbt)
|
||||
p->sp >= sp) {
|
||||
if (kbt->verbose)
|
||||
pr_err(" <%s while in kernel mode>\n", fault);
|
||||
} else if (EX1_PL(p->ex1) == USER_PL &&
|
||||
} else if (user_mode(p) &&
|
||||
p->sp < PAGE_OFFSET && p->sp != 0) {
|
||||
if (kbt->verbose)
|
||||
pr_err(" <%s while in user mode>\n", fault);
|
||||
|
Reference in New Issue
Block a user