From nobody Sat Oct 5 07:11:18 2024 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 4XLGmR5gLsz5Xrgk; Sat, 05 Oct 2024 07:11:19 +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 4XLGmR0dcQz4N8t; Sat, 5 Oct 2024 07:11:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112279; 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=ZXr/fOgA0PhnLygP0HDAZvQu6w+sWveGdM2r7VzBubs=; b=KKl69zoaf8RtkeL8O2GyX9LD5ss7zCxwlsCAVr756A72bpvmPdZbZTI/RqPm+aeW260dW6 f77ANpusA+OzBF6qU1fvaCYbKIR3fGOBd7xjN5iMR6Fia1cGzMnetgEGys3G3LdUzhlneV siAwaTxPUtN5IIV6vw0S2jvfLjAvUspK3Mjl/kPAk1J7v291RDaKUwljKITg8OyWYgy0i7 +bAv+WQ7krVjqF68hcFeI22pPwRbrvfXJmYpzwA0Jhe1yIXKm+0SxyNf798zVZHXoSZtfe aYMqIr1HLWbfRyZ4lr76EyfnGjW9cWzudyTzmUSgPaRH1HKvoGGxWybpbDiRQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112279; 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=ZXr/fOgA0PhnLygP0HDAZvQu6w+sWveGdM2r7VzBubs=; b=S9tYoqgZwjyDiO6+6rSubPuJzQI5hM3BLZE+WCRt1BwlbYWKMNrVFB2u+zVJUX7l8MlHr7 fbailMUwvTUjI5G7RhTI1cw8m+4HweTKqNRD8INJlcgRVUIV8CnmhG8THhbqxjbj+ijtcN CBHYzbosTQp7kBSQpTChOiT0n+MVrA+WeUtjwcewUiaa8IJWNX0L/YgB8fXaRaxCpL5D7h 0EpoXC5adzSxwt7CBMiimQih5ZYmOIPeHVSNdAmZVBtwG8zdkTcGHL4AFcS5iI0l63dHJw PnQwmXAKNn8Ff9e7ONhz4PBY6sa2j2q1NZrlrc5Aa5Fo/bsBN6s+F2NyGV81/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728112279; a=rsa-sha256; cv=none; b=gMXEpTJAckcHkaZAEANoOKIZl2PPzKcQPChJLFLmg40amCgnyJYfu0G64z22HhmmJw6BIJ cYqLDsnSUhhh7uAtpuaUPxbBcAg/u9aORBlsSwTNaxP3N5KSrmA/viiycmh3HuPbjllKWZ ZEcVTAiSO/c4GM1vAwue8m1qFEwRoC62vmiUgPdvsBtZXg+9PKCPjiMwfviPz1DKpdsXV1 ySiNeSiBYHlJqDwqv8oZ3LEcOUiY+whKKkbB4VcfAZ4VqMuiKfzGleE9OrpuWwvvZ3JQy+ LZ/Onts/oOZalCtEliMbmRi/7yhj95PnQfurC3OrVquCOeFY2+Mh4LvbncZeag== 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 4XLGmQ32v8z17m5; Sat, 5 Oct 2024 07:11:18 +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 4957BIMb001208; Sat, 5 Oct 2024 07:11:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4957BIYB001205; Sat, 5 Oct 2024 07:11:18 GMT (envelope-from git) Date: Sat, 5 Oct 2024 07:11:18 GMT Message-Id: <202410050711.4957BIYB001205@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: a8c663bb4261 - stable/14 - pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-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: a8c663bb42612afb58965c091846ee026bc702fc Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a8c663bb42612afb58965c091846ee026bc702fc commit a8c663bb42612afb58965c091846ee026bc702fc Author: Konstantin Belousov AuthorDate: 2024-09-20 12:58:59 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-05 07:08:55 +0000 pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed (cherry picked from commit 40769168a5ee227b96ea91768555eef332a0dc26) --- sys/kern/sys_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c index 380bc165cef5..20bedd665ca5 100644 --- a/sys/kern/sys_pipe.c +++ b/sys/kern/sys_pipe.c @@ -596,6 +596,7 @@ retry: if (priv_check(curthread, PRIV_PIPEBUF) != 0 && maxpipekva / 100 * (100 - pipebuf_reserv) < amountpipekva + size) { vm_map_unlock(pipe_map); + chgpipecnt(cpipe->pipe_pair->pp_owner->cr_ruidinfo, -size, 0); if (cpipe->pipe_buffer.buffer == NULL && size > SMALL_PIPE_SIZE) { size = SMALL_PIPE_SIZE;