From nobody Sat Oct 05 07:11:03 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 4XLGm75MDnz5XrZ9; Sat, 05 Oct 2024 07:11: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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XLGm744H8z4Mrx; Sat, 5 Oct 2024 07:11:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112263; 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=bY8BRN3zlNgtflLajxdiCklEVcO+IgcLqrV4nf3pFmM=; b=gX06AV1zASJn8ZDs+7z1929/UnjcTkDfuI0hXf/uhTJJIuJ3HHTEhFXT033Rmv/vIYLkpe vaGP1Zr9zjfgu/hgBoaHtiC5si1xKq0ijSPs7SvLiRrSclQCMzB+X84DZSV0w38o7/Ophv cA4RYzLyEYVF1kgBNVrJW/HDk/EPvdVCSthwK9RItoQBNj8KRkq19GFHJxHvYykJzEAeXY VfnMM49yqOit0nRiHcAm3cOnn1EJEEuG17GfS/re5ItfXGX7UDkExUMkP6L/N8ymD/b22M 9dyYdZBaoqNrIPr3ajG/FgTA3Xifv7YlwoDJggBwcSl4+kvfcF/W7fZmCJju0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112263; 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=bY8BRN3zlNgtflLajxdiCklEVcO+IgcLqrV4nf3pFmM=; b=WIGcU7d9WnB5UEcUY2DV2Q62N3YMZLk1D97mTuX/R+jeMbkGDsuLZxvSEklJOIpGeQDGqx KChl5UjMz2WTuiBFAzaBZfsdDBmmtTHbg1EfxYDEQvP4wZHyoQtN9FiAJ72wBamWMWDdu/ oMKN066BLaftSnmeeHbxfifJn2jWTe5Q2EviPjPYq/pLZAejpaLN0AjQoGzeFe7IeHR2JA HpxJP56EaBn7HZuHZb1rcBYNsNEeW1IvelxZSlph273R1uKelkU6rckW52QSuh7CcL03xA jHRvNIc+AH7+Tg3obV5VOUNCJPCx0hQVo5FHHPUIKulUfZZQjJ94iaBQj68ZJA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728112263; a=rsa-sha256; cv=none; b=vjyv0qjcUubP9/Qi/I0/P8cDtpmPid4tMLVIPz1oGInSAhSqI8nzM9EAMZJcHBfzHHPVHw on8k574HJKkH1Pmhke+3lmB7X/bMmxqj7A2VN4h3XFqpn+0z30FdCf612RDe097JQsaJU1 Sm8cQOXS6AhzZulCi5t1ncZ8/iwzFQorHDE8k0YyPjcIh8J0HK/ww/GiTxr5y/ZwvGOXaq 4ZodbIEL70XI4W4qBFlxmcRYFQm/78wpDbwDW20gnSTPIg//s4BZAWddMftcqjTVOmGbZ5 jk8rNXSApD0/+h8CBigOUYHlN5Rs2m0SSNilPeTvNLwayeCH5HU9M8QypSrF+g== 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 4XLGm73gQJz18L6; Sat, 5 Oct 2024 07:11:03 +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 4957B3aq000664; Sat, 5 Oct 2024 07:11:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4957B3pp000661; Sat, 5 Oct 2024 07:11:03 GMT (envelope-from git) Date: Sat, 5 Oct 2024 07:11:03 GMT Message-Id: <202410050711.4957B3pp000661@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: 1508dce2502d - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: 1508dce2502d3afd4863595c94624ff71d2883c0 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=1508dce2502d3afd4863595c94624ff71d2883c0 commit 1508dce2502d3afd4863595c94624ff71d2883c0 Author: Konstantin Belousov AuthorDate: 2024-09-20 15:04:32 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-05 07:08:53 +0000 procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added (cherry picked from commit c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec) --- 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 3100bb0d6966..3dccf7889a0c 100644 --- a/sys/fs/procfs/procfs_rlimit.c +++ b/sys/fs/procfs/procfs_rlimit.c @@ -59,6 +59,9 @@ #include #include +_Static_assert(nitems(rlimit_ident) == RLIM_NLIMITS, + "resource.h RLIMIT_IDENT needs update"); + int procfs_doprocrlimit(PFS_FILL_ARGS) {