Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 May 2026 14:19:34 +0000
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7f4bc4555a53 - stable/13 - compat32: Zero struct to avoid stack disclosure
Message-ID:  <6a048876.262b3.2d386f29@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/13 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=7f4bc4555a53f32c5990d16afe4cfab7aaf6f053

commit 7f4bc4555a53f32c5990d16afe4cfab7aaf6f053
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-03-11 15:02:18 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-05-13 14:06:05 +0000

    compat32: Zero struct to avoid stack disclosure
    
    Reported by:    Adam Crosser, Praetorian
    Reviewed by:    philip
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D55811
    
    (cherry picked from commit 097cb4e9f0432c543c704cec712ce1cd3302335c)
    (cherry picked from commit 4551ea3b3f04650cd5300a9eae8994bdb080db91)
    (cherry picked from commit 6a808cd7534802d30010fb0a7f46381ff9f6ef3f)
---
 sys/compat/freebsd32/freebsd32_misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index ee0119dba5af..316578f9bb97 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -619,7 +619,7 @@ static int
 freebsd32_kevent_copyout(void *arg, struct kevent *kevp, int count)
 {
 	struct freebsd32_kevent_args *uap;
-	struct kevent32	ks32[KQ_NEVENTS];
+	struct kevent32	ks32[KQ_NEVENTS] = {};
 	uint64_t e;
 	int i, j, error;
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a048876.262b3.2d386f29>