Re: [PATCH v2 1/2] arm64: Implement arch_stack_walk_reliable

2025-03-19 Thread Song Liu
On Wed, Mar 19, 2025 at 3:35 PM Josh Poimboeuf wrote: > > On Wed, Mar 19, 2025 at 02:37:06PM -0700, Song Liu wrote: > > +noinline noinstr int arch_stack_walk_reliable(stack_trace_consume_fn > > consume_entry, > > + void *cookie, struct task_struct *task) > > +{ > > + struc

[PATCH v2 1/2] arm64: Implement arch_stack_walk_reliable

2025-03-19 Thread Song Liu
With proper exception boundary detection, it is possible to implment arch_stack_walk_reliable without sframe. Note that, arch_stack_walk_reliable does not guarantee getting reliable stack in all scenarios. Instead, it can reliably detect when the stack trace is not reliable, which is enough to pro

Re: [PATCH v2 1/2] arm64: Implement arch_stack_walk_reliable

2025-03-19 Thread Josh Poimboeuf
On Wed, Mar 19, 2025 at 02:37:06PM -0700, Song Liu wrote: > +noinline noinstr int arch_stack_walk_reliable(stack_trace_consume_fn > consume_entry, > + void *cookie, struct task_struct *task) > +{ > + struct kunwind_consume_entry_data data = { > + .consume_entry