git: c25f1912ea6a - stable/13 - fork1(): properly track the state of the pg_killsx lock
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Aug 2023 00:59:53 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=c25f1912ea6a9ca510625eac2111d3b2ae67b40d
commit c25f1912ea6a9ca510625eac2111d3b2ae67b40d
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-07-26 23:24:30 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-08-07 00:48:45 +0000
fork1(): properly track the state of the pg_killsx lock
(cherry picked from commit 474708c334a7d4fb27049e7dabaf5b74542568dd)
---
sys/kern/kern_fork.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 3b612e7b8990..cc8e730b10fd 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -984,6 +984,7 @@ fork1(struct thread *td, struct fork_req *fr)
* lock.
*/
sx_sunlock(&pg->pg_killsx);
+ killsx_locked = false;
error = ERESTART;
goto fail2;
} else {