Skip to content

Commit

Permalink
freebsd64: Ignore errors when copying out during thr_exit()
Browse files Browse the repository at this point in the history
Apply the changes to sys_thr_exit from
f450277 to freebsd64_thr_exit.
  • Loading branch information
bsdjhb committed Mar 13, 2024
1 parent d893b70 commit 0ab115f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sys/compat/freebsd64/freebsd64_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1596,8 +1596,9 @@ freebsd64_thr_exit(struct thread *td, struct freebsd64_thr_exit_args *uap)

/* Signal userland that it can free the stack. */
if (uap->state != NULL) {
suword(__USER_CAP_OBJ(uap->state), 1);
kern_umtx_wake(td, __USER_CAP_OBJ(uap->state), INT_MAX, 0);
(void)suword(__USER_CAP_OBJ(uap->state), 1);
(void)kern_umtx_wake(td, __USER_CAP_OBJ(uap->state), INT_MAX,
0);
}

return (kern_thr_exit(td));
Expand Down

0 comments on commit 0ab115f

Please sign in to comment.