Re: [PATCH 1/8] mm: introduce for_each_process_rcu and for_each_thread_rcu
From: Steven Rostedt
Date: Fri Sep 04 2026 - 19:06:50 EST
On Fri, 04 Sep 2026 23:17:38 +0200
Thomas Gleixner <tglx@xxxxxxxxxx> wrote:
> No. Scopes can be left by any valid termination mechanism.
>
> The only problematic case of leaving a scoped_guard() with goto is when
> the goto is actually implemented as an ASM goto. See the comment above
> arch_unsafe_get_user() in linux/uaccess.h.
Oh OK. I was under the impression that goto's could cause undefined
behavior with guards. Or is that just when a goto jumps over one? Or is
that OK too?
-- Steve