Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp914652rwr; Wed, 26 Apr 2023 07:56:29 -0700 (PDT) X-Google-Smtp-Source: AKy350ZZ0WhtcKG+hxFZNjVIEJ4AX45FOJjeRgNWNDoPc2qeuZ/gEf2v6tAAKYIjQXxHfBlY37ay X-Received: by 2002:a05:6a00:1582:b0:63d:3ddb:5f3f with SMTP id u2-20020a056a00158200b0063d3ddb5f3fmr31451926pfk.0.1682520989593; Wed, 26 Apr 2023 07:56:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682520989; cv=none; d=google.com; s=arc-20160816; b=XbI6vRnFlAv7bmxyOeFIw9EfZa1YWIBnXXRJ7LsX4tK92uFGuWsRfU+KKuHpjsu7X2 SNf9pO4/4TbzAq3V5qKpps0jowxb8n8mSP5V3Af3eZB0EW60Y4luxcq6DaNuzljev8uf uYMxRqLjp3gGqcZkxylv8k07NlPZnPgHVEIJTH6EFODiWjd/YNpznzkKehuzHUr7sztq 7CdBlCqKUdxfuVNy9hVXofh9HU8xhtJXI5a94/yLHpj25r/sZoDcy9W7q1dYYQm/P21Y BU0huc6XqJKeKMu67dKj425TYe/2+M/GAWEHx8NhWK8vyH1zmJD9eXAHAE4pNsvawM0Y gJFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=oMuxe+KJMbGNCZWYXnNWaQGhxAfiAj2LaZcWFR8JHYs=; b=qoaGZ9HLB7FRgKiU2sB4uscRPXKkj4B+4BqBpl3eYSJ9+IzfHlgmGaqYiEGoYBlwiV PC699QkxSjdfgoVqGQTdo4kSRWT+o5FaoNX9vEIuBzsDWD9iqGvRIyuErEwevPP/mxhB edzX5boP0dpuuTU3R3kLkYvqGqaeHnbxKVVzlPZiHRS080fiiP3MBkg0WnKCi3m55m4j f82YPhnVHa9ycIvKT7MHf+qYod0zUQdS3145z+KroD2ZiYdJnik91EDuVvlvBMfU3Uqk Ze9jarHPvxFFlxg7zOFChrsb3gGW2zdQc6AnwWbB9JPQUuY7aJSx69vFykZfNeAGfyjh 7mHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=gfBLEMyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a63d303000000b0050bd8dd1b5asi11881540pgg.43.2023.04.26.07.56.15; Wed, 26 Apr 2023 07:56:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=gfBLEMyo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240838AbjDZOqF (ORCPT + 99 others); Wed, 26 Apr 2023 10:46:05 -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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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