git: c3aa964109a8 - stable/13 - shm: Zero struct kinfo_file in sysctl handler
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 May 2026 14:19:32 UTC
The branch stable/13 has been updated by emaste:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3aa964109a8fdf0ee0f84bae5ccb1f0c386b485
commit c3aa964109a8fdf0ee0f84bae5ccb1f0c386b485
Author: Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-03-11 01:59:07 +0000
Commit: Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-13 14:06:05 +0000
shm: Zero struct kinfo_file in sysctl handler
Reported by: Calif.io in collaboration with Claude and Anthropic Research
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D55806
(cherry picked from commit 25cc459286a02b646751541ccde5a33319471c73)
(cherry picked from commit 6348a5fd0d4792e752cb714f2a536c3287b8d580)
(cherry picked from commit e61804ae6380c8d1db4b8c43bf7821e5d31ca04e)
---
sys/kern/uipc_shm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 1df3a0967b09..150d82c89b69 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -2012,7 +2012,7 @@ sysctl_posix_shm_list(SYSCTL_HANDLER_ARGS)
{
struct shm_mapping *shmm;
struct sbuf sb;
- struct kinfo_file kif;
+ struct kinfo_file kif = {};
u_long i;
ssize_t curlen;
int error, error2;