sframe: Fix RA and FP stack recovery rules
Confirms a fix for sframe stack recovery rules and requests confirmation from another maintainer.
This email is a gentle ping regarding a patch that corrects the interpretation of register offset rules for RA (Return Address) and FP (Frame Pointer) stack recovery in sframe. The author has applied the suggested changes from a previous review, and one reviewer has approved. The ping is to solicit confirmation from another maintainer before proceeding.
- proposer
Pings for a review and approval of a patch that fixes stack recovery rules for RA and FP in sframe, noting that a previous review was positive.
“Gentle ping!”
- reviewer
Approves the patch after it was updated, and asks another maintainer (@Indu) for their opinion.
“Thank you! Looks good to me. @Indu: Do you agree?”
In Details
This discussion concerns a version 2 patch series for the sframe library, specifically addressing how return address (RA) and frame pointer (FP) recovery rules are interpreted. The fix involves changing the interpretation of CFA + offset to *(CFA + offset) in include/sframe.h and updating the sframe specification documentation. The patch aims to correct a subtle but important detail in how stack frame information is handled, particularly for AMD64 and AARCH64 architectures.
- sframe
- A library for handling stack frame records, often used in debugging and profiling tools.
- CFA
- Canonical Frame Address. A value that represents the base of the current stack frame, typically the address of the saved return address or the previous frame pointer.
- RA
- Return Address. The memory address in the caller's function that execution should return to after the current function completes.
- FP
- Frame Pointer. A register that typically points to the base of the current stack frame, used for accessing local variables and function arguments.
- stack recovery
- The process of reconstructing the call stack, often used by debuggers or exception handlers to determine the sequence of function calls.