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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 228FAC77B78 for ; Wed, 26 Apr 2023 14:46:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241060AbjDZOqG (ORCPT ); Wed, 26 Apr 2023 10:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240506AbjDZOqD (ORCPT ); Wed, 26 Apr 2023 10:46:03 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AAAD72B4; Wed, 26 Apr 2023 07:45:47 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Q61rS6PL0z4x1H; Thu, 27 Apr 2023 00:45:44 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1682520345; bh=oMuxe+KJMbGNCZWYXnNWaQGhxAfiAj2LaZcWFR8JHYs=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=gfBLEMyoAxGwCpEE9bWsDlEcneRdSa0i0L6TuE6lyTRckWh6EI1FJRxaEncFnWpfK 0Peh1/OXF1fV1pBhOz+0HtoMCHT1fFL61BFpfQfg4uNJz1vjovVqgEqTmxF/Yc1ewb Bbu3/As/Va0rAKRt7gk/DR9DmCONJsnTe+UJYjFWDpRWn5N8iFqMd3f6iXLSlJ0aVe wv287yiW4xC7eR0l+gk6WOXzSMBBiUkh4DSKFd1AiA918pHeQhfXCrvtCJbqsgZcP/ bOTA7gvTUewq4M2lROswBt/qcBhb+o2qi36AQgicpEIIT1I9w+XdX0HAGS51dNnAop GXZlkHivnu+fQ== From: Michael Ellerman To: Peter Zijlstra , Joel Fernandes Cc: Zhouyi Zhou , Christophe Leroy , Boqun Feng , Segher Boessenkool , linuxppc-dev , rcu , linux-kernel , lance@osuosl.org, "Paul E. McKenney" Subject: Re: BUG : PowerPC RCU: torture test failed with __stack_chk_fail In-Reply-To: <20230426142054.GA1381951@hirez.programming.kicks-ass.net> References: <87fs8pzalj.fsf@mail.concordia> <20230424151351.GP19790@gate.crashing.org> <20230425101324.GD1331236@hirez.programming.kicks-ass.net> <877ctyzv08.fsf@mail.concordia> <20230426142054.GA1381951@hirez.programming.kicks-ass.net> Date: Thu, 27 Apr 2023 00:45:44 +1000 Message-ID: <874jp2zopz.fsf@mail.concordia> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra writes: > On Wed, Apr 26, 2023 at 09:44:22AM -0400, Joel Fernandes wrote: > >> How could you control which code paths don't have the stack protector? >> Just curious. > > https://lkml.kernel.org/r/20230412-no_stackp-v2-0-116f9fe4bbe7@google.com We also have some entire files disabled, eg: $ git grep no-stack-protector arch/powerpc/ arch/powerpc/kernel/Makefile:CFLAGS_prom_init.o += -fno-stack-protector arch/powerpc/kernel/Makefile:CFLAGS_syscall.o += -fno-stack-protector arch/powerpc/kernel/Makefile:CFLAGS_setup_64.o += -fno-stack-protector arch/powerpc/kernel/Makefile:CFLAGS_paca.o += -fno-stack-protector cheers