git: 09d0e6b74aab - stable/13 - 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, 23 Jan 2023 13:57:14 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=09d0e6b74aab5ba7c4314aef8274c56cfb839f27 commit 09d0e6b74aab5ba7c4314aef8274c56cfb839f27 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-01-16 15:53:59 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-01-23 13:50:31 +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 (cherry picked from commit b050ee6c97e7f5b6f1e3adec69775fa41afc948f) --- 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 e7097be7b115..7228c6201b7e 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -2582,7 +2582,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; /*