htl: Clear kernel_thread field before releasing the thread structure
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Jan 2022 20:30:17 +0000 (21:30 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 15 Jan 2022 20:31:08 +0000 (21:31 +0100)
commitc1105e34aced53b26f02176b973079eb30fc54b1
tree3875e9daac97d62f1fa1edd2d1f3714f94215ef4
parent630d2568a1dfa1912458396e0522f67eef215f7d
htl: Clear kernel_thread field before releasing the thread structure

Otherwise this is a use-after-free.
sysdeps/mach/htl/pt-thread-terminate.c