The branch stable/15 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=0add74cd82d874b702ba9dcf1fa0097d4c340232

commit 0add74cd82d874b702ba9dcf1fa0097d4c340232
Author:     Konstantin Belousov <[email protected]>
AuthorDate: 2025-09-19 15:38:07 +0000
Commit:     Konstantin Belousov <[email protected]>
CommitDate: 2025-09-23 00:40:33 +0000

    remote coredump: fully initialize coredump_vnode_ctx and coredump_writer 
structs
    
    (cherry picked from commit 11205b0854113eae68f725287b8501951d67be0f)
---
 sys/kern/kern_sig.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index da0efac0598d..8efc0886988b 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -2656,9 +2656,11 @@ ptrace_coredumpreq(struct thread *td, struct proc *p,
                return;
        }
 
+       memset(&wctx, 0, sizeof(wctx));
        wctx.vp = tcq->tc_vp;
        wctx.fcred = NOCRED;
 
+       memset(&cdw, 0, sizeof(wctx));
        cdw.ctx = &wctx;
        cdw.write_fn = core_vn_write;
        cdw.extend_fn = core_vn_extend;

Reply via email to