hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/xtensa/kernel/stacktrace.c
....@@ -44,6 +44,11 @@
4444 if (pc == 0 || pc >= TASK_SIZE || ufn(&frame, data))
4545 return;
4646
47
+ if (IS_ENABLED(CONFIG_USER_ABI_CALL0_ONLY) ||
48
+ (IS_ENABLED(CONFIG_USER_ABI_CALL0_PROBE) &&
49
+ !(regs->ps & PS_WOE_MASK)))
50
+ return;
51
+
4752 /* Two steps:
4853 *
4954 * 1. Look through the register window for the
....@@ -91,7 +96,7 @@
9196 pc = MAKE_PC_FROM_RA(a0, pc);
9297
9398 /* Check if the region is OK to access. */
94
- if (!access_ok(VERIFY_READ, &SPILL_SLOT(a1, 0), 8))
99
+ if (!access_ok(&SPILL_SLOT(a1, 0), 8))
95100 return;
96101 /* Copy a1, a0 from user space stack frame. */
97102 if (__get_user(a0, &SPILL_SLOT(a1, 0)) ||