From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=81.169.146.170 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796567581; b=gSnTlnQ04/Mwj4eP5zuWGkVLnKPAEnxqmtIGj6dvI71KGWBm6K0Kv2/RsWcbKxmKWAVF nqid4dOjKKGQoUj+k31N548xQeBWXBXTi8tEnH7sqkK1UBzQUCvIl/ity66FK27sv6TOs nsVi7RNVHItfivlAA80YEN/mbDK1JhC1Tgyk9g3lPYHjjjLAgySjkRBzLfdGZOQnytO9k uFKXrhjJ2Kjc5HCoq6lYS/WFDEYhTl8kjjrxN0HyaCLV0sK0hQzQheeqHg96iPqOh4qCg rnWlTr6hP8nIaDZiGCNCdOBKLncdtliQ6pmfBhO4mDvBzfjs4+G9lKE18nzTvjAzNSA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796567581; h=DMARC-Filter:X-RZG-CLASS-ID:DKIM-Signature:DKIM-Signature:X-RZG-AUTH: Received:Subject:To:Cc:References:From:Organization:Message-ID:Date: X-Mailer:MIME-Version:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=5vpeEo+iSw8E5MWlnDTAOLm3HD0u+os53JqaOqgtj34=; b=rpMZHLb4OyQg/UFyibixeGWIYdVVBrN+VENn9IJzj4RF6m7d23Q2l0oY2DleXCrcpcGd riDn7wlIkMtfbqvrhmzeBMXmS3WcJxKQHZ3fycXs1v7XIrSF6swv5JjJgQzLDuKjirzGd NMCqJMtwXwszEwIpwwDtW1aIzDaDAVY+D4nti9kpaw8eqSLe6uoa3AcRSdgyEOv48gztr GpfZ36bXCxAO+XE21bxoVOUL4Ko1R3ETXBALpIcFHYZqW74HFVVBT1xyyNIN4+QCju7VL C4+J0ztTih+ya8veeiCaI1u9B/NVwj5ufQVDNo1RZ6sLnEgCA7By9DzgltYkfOHVqgA== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=xenosoft.de; spf=none smtp.mailfrom=xenosoft.de; dkim=pass header.d=xenosoft.de header.i=@xenosoft.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=mbrxiwX4; dkim=pass header.d=xenosoft.de header.i=@xenosoft.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=FQkzhQs1; arc=pass header.oldest-pass=0 smtp.remote-ip=81.169.146.170 Received: from mo4-p02-ob.smtp.rzone.de (mo4-p02-ob.smtp.rzone.de [81.169.146.170]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68462606A326 for ; Sun, 6 Dec 2026 14:32:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 68462606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xenosoft.de Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=xenosoft.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=xenosoft.de header.i=@xenosoft.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=mbrxiwX4; dkim=pass header.d=xenosoft.de header.i=@xenosoft.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=FQkzhQs1 ARC-Seal: i=1; a=rsa-sha256; t=1796567530; cv=none; d=strato.com; s=strato-dkim-0002; b=ooLovjrNeXoXvQkDtqh4PvnvcFriegaBnVjf/L+9EZf57Dt8ec4FIMQy3y4+jCGUGr SNpFKUwyZV0DKFxdaVQdBT5YTeN64FJBn8Cw6CvycYSgcPumv/Cue/gVKU3e2uC54cpB KXsqI8YgSOi8GJXbM4kCYlOd2MiLA+VxnE3zMgvKljlXZujpGUsJFBo8FP+Yrfi8afba qZNZ82XrlFSSbcGO85JQY5/mn2ntReT9JmWd7VyTpAWLeOkf6p+fj5VtSpyz3egaQnf2 897ch1njELsDSjEzAnnMuvzcQNwiZuXnqjtzfHX1c5E5uXv6zDEa5pTf6HbXcQi3XIba owFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1796567530; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=5vpeEo+iSw8E5MWlnDTAOLm3HD0u+os53JqaOqgtj34=; b=pS1oVs6qSAFDsfg1wSNKOwE0FIKlNuA11Ae3DWbIj4Kimt4O/l89WNqVt6fKl7WqAa C2lEeWG55kl9Td6r+Z7BE+5/LCu4U5VDYajI1EfO/TFMxlIsETP1jJoFQVW8qjPkAvYm TPKyE7Rz4KofjKtrSTRBq5B4q2fzNRZuInABdrZchO0qywq87Anckmez3poT+pftQMe2 8E6cc5NchkGDMmmGzLOCHGsI4L5i2hU9yXsj6/gxSNv3MWZjjTT1cFN4yKZBV7HnYF6m 3pHQ9hrt2vce+POWBWjuYfpYRGDWZVakHohVGU2v84YF0YluUpI8LgUugJCvxRjPuhu2 8ZXw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo02 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1796567530; s=strato-dkim-0002; d=xenosoft.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=5vpeEo+iSw8E5MWlnDTAOLm3HD0u+os53JqaOqgtj34=; b=mbrxiwX4TfNrMLC64xlyZdMnSiSZSbeUgAKALHC4joofDDpggFdigGGRgk8VNDUBY1 cEEoMA/h/VCGKYzVeg6HPBlS21nVIj33GKeGI+Gnw3zD5lDQ7kYFGODWhiCoNGCFJV6E WbIpCE49XCn5KZLa3zpnkwAbrGeCevHPuNssrBKBw0Cs14i9qsowiS158hlNwIiyEYH2 fJrnyKoDFTRW7JVuQKK53rSLWhepBuSuQ1pUmnLrwy4lsA1cv+X2OVR/Lc24hEZQ5Yxs vOzXsZAfctfPG9DCYE9B2MEjVkZsYvJEwXNFBXhFPGmXgOsRpKjSTTRZH8dV+4t5Ktea o3jg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1796567530; s=strato-dkim-0003; d=xenosoft.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject:Cc:Date: From:Subject:Sender; bh=5vpeEo+iSw8E5MWlnDTAOLm3HD0u+os53JqaOqgtj34=; b=FQkzhQs1FSTLiDqMoGRQfPROKfrhu6LP+6FT20yWC0O4dC/Y1zXk07KzjossUdt/3g qtwy0y2mKIlIbGvYDTCA== X-RZG-AUTH: ":L2QefEenb+UdBJSdRCXu93KJ1bmSGnhMdmOod1DhGN0rBVhd9dFr4thIFiqT9BURIi+l7Bng" Received: from void-ppc.a-eon.tld by smtp.strato.de (RZmta 55.6.3 DYNA|AUTH) with ESMTPSA id e825d92B6EW7KBS (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Sun, 6 Dec 2026 15:32:07 +0100 (CET) Subject: Re: [PREEMPT] Kernel panic - not syncing: stack-protector: Kernel stack is corrupted To: "Christophe Leroy (CS GROUP)" , Damien Stewart , Shrikanth Hegde Cc: Ritesh Harjani , Narayana Murty N , maddy@linux.ibm.com, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, npiggin@gmail.com, linux-kernel@vger.kernel.org, msuchanek@suse.de, harshpb@linux.ibm.com, gautam@linux.ibm.com, amachhiw@linux.ibm.com, venkat88@linux.ibm.com, "R.T.Dickinson" , mad skateman , Christian Zigotzky References: <4FED0F6E-890F-4482-99F3-39D7520C48FE@xenosoft.de> <00f8e9aa-c3ec-1911-d81f-291d3c6ae8f0@xenosoft.de> <2abc8e2a-66ad-42ba-8dd5-cf82138b620e@yahoo.com.au> <9097026f-4429-4294-955c-abc6ede5277d@kernel.org> From: Christian Zigotzky Organization: A-EON Open Source Message-ID: Date: Sun, 6 Dec 2026 15:32:07 +0100 X-Mailer: Warpzilla/35.0.3 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 In-Reply-To: <9097026f-4429-4294-955c-abc6ede5277d@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 06/12/26 11:53, Christophe Leroy (CS GROUP) wrote: > Hi Damien, > > Le 06/12/2026 à 07:25, Damien Stewart a écrit : >> On 25/11/26 3:28 pm, Christian Zigotzky wrote: >>> >>> It is very difficult to figure out what the issue is because it >>> occurs sporadically. >>> >>> Cheers, >>> Christian >> >> >> So after reading info I've found I'm sure it's due to the same issue >> that has plagued PPC64 before. I've examined ASM code and found the >> compiler is caching register r13 into r10 in the 7.3.0 kernel build >> which I found corrupted the canary. So it's reading off a stale PACA >> pointer, yes, that old canard again. >> >> The cause looks to be no static TLS register on PPC64 so the volatile >> PACA is used instead. The problem being the compiler doesn't seem to >> be aware the PACA is volatile so any preemptive move switching a task >> can change it. In that case I wonder if the current PACA should >> contain an extra pointer that is always guaranteed to hold current >> task context for that CPU. >> >> >> So GCC version 9.4.0 and GCC version 10.4.0 are known to cause it in >> compiled code. The bug is rather annoying as the source code looks >> fine but machine code generated by certain compilers producing >> unstable code. The GCC option "-mstack-protector-guard-reg=r13" >> should solve it. Which option CONFIG_STACKPROTECTOR should enable. >> But, only for later compilers. If an earlier compiler must be used, >> to circumvent any other build or code issues, then a clean patch to >> tell the compiler r13 is volatile looks like one solution. >> > > Can you provide more details, like the disassembly of the function > where you suspect the use of r10 being a problem ? > > What do you mean by "Which option CONFIG_STACKPROTECTOR should enable" ? > STACKPROTECTOR cannot be selected if the compiler doesn't support > -mstackprotector-guard-reg=r13,  see commit bf6cbd0c87f3 ("powerpc: > Fix stackprotector detection for non-glibc toolchains") and commit > 06ec27aea9fc ("powerpc/64: add stack protector support") > > So with older compilers you just can't select CONFIG_STACKPROTECTOR > because powerpc doesn't select CONFIG_HAVE_STACKPROTECTOR in that case. > > Christophe > Hi all, Should I compile the RC6 with GCC11? CONFIG_STACKPROTECTOR was already enabled in RC5. Or should I try disabling CONFIG_STACKPROTECTOR_STRONG? What should I do? Thanks, Christian -- Sent with Warpzilla 35.0.3 (https://github.com/chzigotzky/Web-Browsers-and-Suites-for-Linux-PPC/releases/tag/Warpzilla_35.0.3)