On Thu, Aug 27, 2020 at 12:04:05AM +0900, Masami Hiramatsu wrote: > > Argh, I replied to the wrong variant, I mean the one that uses > > kernel_stack_pointer(regs). > > Would you mean using kernel_stack_pointer() for the frame_pointer? > Some arch will be OK, but others can not get the framepointer by that. > (that is because the stack layout is different on the function prologue > and returned address, e.g. x86...) Yeah, I noticed :/ I was hoping to avoid some further duplication, but they're all sublty different.