From nobody Tue Jul 11 00:52:22 2023 X-Original-To: dev-commits-src-main@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 4R0Mlq1kvGz4dRL1; Tue, 11 Jul 2023 00:52:23 +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 4R0Mlq1KGYz4HBR; Tue, 11 Jul 2023 00:52:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689036743; 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=nQlzgBHNLS3ANVSbcnEyrvtpGlLVsgDDhv/yD9fFowA=; b=SEg1Erx+CgCuv8Q/Lc9V7awH3zqzn7dqD+HT6c9CN01UMBU74ZjeKAFmPLjeWBL6rVyb4B kXR7YP8/zgQfK94eUH3wi7UKJVV29w/X9D+wHsa7FjPMt7UWXJmgk74/MKesJJqG9yleMI L5z77U1lxK+ITy8DpnJnnHqlnAthqccJx20cq5a2YdUSuvTH4dxMtna86kwZGTBEqdvaI6 nTNog3Rj9h0tzjEbqJM2YSjLF0cKlTztjdvW8Yjg93e9xV9GcVoh6ffQQamjeVBy71M6bB VXnTJuYfkSezlo9Gt5KU3rVcTeWOsP7oHyu4jPcLr3DSd2M6ruJU0tVJukstAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689036743; 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=nQlzgBHNLS3ANVSbcnEyrvtpGlLVsgDDhv/yD9fFowA=; b=GmJkzwz8Xv/jLliJ8uYryuna6ZeOsdYnGI5TucAeQW9GCTMlhhCCwuA+XnSyDdtkOjPwkw EybE8dhMrUWOdZv33YfCHPRZSIpCUab90wbkqiXt8XGuLCqu5XgpVwV65pzVbkuHxs2eW1 Ajh4PLLgKK60tlIGZvBiIoPB84muBzeE3DLsvU5C+7BW1GuSV2p38NY+MI/Jj6MepcZRn0 yy1RbzjKIGNlQ1Rz5QEoQphIYvySQj4KPd5DBLrgA9Q1UI7Edyvhu+7IA85ZGKeycxjUIQ KBPK5xtnmYHtI2fLGJjBz3KhH2yebC00GgO+8U4/Y2OmfjD0exCa/kkxUMnuVg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689036743; a=rsa-sha256; cv=none; b=dg5RbLk4RMpdhayxvneUjB2Kyz6OWDFUHRX2agsMs2BjWz/i6Q6lrpFsSqpXg2To2mpcaP WuUlP76qhdzomGc+XVfSUB3s78ldwdKZZLURjlvyShDoW40I8LQyV8UqMxNNlDbGVGAM1P XW6d4UW9q+pnN76Ivt5nES81D0bl2BJKLm/8LVr794K4jZpZ+iJsZU0RrLssIDKvMgfX/b W7CQyQzCxVLkq4g1NCkP049gvRG3EUw/hlLn871ugK8/YHeXgV4GTFQ1lKq812zTmY0XMe sDAICgdFv2/X0pMvH05UH4QH0BtgZNBP37NF9Vc+Q+DKo8gS0oFHacYdnfQZlA== 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 4R0Mlq0Nswz15mB; Tue, 11 Jul 2023 00:52:23 +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 36B0qM2Q098192; Tue, 11 Jul 2023 00:52:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36B0qMVN098191; Tue, 11 Jul 2023 00:52:22 GMT (envelope-from git) Date: Tue, 11 Jul 2023 00:52:22 GMT Message-Id: <202307110052.36B0qMVN098191@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: 565a343ae3a3 - main - sigqueue_delete_set_proc(): initialize sq_proc for worklist List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@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: 565a343ae3a30bc2973182ff8dfd2fa37d7f615f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=565a343ae3a30bc2973182ff8dfd2fa37d7f615f commit 565a343ae3a30bc2973182ff8dfd2fa37d7f615f Author: Konstantin Belousov AuthorDate: 2023-07-10 00:29:43 +0000 Commit: Konstantin Belousov CommitDate: 2023-07-11 00:52:16 +0000 sigqueue_delete_set_proc(): initialize sq_proc for worklist This should fix leaks for the p_killpg_cnt counter, because sigqueue_flush() drops ksi's. Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/kern/kern_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 18756d53e98c..ecfde7a549fc 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -683,7 +683,7 @@ sigqueue_delete_set_proc(struct proc *p, const sigset_t *set) PROC_LOCK_ASSERT(p, MA_OWNED); - sigqueue_init(&worklist, NULL); + sigqueue_init(&worklist, p); sigqueue_move_set(&p->p_sigqueue, &worklist, set); FOREACH_THREAD_IN_PROC(p, td0)