Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6019349rwd; Wed, 24 May 2023 09:42:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4dmZreu6imMARM0UzvobO3l/FMok1uaCiY1ZtwEoWYcYuuGVvJMqm3jRMaVwuqTX5L42lz X-Received: by 2002:a17:902:d504:b0:1ac:9885:9f54 with SMTP id b4-20020a170902d50400b001ac98859f54mr21779509plg.63.1684946524119; Wed, 24 May 2023 09:42:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684946524; cv=none; d=google.com; s=arc-20160816; b=TYDmlJVg1/ardN9UTJ4G0BuqvpytwJwNhIfovTSBWyn2elRuJ4LczY4aXLqFpL96dy JVHA+sx2U9+9gkVtZGZnwvbngbvTxFbSGEOTY3PHb/nQtLOvtym01pDOVJnjB3WkpjwM ZPw5gwL2x4Kbl3UWMFErHT4Ze754glRFR5M4na33PPKlX1RqAa5gM9xIcqIZVOuCZTxb rVe8RFI/6iXa4cq+gyw3Xf24O9Lm/7Excvwy+tNMF3nyYb6uIdLxsehzUsqvZFv1awRw 5rj+cwrNdrvivvLNvOdoJuDGy42HDaltyfIeEN619FkHjyvwtpxxljd9ZR4rIMqfq129 c16w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PDZpPu97jSVzBxE7Hhf+cCJnSFO3UBdCPdxtrTFSrjU=; b=sJMi2JLH5tl/nXMZ1smVAPsfzgpR2kpbmuog9z4KYBRiUbwGPU23MjFdMLo0cOhRSS rdoKpHgI1rf6vhS8IrlYBI4F3oLlm+z0qJ6mJHoGYo3AKHPolQUqgFCNXaIwNHrBoqZN 7qHQoxFELvXcqiApXS5J3XInG94TPIhCrpYfp0ApwUmLMofy9jF0/pAlqSiTIWHIURax hahiLOP2tsnYTe8pim7YbVdJyQ1NzMGe/UVXl4ZioISgjQGrOcOkJL9ivZXCsGREIM+u dHK/dNoTlRM9rVpqOotqYKJYFnHKMOutgaHST2UP0A+jaByzDfIW7Cza65EustJYgUqk ijPw== ARC-Authentication-Results: i=1; mx.google.com; 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 c9-20020a170902724900b0019d038765f6si8328255pll.449.2023.05.24.09.41.51; Wed, 24 May 2023 09:42:04 -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; 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 S230218AbjEXQaQ (ORCPT + 99 others); Wed, 24 May 2023 12:30:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230138AbjEXQaO (ORCPT ); Wed, 24 May 2023 12:30:14 -0400 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 492DB123 for ; Wed, 24 May 2023 09:30:12 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 34OGUCX1024803; Wed, 24 May 2023 18:30:12 +0200 Date: Wed, 24 May 2023 18:30:12 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: s390: disable stackprotector in _start Message-ID: References: <20230524-nolibc-stackprotector-s390-v1-1-5044d42230cc@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230524-nolibc-stackprotector-s390-v1-1-5044d42230cc@weissschuh.net> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Wed, May 24, 2023 at 06:27:06PM +0200, Thomas Wei?schuh wrote: > s390 does not support the "global" stack protector mode that is > implemented in nolibc. > > Now that nolibc detects if stack protectors are enabled at runtime it > could happen that a future compiler does indeed use global mode on > and nolibc would compile but segfault at runtime. > > To avoid this hypothetic case and to align s390 with the other > architectures disable stack protectors when compiling _start(). (...) Queued, same branch. Thanks Thomas! Willy