Subject: [Bug 213837] "Kernel panic - not syncing: corrupted stack end detected inside scheduler" at building via distcc on a G5

From: [email-masked]
Date: Fri, 24 Sep 2021 22:25:08 +0000

https://bugzilla.kernel.org/show_bug.cgi?id=213837

--- Comment #12 from Erhard F. ([email-masked]) ---
Created attachment 298963
  --> https://bugzilla.kernel.org/attachment.cgi?id=298963&action=edit
dmesg (5.15-rc2 + patch, PowerMac G5 11,2) #1

Last stack trace with CONFIG_THREAD_SHIFT=14 however did reveal a bit more
data:

[...]
stack: c0000000023effb0: 00000000 28022284 00000000 00000000  ....(.".........
stack: c0000000023effc0: 00000000 00000c00 00003fff 94c95000  ..........?...P.
stack: c0000000023effd0: 00000000 42000000 ffffffff ffffffea  ....B...........
stack: c0000000023effe0: 00000000 00000000 00000000 00000000  ................
stack: c0000000023efff0: 00000000 00000000 00000000 00000000  ................
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 1 PID: 2652 Comm: cc1plus Tainted: G        W        
5.15.0-rc2-PowerMacG5+ #4
Call Trace:
[c0000000023ef7f0] [c0000000005532d8] .dump_stack_lvl+0x98/0xe0 (unreliable)
[c0000000023ef880] [c000000000069538] .panic+0x14c/0x3e8
[c0000000023ef930] [c00000000081d5a0] .__schedule+0xc0/0x874
[c0000000023efa00] [c00000000081dea0] .preempt_schedule_common+0x28/0x48
[c0000000023efa80] [c00000000081deec] .__cond_resched+0x2c/0x50
[c0000000023efaf0] [c00000000029579c] .dput+0x40/0x218
[c0000000023efba0] [c000000000285204] .path_put+0x1c/0x34
[c0000000023efc20] [c00000000027eab8] .do_readlinkat+0xdc/0x124
[c0000000023efcf0] [c00000000027f310] .__se_sys_readlink+0x20/0x30
[c0000000023efd60] [c000000000022850] .system_call_exception+0x1ac/0x1e4
[c0000000023efe10] [c00000000000b4cc] system_call_common+0xec/0x250
--- interrupt: c00 at 0x3fff95335500
NIP:  00003fff95335500 LR: 00003fff95273f6c CTR: 0000000000000000
REGS: c0000000023efe80 TRAP: 0c00   Tainted: G        W         
(5.15.0-rc2-PowerMacG5+)
MSR:  900000000200f032 <SF,HV,VEC,EE,PR,FP,ME,IR,DR,RI>  CR: 28022284  XER:
00000000
IRQMASK: 0 
GPR00: 0000000000000055 00003fffd5fb3600 00003fff95424300 00003fffd5fb4040 
GPR04: 00003fffd5fb3b20 00000000000003ff 0000000062697473 000000002bcf8581 
GPR08: ffffffffd4307a80 0000000000000000 0000000000000000 0000000000000000 
GPR12: 0000000000000000 00003fff95946430 00000000000003ff 00003fffd5fb4030 
GPR16: 00003fffd5fb3b20 0000000000000000 00003fffd5fb3700 0000000000000000 
GPR20: 000000000000002f 00003fffd5fb3b10 00003fff9593f7b8 00003fffd5fb4080 
GPR24: 0000000000000004 00003fffd5fb3710 00003fffd5fb3b20 00003fffd5fb4040 
GPR28: 00003fffd5fb4538 00003fffd5fb4084 00003fffd5fb4040 0000000000000000 
NIP [00003fff95335500] 0x3fff95335500
LR [00003fff95273f6c] 0x3fff95273f6c
--- interrupt: c00
Rebooting in 40 seconds..

And another one:
[...]
stack: c00000002cd77fb0: 00000000 28042822 00000000 00000000  ....(.("........
stack: c00000002cd77fc0: 00000000 00000c00 00003fff 9b2dd000  ..........?..-..
stack: c00000002cd77fd0: 00000000 42000000 00000000 00000000  ....B...........
stack: c00000002cd77fe0: 00000000 00000000 00000000 00000000  ................
stack: c00000002cd77ff0: 00000000 00000000 00000000 00000000  ................
Kernel panic - not syncing: corrupted stack end detected inside scheduler
CPU: 1 PID: 2713 Comm: cc1plus Tainted: G        W        
5.15.0-rc2-PowerMacG5+ #4
Call Trace:
[c00000002cd76dd0] [c0000000005532d8] .dump_stack_lvl+0x98/0xe0 (unreliable)
[c00000002cd76e60] [c000000000069538] .panic+0x14c/0x3e8
[c00000002cd76f10] [c00000000081d5a0] .__schedule+0xc0/0x874
[c00000002cd76fe0] [c00000000081dea0] .preempt_schedule_common+0x28/0x48
[c00000002cd77060] [c00000000081deec] .__cond_resched+0x2c/0x50
[c00000002cd770d0] [c000000000327848] .__ext4_handle_dirty_metadata+0x24/0x214
[c00000002cd771a0] [c000000000352a6c] .ext4_mb_mark_diskspace_used+0x3e0/0x41c
[c00000002cd77290] [c000000000355ae4] .ext4_mb_new_blocks+0x580/0xe10
[c00000002cd773b0] [c00000000033b2f0] .ext4_ind_map_blocks+0x63c/0xb28
[c00000002cd775a0] [c000000000342bf4] .ext4_map_blocks+0x37c/0x588
[c00000002cd77680] [c000000000342e64] ._ext4_get_block+0x64/0xec
[c00000002cd77730] [c0000000002c36a4] .__block_write_begin_int+0x188/0x4a4
[c00000002cd77850] [c0000000003480f8] .ext4_write_begin+0x2a8/0x3d0
[c00000002cd77970] [c0000000001c9170] .generic_perform_write+0xb8/0x1f4
[c00000002cd77a60] [c000000000333d68] .ext4_buffered_write_iter+0xb8/0x154
[c00000002cd77b00] [c000000000277a14] .new_sync_write+0x94/0xe8
[c00000002cd77c00] [c000000000278d6c] .vfs_write+0x13c/0x140
[c00000002cd77ca0] [c000000000278eb4] .ksys_write+0x78/0xc4
[c00000002cd77d60] [c000000000022850] .system_call_exception+0x1ac/0x1e4
[c00000002cd77e10] [c00000000000b4cc] system_call_common+0xec/0x250
--- interrupt: c00 at 0x3fff9b804b00
NIP:  00003fff9b804b00 LR: 00003fff9b780d04 CTR: 0000000000000000
REGS: c00000002cd77e80 TRAP: 0c00   Tainted: G        W         
(5.15.0-rc2-PowerMacG5+)
MSR:  900000000200d032 <SF,HV,VEC,EE,PR,ME,IR,DR,RI>  CR: 28042822  XER:
00000000
IRQMASK: 0 
GPR00: 0000000000000004 00003fffe21d3000 00003fff9b8f6300 0000000000000001 
GPR04: 0000000026979780 0000000000001000 0000000000000001 0000000000000036 
GPR08: 000000002697a780 0000000000000000 0000000000000000 0000000000000000 
GPR12: 0000000000000000 00003fff9be17430 00000000100f1858 0000000010063a50 
GPR16: 00000000100639f8 0000000010063968 000000012e83eb28 0000000000000000 
GPR20: ffffffffffffffff 0000000011a5b890 0000000000000001 00000000114e5160 
GPR24: 00000000114e5170 0000000000000000 0000000026979780 0000000000001000 
GPR28: 0000000000001000 00003fff9b8f0920 0000000026979780 0000000000001000 
NIP [00003fff9b804b00] 0x3fff9b804b00
LR [00003fff9b780d04] 0x3fff9b780d04
--- interrupt: c00
Rebooting in 40 seconds..

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.