git: c787fedf1262 - stable/13 - amd64: initialize td_frame stack area for init(8) main thread
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 02 Apr 2024 15:18:16 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=c787fedf1262c253faac09b95184e409b26c2f1e
commit c787fedf1262c253faac09b95184e409b26c2f1e
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-03-25 12:10:43 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-04-02 15:18:00 +0000
amd64: initialize td_frame stack area for init(8) main thread
(cherry picked from commit e0c92dd2b7e62e4f8281c9ad1d31465bb32f9e3b)
---
sys/kern/init_main.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c
index 73d78ad16df3..1a8269b8b367 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -783,6 +783,7 @@ start_init(void *dummy)
*/
KASSERT((td->td_pflags & TDP_EXECVMSPC) == 0,
("nested execve"));
+ memset(td->td_frame, 0, sizeof(*td->td_frame));
oldvmspace = p->p_vmspace;
error = kern_execve(td, &args, NULL, oldvmspace);
KASSERT(error != 0,