Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Jan 2022 14:21:02 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9795d85d2e73 - stable/13 - posixshm: Report output buffer truncation from kern.ipc.posix_shm_list
Message-ID:  <202201241421.20OEL2rG042241@gitrepo.freebsd.org>

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

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

commit 9795d85d2e73472e65d48b27a3c684f130722009
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-01-17 13:33:05 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-01-24 14:16:37 +0000

    posixshm: Report output buffer truncation from kern.ipc.posix_shm_list
    
    PR:             240573
    Reviewed by:    kib
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit dc7526170d4cc62f35bafb25dd026399c612ed5b)
---
 sys/kern/uipc_shm.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 7823e92378b0..2c9cf92fe5ad 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -1934,9 +1934,6 @@ sysctl_posix_shm_list(SYSCTL_HANDLER_ARGS)
 			if (error != 0)
 				break;
 			pack_kinfo(&kif);
-			if (req->oldptr != NULL &&
-			    kif.kf_structsize + curlen > req->oldlen)
-				break;
 			error = sbuf_bcat(&sb, &kif, kif.kf_structsize) == 0 ?
 			    0 : ENOMEM;
 			if (error != 0)



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