Index | Thread | Search

From:
"Theo de Raadt" <deraadt@openbsd.org>
Subject:
Re: stacktrace_save_utrace() should be more robust
To:
"Ted Unangst" <tedu@tedunangst.com>
Cc:
"Alexandr Nedvedicky" <sashan@fastmail.net>, "Mark Kettenis" <mark.kettenis@xs4all.nl>, tech@openbsd.org
Date:
Wed, 21 May 2025 18:19:32 -0600

Download raw body.

Thread
Ted Unangst <tedu@tedunangst.com> 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.