Searched hist:c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/arch/arm/kernel/ |
H A D | return_address.c | diff c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 Wed Mar 09 06:06:02 CST 2022 Russell King (Oracle) <rmk+kernel@armlinux.org.uk> ARM: unwind: set frame.pc correctly for current-thread unwinding
When e.g. a WARN_ON() is encountered, we attempt to unwind the current thread. To do this, we set frame.pc to unwind_backtrace, which means it points at the beginning of the function. However, the rest of the state is initialised from within the function, which means the function prologue has already been run.
This can be confusing, and with a recent patch from Ard, can result in the unwinder misbehaving if we want to be strict about the PC value.
If we correctly initialise the state so it is self-consistent (in other words, set frame.pc to the location we are initialising it) then we eliminate this confusion, and avoid possible future issues.
Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|
H A D | stacktrace.c | diff c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 Wed Mar 09 06:06:02 CST 2022 Russell King (Oracle) <rmk+kernel@armlinux.org.uk> ARM: unwind: set frame.pc correctly for current-thread unwinding
When e.g. a WARN_ON() is encountered, we attempt to unwind the current thread. To do this, we set frame.pc to unwind_backtrace, which means it points at the beginning of the function. However, the rest of the state is initialised from within the function, which means the function prologue has already been run.
This can be confusing, and with a recent patch from Ard, can result in the unwinder misbehaving if we want to be strict about the PC value.
If we correctly initialise the state so it is self-consistent (in other words, set frame.pc to the location we are initialising it) then we eliminate this confusion, and avoid possible future issues.
Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|
H A D | unwind.c | diff c46c2c9b43f4f08f20dc06417fbf7091e4ca6d34 Wed Mar 09 06:06:02 CST 2022 Russell King (Oracle) <rmk+kernel@armlinux.org.uk> ARM: unwind: set frame.pc correctly for current-thread unwinding
When e.g. a WARN_ON() is encountered, we attempt to unwind the current thread. To do this, we set frame.pc to unwind_backtrace, which means it points at the beginning of the function. However, the rest of the state is initialised from within the function, which means the function prologue has already been run.
This can be confusing, and with a recent patch from Ard, can result in the unwinder misbehaving if we want to be strict about the PC value.
If we correctly initialise the state so it is self-consistent (in other words, set frame.pc to the location we are initialising it) then we eliminate this confusion, and avoid possible future issues.
Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
|