From nobody Tue Dec 5 00:43:57 2023 X-Original-To: dev-commits-src-branches@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 4SkhcF3fcBz532FX; Tue, 5 Dec 2023 00:43:57 +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 4SkhcF3GNrz4cbh; Tue, 5 Dec 2023 00:43:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701737037; 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=XYhrMssC8MoA4Y8F+4yDEGbCRJcf/xZtMnDi1BjwtDg=; b=Ggbx2J5tMwnrPwrgR5dQq/b9XODfn6yAVVn5q8M6NE2LuhuWnX81lsdGjRlKeiZ6qZDVar fFfplLa+JwsZiy0ry6u1nPO4Rhq9A8u/9yFJJxV4hywT1kfspbTCvja8/hDDodfhUwkfr5 W1AKtm7zz5nfYD8sUpA7G2tG6jgoRWA+3x5pLTb9v3qSZNQNfjBMl/elCdgnsX1xk77rst I2FHHc520OU8lo3jGJw/C4FbSbNippHkIjApTOc88Ycq3SC6cDxCnWIX/P2xYlkxVQaCtp D/iB1Gqe9GynqA8j/HF/IX+ciHOHpNlJDUnYpzY0SiN9zP/tbXGVbXgO2+xHFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701737037; 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=XYhrMssC8MoA4Y8F+4yDEGbCRJcf/xZtMnDi1BjwtDg=; b=cAMWE84pwmaDFvU7N/lbfqcff+lJSisTKed9AQyM6sM8EWA/jyFhQ1lK1adtxaEjixXS+J SfcTda+K9H1M4Z4tmcv8tvVT01y37DgS7ROBo4tdab85pHTlX+OZaWocGaTQpXq3oPZuer uwq3fe6y/A7PSbtX7CVGPEyvULfj5YMuZNE4Qdxonm9z9xeizrcMAPLxJXc+a1/6+kl2tZ bdQqpEGXNJzS8mybkx+JvJZ0UIBa7qHI7gGsFTJdtH3C4X16aw9h+sgPw0pU94DEEF7GW5 wTAJd7wGuFmhV0t129Tc9ogWX+evPZeuPRWE6rFM5UUmZws+Erk4J8MPpxOufQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701737037; a=rsa-sha256; cv=none; b=vlcrpQY3Ykvp26NmUtrb8UD0p0SmlLc/3AbVmHJgM9P3mmhyws3zLTLxzPycXvwV0CO+KQ r5tZG7TpWSrdy8f7qgfshyAmE5N7oj3QWEsVcthKc3Rmh3ItrWTIOuVD2she7xQDAxfsPa KT8DKbrYOA9zltj2hG2rBEAXePvVz37xRisptStrkim+t5mc4hh0VDDiH2/FjKpxXqqNTE L5BPM03G9nf6f/Eu2p5Pccuax8HKcOyobSo08Ihz3JwmosgQv7HduG24o+fpN+NZTmWr/R xGYNhgTT9AFsgvtlXxpAo7FKamMV7hjJrD6OMIUgUy/8CGFhPrHvdPnisRgMIA== 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 4SkhcF25Qtznx7; Tue, 5 Dec 2023 00:43:57 +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 3B50hvql029794; Tue, 5 Dec 2023 00:43:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3B50hv3m029791; Tue, 5 Dec 2023 00:43:57 GMT (envelope-from git) Date: Tue, 5 Dec 2023 00:43:57 GMT Message-Id: <202312050043.3B50hv3m029791@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 71f01edb5459 - stable/14 - EVFILT_TIMER: intialize stop timer list in type-stable proc init, instead of fork List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 71f01edb545968ae42967fa989cb818a3991f0cb Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=71f01edb545968ae42967fa989cb818a3991f0cb commit 71f01edb545968ae42967fa989cb818a3991f0cb Author: Konstantin Belousov AuthorDate: 2023-11-28 15:42:49 +0000 Commit: Konstantin Belousov CommitDate: 2023-12-05 00:43:27 +0000 EVFILT_TIMER: intialize stop timer list in type-stable proc init, instead of fork (cherry picked from commit 171f0832c5b15f2f66d2fe59967348a42814b0c1) --- sys/kern/kern_fork.c | 1 - sys/kern/kern_proc.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index aaa46a64ef9f..edcd8a1f2139 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -624,7 +624,6 @@ do_fork(struct thread *td, struct fork_req *fr, struct proc *p2, struct thread * LIST_INIT(&p2->p_orphans); callout_init_mtx(&p2->p_itcallout, &p2->p_mtx, 0); - TAILQ_INIT(&p2->p_kqtim_stop); /* * This begins the section where we must prevent the parent diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index 2daf39b398b5..936d410133eb 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -277,6 +277,7 @@ proc_init(void *mem, int size, int flags) EVENTHANDLER_DIRECT_INVOKE(process_init, p); p->p_stats = pstats_alloc(); p->p_pgrp = NULL; + TAILQ_INIT(&p->p_kqtim_stop); return (0); }