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 C7A7CC7EE2E for ; Wed, 24 May 2023 16:30:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232009AbjEXQaR (ORCPT ); Wed, 24 May 2023 12:30:17 -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> 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