From nobody Fri Sep 20 21:09:30 2024 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 4X9Q4W07jzz5X51J; Fri, 20 Sep 2024 21:09:31 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9Q4V4xvwz4lrG; Fri, 20 Sep 2024 21:09:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726866570; 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=jnyrV4dybYriOs6hnWI3oznzJo2A8VEnxjgOjkVjXoA=; b=FSdM6E+FdhU16Lp41xfgB/Dikxi2ls6PNHjVa8wN33UvkGgNhQrjFGfUa4SjJtCu/dVsxA X30LUuZS3IzhoDW7NeC7umK98HDP7NL6zN6pOCho7noKyfu4P+kdRDEPQIXVhkHV3wJGsF VQ9y+Nj54F6EJ9Q/YEBhTB4ZqrFoRY5z3BxW4vGhQAbSyLHy6rN7spJUH2whiXaFrkbrx5 fNZTZimTWfbsJZLwazC3oqkGLc09tvz4J/wBZWuYILsLW7VexqIeALSo7uOTu1AGDqdn6q /oPanUVvkcPjW5qE6u4LB0+6QA1PBy/WHhQGc8ro9zqgIatwTLSNhQE+YBrlgA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726866570; a=rsa-sha256; cv=none; b=rxdi2zYFVGgz0pJrMLit2u5RyZaytDPNkL/lQ3/fOvDA7So3/w13Z2UbAP07FOZoJ0MyMu c2KUF/IDQFaKM1RAnSuVg9ZyCEWaVmLvIwQjPmgF5AJxr1kntJfNs0G7V0YKpVGxnLyzrt J3qZd+uMcEGPhm1leViDITZmIPPMwR922LwcgomRsMRlaq4oAPxFytG4VP2pmuTMVE3YEw e/pd3jQ3cLG8XYkKO/mjafQMEtWunM5Oe0LnXDn69ralFmb5tbDQFlA55aNTbckAMQzQbH gzFqxTi1USDzgevSd2L0xJAgaeHE/n2OrA1vRsS29E3ONKQC6M7OpPfi0UPdCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726866570; 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=jnyrV4dybYriOs6hnWI3oznzJo2A8VEnxjgOjkVjXoA=; b=D0KK1QnbPOfM8nVN6kfR5gnu+xeJ+Pbn+qfLL+3zaEYlQhuasAHYvO2fQHyODH/PVY43X3 GRXLIQOeocpBKt2PeLWRMNGZjXDrhuYcJUBd0IHi/iwc7JeNgpkQE8NvHSSt/GVtGIJKjA OA1ldU5RrT11Au65aboqQYKqroBM32pTHHkVz0smJ2W3m7rjCJXWT/k3jCDgUu7YttWJLN QzHb/FhzMwRGAlICOSNzG6MhBgV3LeqC//dcZmP/gXIP5B0MnZove8fP0EgHcL0ui/gFS2 Rftu/HxZbLrBndh7Pn1TI3iX0UH2SmjL98HiWw/lebohgZHIhOZPNc72s3FBQQ== 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 4X9Q4V4Z7Tz15F4; Fri, 20 Sep 2024 21:09:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48KL9U1U078842; Fri, 20 Sep 2024 21:09:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48KL9UXN078839; Fri, 20 Sep 2024 21:09:30 GMT (envelope-from git) Date: Fri, 20 Sep 2024 21:09:30 GMT Message-Id: <202409202109.48KL9UXN078839@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: c84d8db0ab3d - main - procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-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: c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec commit c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec Author: Konstantin Belousov AuthorDate: 2024-09-20 15:04:32 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-20 21:08:51 +0000 procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added Sponsored by: The FreeBSD Foundation MFC after: 1 week --- sys/fs/procfs/procfs_rlimit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/fs/procfs/procfs_rlimit.c b/sys/fs/procfs/procfs_rlimit.c index 83e11f44b3f8..6be933ac6e44 100644 --- a/sys/fs/procfs/procfs_rlimit.c +++ b/sys/fs/procfs/procfs_rlimit.c @@ -57,6 +57,9 @@ #include #include +_Static_assert(nitems(rlimit_ident) == RLIM_NLIMITS, + "resource.h RLIMIT_IDENT needs update"); + int procfs_doprocrlimit(PFS_FILL_ARGS) {