Date: Mon, 23 Jan 2023 13:57:14 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: 09d0e6b74aab - stable/13 - vm_object: Fix a kernel memory disclosure via the vm_object list sysctl Message-ID: <202301231357.30NDvEDl000665@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=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; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202301231357.30NDvEDl000665>