Files
u-boot/cmd
Simon Glass a527909208 malloc: Skip backtrace when stack is corrupted
When the stack is corrupted (e.g., by the stack protector test),
collecting a backtrace during malloc causes a crash because the
backtrace code walks the invalid stack frames.

Update __stack_chk_fail() to set the flag before calling panic()

Also update stackprot_test() to set the flag before intentionally
corrupting the stack. This is needed because of the printf() in the
test: on sandbox printf() results in truetype allocations due to the
console output.

These fixes allow the stack protector test to pass with mcheck enabled.

Co-developed-by: Claude <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
2025-12-10 05:53:03 -07:00
..
2024-10-28 16:11:33 +08:00
2025-03-15 08:49:43 +00:00
2024-02-15 10:38:34 +01:00
2025-12-01 15:42:04 +00:00
2025-09-24 18:29:38 -06:00
2025-09-28 14:32:36 -06:00
2024-11-04 16:41:38 -06:00
2025-04-18 05:02:56 -06:00
2025-06-28 07:53:25 -06:00
2024-07-15 12:12:17 -06:00
2025-06-28 07:53:25 -06:00
2024-10-09 22:04:56 -06:00
2024-08-02 15:16:51 -03:00
2024-07-15 12:12:17 -06:00
2024-08-13 06:12:40 +02:00
2024-09-12 17:35:37 +02:00
2025-05-28 08:01:43 +01:00
2024-09-12 17:35:37 +02:00
2025-06-28 07:53:25 -06:00
2024-09-12 17:35:37 +02:00
2024-08-13 06:23:05 +02:00
2024-03-07 09:23:10 -05:00
2024-09-18 13:07:19 -06:00
2024-07-15 12:12:17 -06:00
2024-10-10 16:02:20 -06:00
2024-07-15 12:12:17 -06:00
2024-11-14 18:14:05 -06:00
2024-11-22 14:40:53 -06:00
2024-05-22 08:55:29 -06:00
2025-09-04 07:08:24 -06:00
2024-06-24 13:34:52 -06:00
2024-07-15 12:12:17 -06:00
2024-10-17 03:12:47 +02:00
2024-07-15 12:12:17 -06:00
2024-07-15 12:12:17 -06:00
2024-06-04 08:09:09 -06:00
2025-05-16 18:17:17 +02:00
2024-10-10 16:02:20 -06:00
2024-07-15 12:12:17 -06:00
2024-07-15 12:12:17 -06:00
2024-11-14 18:14:05 -06:00
2024-09-18 13:00:59 -06:00
2025-06-28 12:30:56 -06:00
2024-07-15 12:12:17 -06:00
2024-07-15 12:12:17 -06:00