Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1967624rwl; Sun, 26 Mar 2023 12:52:01 -0700 (PDT) X-Google-Smtp-Source: AKy350bQqhFG6ZksE8jOB320cB9vcfScu29dpJbIiTghLTuNDk/m6Fui6JO50IM3L4RmHU2IzEot X-Received: by 2002:a17:902:f983:b0:1a0:50bd:31aa with SMTP id ky3-20020a170902f98300b001a050bd31aamr8323287plb.66.1679860321216; Sun, 26 Mar 2023 12:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679860321; cv=none; d=google.com; s=arc-20160816; b=j26bzVF2Dgg1UCTzjeXlPobr74HIqGfZGartJQSkKcsW7xtlYhndBKgHDmuAcqMfR3 YyhGd4mrLUdjPrDpVh1GYFJd1nNWPnJijcp6oPYwvVXKitck9qvp7y4dB9xC+KOBAhLy nZtdmlVVo43RgmoOy0Hxd05nWBt1UHAp3p26W8mUz34zl5Gxew6s4WGNt3Q6lI41lSN2 meaWY6ieToV7w7icTbKIRgl0+980JTl1rOWJkAPPuZsUjEyVt8HcS7daI2v4j1us50z2 8XMEChXMo34NM8iEV9L1TATRYjvkiPGpECXU4JV14v6Ay2TdrbEusLARVBuXcpIH9UjF 5Rbg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=IqocrATy7kvv8Wo6PW19KPDD8x64CM2FCJjDVHCsCC4=; b=bLQjnqD1LafMH0VAAEYQhU5F+z0ieflLTtcckyu8eFWHfz8EH8SsRGAmfWMie8+d5M x7rrQQ6gdS7YS6gjchMD3gDJcnZDAfgfA/3/q5ZZTUXg93mNsxEoJmVh5PQnH00utpb8 3traaMHN4nngrFGHbOgXEBC+h3UE0E4CvE4G3ZbNSbFuPsOPcufQ4vCR3cf7BChas2Hn 7h8Co1YsI6QSJ6I7j+UruBJN5ylZqsHV/ALYNTSgc1zCjPjcmjPWyeX3qOzAGFAozG13 BCdBMiXF8QqYJUv/W6TnHDtWZmJRS7d5exWK3spVWXUEpnVLoxydE1s3FOuIQ8P7JPtu OnQQ== 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 l6-20020a170902f68600b001a1c005bd52si21241703plg.34.2023.03.26.12.51.46; Sun, 26 Mar 2023 12:52:01 -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 S229715AbjCZTml (ORCPT + 99 others); Sun, 26 Mar 2023 15:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjCZTmk (ORCPT ); Sun, 26 Mar 2023 15:42:40 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B3CD04696 for ; Sun, 26 Mar 2023 12:42:39 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 32QJgTBI011688; Sun, 26 Mar 2023 21:42:29 +0200 Date: Sun, 26 Mar 2023 21:42:29 +0200 From: Willy Tarreau To: Alexey Dobriyan Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/8] tools/nolibc: tests: add test for -fstack-protector Message-ID: References: <89a960c7-0c9b-43ab-9fc8-a68405f7ed6a@p183> <8e156377-e7d9-48ec-a7ee-292aba002201@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 Sun, Mar 26, 2023 at 10:38:39PM +0300, Alexey Dobriyan wrote: > > I'm not seeing any issue with your approach instead, let's > > keep it as-is for now (also it does what the stack protector is supposed > > to catch anyway). > > There are no guarantess about stack layout and dead writes. > The test doesn't corrupt stack reliably, just 99.99% reliably. Sure but it's for a regtest which can easily be adjusted and its posrtability and ease of maintenance outweights its reliability, especially when in practice what the code does is what we want to test for. And if an extra zero needs to be added to the loop, it can be at a lower cost than maintaining arch-specific asm code. Willy