git: 305a2e4747c8 - stable/14 - ssp: Make the panic string more accurate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Oct 2026 19:46:57 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=305a2e4747c82036d4af286a7baf2c7385aed054
commit 305a2e4747c82036d4af286a7baf2c7385aed054
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-10-01 18:32:58 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-10-26 14:12:15 +0000
ssp: Make the panic string more accurate
"stack overflow detected" sounds like the thread faulted because it
ran out of stack space.
Reported by: Andrew <xxx.sys@protonmail.com>
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 0f4b7d28ccb5c8edd0e4aad8135a4356f8a31961)
---
sys/kern/stack_protector.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/sys/kern/stack_protector.c b/sys/kern/stack_protector.c
index bf8ec4187c1d..960df45100f1 100644
--- a/sys/kern/stack_protector.c
+++ b/sys/kern/stack_protector.c
@@ -11,8 +11,7 @@ void __stack_chk_fail(void);
void
__stack_chk_fail(void)
{
-
- panic("stack overflow detected; backtrace may be corrupted");
+ panic("stack buffer overflow detected; backtrace may be corrupted");
}
static void