On Sun, Jun 28, 2026 at 07:01:16AM +0200, Anton Lindqvist wrote:
> On Sat, Jun 27, 2026 at 11:00:56PM +0200, Mark Kettenis wrote:
> > > Date: Sat, 27 Jun 2026 21:10:33 +0200
> > > From: Anton Lindqvist <[email protected]>
> > >
> > > On Thu, Jun 25, 2026 at 02:14:20AM -0600, Mark Kettenis wrote:
> > > > CVSROOT: /cvs
> > > > Module name: src
> > > > Changes by: [email protected] 2026/06/25 02:14:20
> > > >
> > > > Modified files:
> > > > sys/kern : kern_exit.c
> > > >
> > > > Log message:
> > > > Always untrace traced children even when they're exiting. But do skip
> > > > sending them a SIGKILL. This prevents triggering a KASSERT in a
> > > > convuluted
> > > > scenario reported by Yuxiang Yang.
> > > >
> > > > "looks right" deraadt@
> > > > ok claudio@
> > >
> > > This commit introduced a regression, the following command now hangs.
> > >
> > > make -C /home/src/regress/sys/ptrace | cat
> >
> > My tree is checked out under /usr/src, but I can't reproduce this here with:
> >
> > make -C /usr/src/regress/sys/ptrace | cat
>
> I suspect this being timing sensitive. Always happens on my slow Haswell
> amd64-regresss host. A ktrace can be found here, note I eventually
> terminate by hitting Ctrl-C.
>
> https://www.basename.se/tmp/ptrace-ktrace.out
My regress test run by cron also hangs.
Executed directly, it works
make -C /usr/src/regress/sys/kern/ptrace
But this hangs after running all test
make -C /usr/src/regress/sys/kern/ptrace | cat
Running over ssh without controlling terminal also hangs
ssh localhost make -C /usr/src/regress/sys/kern/ptrace
The make command terminates, ssh session stays, and I have a bunch of
processes that cannot be killed.
0 3876 1 1 29 0 176 116 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -ri
0 85661 1 5 33 0 176 148 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -rd
0 98550 1 5 33 0 176 116 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -rib
0 16276 1 5 33 0 172 116 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -rdb
0 13433 1 5 33 0 176 160 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -Iri
0 84380 1 5 33 0 184 180 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -Ird
0 74186 1 5 33 0 168 160 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -Irib
0 48683 1 5 33 0 176 160 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/obj/ptrace -Irdb
0 41382 1 5 33 0 172 448 - T ?? 0:00.00
/usr/src/regress/sys/kern/ptrace/xstate/obj/xstate xstate-ymm-get
Seen on amd64, i386, octeon.
bluhm