From: "Theo de Raadt" Subject: Re: stacktrace_save_utrace() should be more robust To: "Ted Unangst" Cc: "Alexandr Nedvedicky" , "Mark Kettenis" , tech@openbsd.org Date: Wed, 21 May 2025 18:19:32 -0600 Ted Unangst wrote: > Is it possible to use two loops here? One loop to get out of the kernel, > and then the second that does the copyin? I think there is not so much > code in common that duplicating is a problem, and it will be more clear > what we're trying to do in each loop. right. don't check the condition of the pointer at every step.