Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jan 2023 16:37:19 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: b050ee6c97e7 - main - vm_object: Fix a kernel memory disclosure via the vm_object list sysctl
Message-ID:  <202301161637.30GGbJhs021374@gitrepo.freebsd.org>

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

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

commit b050ee6c97e7f5b6f1e3adec69775fa41afc948f
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-01-16 15:53:59 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-01-16 16:27:54 +0000

    vm_object: Fix a kernel memory disclosure via the vm_object list sysctl
    
    Reported by:    Chris J-D <chris@accessvector.net>
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 sys/vm/vm_object.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c
index afe1dcb8c25a..99b28d9460a3 100644
--- a/sys/vm/vm_object.c
+++ b/sys/vm/vm_object.c
@@ -2523,7 +2523,7 @@ vm_object_list_handler(struct sysctl_req *req, bool swap_only)
 		    count * 11 / 10));
 	}
 
-	kvo = malloc(sizeof(*kvo), M_TEMP, M_WAITOK);
+	kvo = malloc(sizeof(*kvo), M_TEMP, M_WAITOK | M_ZERO);
 	error = 0;
 
 	/*



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