From nobody Wed Jul 26 23:34:03 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RB9G36vngz4ntnd; Wed, 26 Jul 2023 23:34:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RB9G36FQRz4B41; Wed, 26 Jul 2023 23:34:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690414443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n7edIDgeff69PhBuOmim/5zS5Xm/4PqnQ2eRQlgdSKE=; b=DGWgY/kAmIVNY5+dPoUIoj4HAbFZ/PSuIBxtnqLHzVxwJJe2+zQK8rs4czmicqtVc+3JuD 8mejYnKdEUcrkgWlvLGxwNeHdHlizMKRpb66QHpYTNhEfgyBRx8sD3RL+sw4p/BRQ7JYSj VNAdy8vbhyOVNH+u8APe+4GJHL82l7xjC3uAqlZ8Mdr6h2COD7nFbfrpDL+R+yfK+KR/hr 3DJNcepRoApLo6j7sh4x1X1LsO3CzmvulH74XmbuDKV/e0Vt6T9HX75WmYDeFKgTRRcWzs OBQSttaNK6gXtVPH/nFLO7HccCnlsM3GAUAQtphzdZJA1+cegMB9U4y+QkjDoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1690414443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=n7edIDgeff69PhBuOmim/5zS5Xm/4PqnQ2eRQlgdSKE=; b=i4pXlH6pNDHcC50xIzBaA3VYmVSpZnDkVe7FOpNEtNQmCI21OjtoxPCTzLhAo0ReNSsJBD 2Wol3XD3EfSBIWK24DL5hK4i+lV/kp/k3aGotDP8/ZA13IkmlMcS135omD0epuTe7Go3eP 3jQylZWxmud90mbNbWY4CHN/6PXci6fDPOf0ZDstF0O/g0KsHea4teACc/iOz4+CUKarEC mcg9oMO5KLdxf1QlqGvaaVCdGEMSbBTZhMbCr1u68qB23i+Uf2+s8W3R2Wl6H1QhnkA/DV jLJztJJByIWs5pQFsV+FgzOabbY1qz45mTaoFT23RP+RrGq0hqq+zGbcuKe1RA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1690414443; a=rsa-sha256; cv=none; b=YeJHP+dcLR/DyiI9DMy7eSylNnK9tQz8CB9g6lYOoKvNLNDiCHkck+g9C8XBNfrl8uKqql AazWaaUhpBp/uNuQdn+eW3CGahcc44ZAqUfMz/96pTe07wVBmY9fWrzwhWAMqmleG3BoTP UPrMfAw3k6RSXfaB92e4dIaftoI8xd4oJknXW7lyfKbKDLwT+OIVAZkZuazL5xt2OMw6wT KmG7ztdWs5KkJM/Arrm0G11fFoWaJLsuIRKua59AOVM5GMPhiXMWVe6lWAimUsSdvTjDLr 06njTydheDL3K17kjjbS1OU5IZmG4Swm83q+c2rlTEbrR9q6ezCCvMMY1r6wIQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RB9G35Kjfz12gQ; Wed, 26 Jul 2023 23:34:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36QNY3JQ031732; Wed, 26 Jul 2023 23:34:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36QNY35d031731; Wed, 26 Jul 2023 23:34:03 GMT (envelope-from git) Date: Wed, 26 Jul 2023 23:34:03 GMT Message-Id: <202307262334.36QNY35d031731@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 474708c334a7 - main - fork1(): properly track the state of the pg_killsx lock List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 474708c334a7d4fb27049e7dabaf5b74542568dd Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=474708c334a7d4fb27049e7dabaf5b74542568dd commit 474708c334a7d4fb27049e7dabaf5b74542568dd Author: Konstantin Belousov AuthorDate: 2023-07-26 23:24:30 +0000 Commit: Konstantin Belousov CommitDate: 2023-07-26 23:33:58 +0000 fork1(): properly track the state of the pg_killsx lock Reported by: dchagin Fixes: 232b922cb363e01ac0dd2a277d93cf74d8485e79 Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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 e64a91ea5f80..83895e036e37 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -989,6 +989,7 @@ fork1(struct thread *td, struct fork_req *fr) * lock. */ sx_sunlock(&pg->pg_killsx); + killsx_locked = false; error = ERESTART; goto fail2; } else {