Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Oct 2024 07:11:18 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a8c663bb4261 - stable/14 - pipespace_new(): decrease uidinfo pipebuf usage if reservation check failed
Message-ID:  <202410050711.4957BIYB001205@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=a8c663bb42612afb58965c091846ee026bc702fc

commit a8c663bb42612afb58965c091846ee026bc702fc
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 12:58:59 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410050711.4957BIYB001205>