git: fe4bbc607f95 - stable/15 - ssp: Make the panic string more accurate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Oct 2026 17:32:04 UTC
The branch stable/15 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=fe4bbc607f951175bbf76d2bcb518c57fd99e531
commit fe4bbc607f951175bbf76d2bcb518c57fd99e531
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-10-01 18:32:58 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-10-22 15:45:41 +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