From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 42EDBC433EF for ; Wed, 8 Sep 2021 12:56:12 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6D4F66008E for ; Wed, 8 Sep 2021 12:56:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6D4F66008E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=bugzilla.kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4H4MZf0TkQz2ynG for ; Wed, 8 Sep 2021 22:56:10 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=XAdq1BG6; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=bugzilla.kernel.org (client-ip=198.145.29.99; helo=mail.kernel.org; envelope-from=bugzilla-daemon@bugzilla.kernel.org; receiver=) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=XAdq1BG6; dkim-atps=neutral Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4H4MYM6Y3dz2yHN for ; Wed, 8 Sep 2021 22:55:03 +1000 (AEST) Received: by mail.kernel.org (Postfix) with ESMTPS id A96AC61153 for ; Wed, 8 Sep 2021 12:54:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631105699; bh=F6R4vBHgmKBQUUJqJU/Q5MQ2Gtgyhcz4nYAzKjwL6HU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XAdq1BG6DZ1M5RUtFaa/hqIogZuEVG0qKxhde1WUb4VLpoaLKYFeYfbyPIZnvJMvE RP0DzyvPlOZa24DwCLX8O/Mi9iZx1mlHQBWnQbSs7Av+Ap0RUhRQ4gabVPYdYt4gzq 1k6lnjCQcKYSZ5JV119sDOiy4sIyBKF/PAyZogYq4c0s9R/Wm1xpJS9KoA2bbF7ZEU rnAOchAxbT5pUFlfIoYx3QpsReAVujmdcwobLeNBwWn1z54h/eBHCEnYp6/PhmWpZs ZDCQ5vD3T+nYw1tyz8kmM/cBxIJVBKU0zqTl57ZWvOK5JpUWNaOQs+lGRzvGr3rXhH vq1pI5/ZI3EQw== From: bugzilla-daemon@bugzilla.kernel.org To: linuxppc-dev@lists.ozlabs.org Subject: [Bug 213837] "Kernel panic - not syncing: corrupted stack end detected inside scheduler" at building via distcc on a G5 Date: Wed, 08 Sep 2021 12:54:59 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: CC platform_ppc-64@kernel-bugs.osdl.org X-Bugzilla-Product: Memory Management X-Bugzilla-Component: Other X-Bugzilla-Version: 2.5 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpe@ellerman.id.au X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: akpm@linux-foundation.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" https://bugzilla.kernel.org/show_bug.cgi?id=3D213837 --- Comment #6 from mpe@ellerman.id.au --- bugzilla-daemon@bugzilla.kernel.org writes: > https://bugzilla.kernel.org/show_bug.cgi?id=3D213837 > > Erhard F. (erhard_f@mailbox.org) changed: > > What |Removed |Added > -------------------------------------------------------------------------= --- > See Also|https://bugzilla.kernel.org | > |/show_bug.cgi?id=3D213079 | > > --- Comment #4 from Erhard F. (erhard_f@mailbox.org) --- > Checked out whether this has really something to do with bug #213079 or n= ot > by > copying this root partition to a regular HDD and use that one instead. As= the > issue still happens it seems these are two seperate bugs. > > [...] > Kernel panic - not syncing: corrupted stack end detected inside scheduler Can you try this patch, it might help us work out what is corrupting the stack. cheers diff --git a/kernel/sched/core.c b/kernel/sched/core.c index c4462c454ab9..07bfa25c1b48 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5490,8 +5490,14 @@ static noinline void __schedule_bug(struct task_stru= ct *prev) static inline void schedule_debug(struct task_struct *prev, bool preempt) { #ifdef CONFIG_SCHED_STACK_END_CHECK - if (task_stack_end_corrupted(prev)) + if (task_stack_end_corrupted(prev)) { + char *start =3D (char *)end_of_stack(prev); + pr_err("stack corrupted? stack end =3D 0x%px\n", end_of_stack(prev)); + print_hex_dump(KERN_ERR, "stack: ", DUMP_PREFIX_ADDRESS, 16= , 4, + start - SZ_1K, THREAD_SIZE + SZ_1K, true); + panic("corrupted stack end detected inside scheduler\n"); + } if (task_scs_end_corrupted(prev)) panic("corrupted shadow stack detected inside scheduler\n"); --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching someone on the CC list of the bug.=