ARM64: fix framepointer check in unwind_frame
[pandora-kernel.git] / arch / arm64 / kernel / stacktrace.c
index d25459f..c3b6c63 100644 (file)
@@ -43,7 +43,7 @@ int unwind_frame(struct stackframe *frame)
        low  = frame->sp;
        high = ALIGN(low, THREAD_SIZE);
 
-       if (fp < low || fp > high || fp & 0xf)
+       if (fp < low || fp > high - 0x18 || fp & 0xf)
                return -EINVAL;
 
        frame->sp = fp + 0x10;