Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3850569rwl; Mon, 27 Mar 2023 22:01:41 -0700 (PDT) X-Google-Smtp-Source: AKy350aiAsvarvMPJD7IxxYxuDlrndTPgbvXoS5DTQA2MKXMtx3KktHha6h4F2fJ4Aw9VK6kG7C6 X-Received: by 2002:aa7:d313:0:b0:4f9:e6f1:5c7c with SMTP id p19-20020aa7d313000000b004f9e6f15c7cmr14813756edq.32.1679979701477; Mon, 27 Mar 2023 22:01:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679979701; cv=none; d=google.com; s=arc-20160816; b=AItkvJZo3xQ+wOfyHYq1NVm0RwmqQCQZsN62jE50pC6aZqnIMETW975VAjue/+DGRz eaeijGDPwi/EuGxgYVfDffj8x2hY8RDA3LX/gYD1ULBWgYC1WIAwFJZv30P3i3RZvMFg 9Z14g/YvgkVWK9QFI+xwfWrpHf7GoumtgeGi1LPc52jE21/LIm2zbtoseK4J4VpUoump hKIk2ncCTnWe/MRLqOapWExB1fOKYk9NE9scuGOlgxJAaKkKWAS6UFUyf/26BeMcUaGE fKPziLkSJ5ECH9BA4jkKodqsTc1e2CbZw4rYqVQ/K3RxsIJdW1R65Y7TVqHfoaDHoFnr 7qjA== 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=30niXRU8iDzJ6AY0wCVDrbKqmTme/5m5QC02T0E8KFU=; b=FsaXKqFY6WjGd+uUBoKwbcHiprIYn1yKjqX65Uuvp5O56ivABL6Qdl5SU6XL3PQCbK LycFRoG/E84rXeqB980Oia9kbM85JzEk49RtQvRddt0BAzKWlsNphQlQYd85FImxkChI JrnkHJZp7LAAnNPX8z5/1Nfc96l+5HhJ+OPX9tVJzxQQlqfTEoBlXJL4L4XUx1UtHdNi RxcH4Kg7h1/6zNTykGfmoRIR18BUaq2zIlEWA4WKhYGIE69NA62kV5lAQpnYOyoKKtNb k5/wMByZ8R8zqt15zvye0W/opq90cYpQB6NLp0skovI7SqQF3NTyGKJuG9BIainX4Rq3 XIZQ== 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 o10-20020a056402038a00b004aac683bad9si31513071edv.379.2023.03.27.22.01.16; Mon, 27 Mar 2023 22:01:41 -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 S231960AbjC1E7T (ORCPT + 99 others); Tue, 28 Mar 2023 00:59:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229611AbjC1E7S (ORCPT ); Tue, 28 Mar 2023 00:59:18 -0400 Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21EC02121 for ; Mon, 27 Mar 2023 21:59:15 -0700 (PDT) Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 32S4x8Z6026649; Tue, 28 Mar 2023 06:59:08 +0200 Date: Tue, 28 Mar 2023 06:59:08 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= 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: References: <89a960c7-0c9b-43ab-9fc8-a68405f7ed6a@p183> <8e156377-e7d9-48ec-a7ee-292aba002201@t-8ch.de> <162bc469-1654-4636-bf22-e929170ff092@t-8ch.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <162bc469-1654-4636-bf22-e929170ff092@t-8ch.de> 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 Hi Thomas, On Mon, Mar 27, 2023 at 11:20:32PM +0000, Thomas Wei?schuh wrote: > 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? Please just send an additional patch to be applied on top of the existing series that turns this to volatile, and add a Reported-by: with Alexey's e-mail. You may even verify that once you do this it's safe to remove the optimize attributes. Thank you! Willy