git: b050ee6c97e7 - main - vm_object: Fix a kernel memory disclosure via the vm_object list sysctl
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 16 Jan 2023 16:37:19 UTC
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;
/*