mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-01 17:00:36 +00:00
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
This commit is contained in:
parent
8a9495517b
commit
b050ee6c97
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user