Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3563200rwl; Mon, 27 Mar 2023 16:24:28 -0700 (PDT) X-Google-Smtp-Source: AKy350af8oinDxFXZbrEehVb02HRviaqE5JkWD3jBNr6+JEReZL97WzItytITm2xm0qVbZVnzVxq X-Received: by 2002:a17:90b:38cc:b0:23d:35c9:bf1c with SMTP id nn12-20020a17090b38cc00b0023d35c9bf1cmr14367908pjb.16.1679959467723; Mon, 27 Mar 2023 16:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679959467; cv=none; d=google.com; s=arc-20160816; b=Z1amO9RDSn8uZ1sNQtK9PIPN27xwAvkE6sL+PO8lRUQ/vZ5bBfjxnLcoyFww9lIB1V P69tTqM1E6HaA/WdZN1/vNee+9z95mQoATGlm0vzrOQZujPvBF3rXAT/2U7X4bZ7XK8x nOtv3WVZITMPLYOViL4zzHLTZA/8wDrAqCGoC4yd2OFle9a8TAxdXQ+ILS9pbU6nXRmX 21nEACZqp063w3JOMWl3iqpBrzOLS4PWsAtPJ4asUfhzAW25x7NFyS6PzsAFAMKlCb4F 5C7ahRfXFXTSQOyNc106eB62g2/1Xw82qVp/Qj/DY1DUe7t6f+j9zkRtlcmvF2D8yuHD A4bA== 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:dkim-signature:date; bh=3Da0O/OlHho6DzWt8O105Y18FIGvfcohl9zhppT4oAc=; b=RQat8/Lyx2Wu0e6wb3OuRc8v8FNMtBGJra1gxDroEKmgANEN1h6ObBXBLKbWr044oY jXdAhbYYl6loqShOVHrbfzZLS4xTb9877pVOkyEHWMYbM3QpnHgdvsuUaYGS5cCL7Spw C87ydRsvtSVi9e38EHjqYkkrSEj3qR3U3U62fkDIWEZxMjtzDugpwE7K52YP/GKWWKq8 /RURGvN+8hy7+XeCraAqdJLOfO7vladG6sSTs6A+WdpuBt6AvAryM34ywa0JAsaIHHfF j2YOe+4SuEgERTHomaY4kFVfEMG5GpFs7zSuniA4hSCE0zUgCLh+CyO6ouxfZbCnKEzP +f7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@t-8ch.de header.s=mail header.b=NqISdv9W; 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 b7-20020a656687000000b0050f53ab831esi24227434pgw.126.2023.03.27.16.24.15; Mon, 27 Mar 2023 16:24:27 -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=@t-8ch.de header.s=mail header.b=NqISdv9W; 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 S229746AbjC0XUl (ORCPT + 99 others); Mon, 27 Mar 2023 19:20:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjC0XUk (ORCPT ); Mon, 27 Mar 2023 19:20:40 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24D3F10C7 for ; Mon, 27 Mar 2023 16:20:38 -0700 (PDT) Date: Mon, 27 Mar 2023 23:20:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=t-8ch.de; s=mail; t=1679959236; bh=f4e/OifbcQV0HsbF8hMvYQskOA8IU+ZGcXKSDlxGYUI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NqISdv9WXxIvrL29jG6/f2iWqZW3floCJTAOmhWiw2I4wzukAc6UxtXG2gYj7mzeY /M6Mld2+SMdTYDgOsEoNs49+xUYdp7CEQy+pmW1r6tIVQ8QSt9MEsBalgnzbTmFeHv KoBALj7GohayaSwAaMX81LA/Nu+Ua6rGWP7XfkN4= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Willy Tarreau Cc: Alexey Dobriyan , "Paul E. McKenney" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 6/8] tools/nolibc: tests: add test for -fstack-protector Message-ID: <162bc469-1654-4636-bf22-e929170ff092@t-8ch.de> 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.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 2023-03-27 17:54:11+0200, Willy Tarreau wrote: > On Mon, Mar 27, 2023 at 06:32:51PM +0300, Alexey Dobriyan wrote: > > On Sun, Mar 26, 2023 at 09:42:29PM +0200, Willy Tarreau wrote: > > > 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. > > > > For the record, I disagree. Use volatile writes at least. > > Yeah I agree on the volatile one. Sounds good. How do we proceed? Do I send a new revision? Will you fix up the series? Will someone create a new patch? If so who? Thomas