Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5349104rwl; Tue, 11 Apr 2023 04:18:28 -0700 (PDT) X-Google-Smtp-Source: AKy350btqs71RVeunxP1vlIFlhqDDNrOaQl0/J4clkDd0a+pdxbZQaNiMTbBZvKppl6QuPmiF4yx X-Received: by 2002:a17:906:33ca:b0:94a:5d16:a280 with SMTP id w10-20020a17090633ca00b0094a5d16a280mr8464873eja.9.1681211908456; Tue, 11 Apr 2023 04:18:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681211908; cv=none; d=google.com; s=arc-20160816; b=JVziOWgDrxd7E/SXqPfBNpBbEd+1pudFQoSjod8h0Wf1Q6nyvvvK8GYWfyj+f3RYsb 5LheWQTgD3D0s4yYYyFKQxMhyDnTNfobFSUoFi3Xk75PEllOcaBkdQEsvQ5Mlz94JWL9 b18hX3hQW83ffLHY5PLn7T+ZdbpmdvUUAylI43AXW7pG0adSSnuQGadbYjVq+CuybTwz DDMesSSFi8jw2Huqgeys7HgIRK+nXmr+4EHXO4ugpauENkmYgRTwOAYtYp6XRq0t7bUA qt9Utn0X7/c7Nud0lqLpHBNW7ONj2IjVbKhdSwDLHuehCnrtmgFtUVErBYQAOHEqcI82 CEWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=fd3u6ypnNuoPbKSx66oxDBYsbBNUgXKJyWsz/Cc9XCs=; b=Wn5om0B0XPPFUxwyg+HPsba2AgBPwq1dvAO1sr64sQWL5OB93AoksJnd2nR/WWipP+ oFBYPNwLHHHqEACE8UCROsdFM06zfAZgslAahD8qyHRN1XwP6jOQaljdUuSF7rUXvL0k DKRO2gPhvsHR0ZAB768y7wyPAZmmbIXDnbBHlfwYA4ssPQ9C79D04xFXjl84WbE5E1kH Lwon45XVDRjd/e3y7RRn7bjiUq3tY9WkEXkUKx2i2xx2WlCaLVuRS15Y/jVAp47fT5rM 73YFQIGFl4f3sT/CNRwNpjx8+yfQaoxcJ8SKjrmndDqrUzZBxgZ/6dSfTWZNmwmECIJF YsJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hGLRl87J; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc34-20020a1709078a2200b008d17b125784si15568066ejc.30.2023.04.11.04.18.03; Tue, 11 Apr 2023 04:18:28 -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=@gmail.com header.s=20210112 header.b=hGLRl87J; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230010AbjDKLRh (ORCPT + 99 others); Tue, 11 Apr 2023 07:17:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229931AbjDKLRe (ORCPT ); Tue, 11 Apr 2023 07:17:34 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9D86421E; Tue, 11 Apr 2023 04:17:31 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id ch3so8741391ybb.4; Tue, 11 Apr 2023 04:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1681211851; x=1683803851; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fd3u6ypnNuoPbKSx66oxDBYsbBNUgXKJyWsz/Cc9XCs=; b=hGLRl87JLi5CMoqAmhzXcPMA0V/AQ6lxdgw6dDTpjaCTjlEd39kmQ77M7zJc0LcHfx DJOLQaK7n1O+kDx0oVukcENjRTOr8mXUGAMQsm8R8CGWXPJlb4g9ZCKeLPeJkEL5NG6x h0rmyo+fq6N9WXMJaj5x/06twGYEvWz5UaxuSmbfCQ9aPsHlu3DIpOWJlLSPV0a8bAG2 fgZLFNI+MLdVfyjVSin3XhDHbGNGrYEUSVeN7+ik/jcpAf6tepTPFY3JWMb+uRs2ry00 xFLV4MGILZ+fDv9WOstqZ2BSVQh1sbid+Ouocqt/S/symCGAlQyFYahgWR+AcXpI3Y6W mW1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681211851; x=1683803851; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fd3u6ypnNuoPbKSx66oxDBYsbBNUgXKJyWsz/Cc9XCs=; b=K2Gw2hy3mYLaRk/V2HQchB/zXc2G1W4bEJaSt61aZDuA4esEiUhD92ITpElMTisk1R 1gNdip0nxjOO62iPctNziDf9qOvSKVMQxkCMoUGHQ9mcadaubcwGcE0et9JTMimAR7xf 0OgI2upzJES11iEHO3P8SzM8hJpFT7NXD3Gcqsvn2ZWjQWHnTqrvqJ087x34xfXjjSW1 kbZOg5+AG7koaNx437/mOIXhNWyWYaZQAVySeHn8gL77+WQl1Rcf4uFtCHiWXaae1xlE XgG5k9wfBIIMNVdQuTNFMYMPBSzU4FTiCKXE/PKdzqK/kQit7O2KNSyoWJeAknSWIVSe A3ig== X-Gm-Message-State: AAQBX9c9q5uQmehPTeyVuPx9TZRxCGwWBtWUM4wY63xftzulkjSVqe+c RxrhJAva3e/GJEbGDIpUTgcDIQ6SYkb4hXoHql4= X-Received: by 2002:a25:7781:0:b0:b8e:cad0:6e57 with SMTP id s123-20020a257781000000b00b8ecad06e57mr5445631ybc.11.1681211850832; Tue, 11 Apr 2023 04:17:30 -0700 (PDT) MIME-Version: 1.0 References: <20230210215141.108958-1-andrea.righi@canonical.com> <8178319F-4188-4F8E-AD8D-DCC392E26DBF@kernel.org> <4E6FDE1C-47B6-46A6-AF31-28AEB2348344@kernel.org> In-Reply-To: From: Miguel Ojeda Date: Tue, 11 Apr 2023 13:17:19 +0200 Message-ID: Subject: Re: [PATCH v2] rust: allow to use INIT_STACK_ALL_ZERO To: Andrea Righi Cc: Kees Cook , Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Boqun Feng , Gary Guo , bjorn3_gh@protonmail.com, Kees Cook , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, 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 Tue, Apr 11, 2023 at 9:11=E2=80=AFAM Andrea Righi wrote: > > Yes, that looks more clear, the name of the option is a bit misleading. := ) > > To be clear what is going to be removed is > -enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang, > in this way clang will be compatible with gcc and they can both use > -ftrivial-auto-var-init=3Dzero. Exactly, i.e. `-enable` is the one getting removed, but the wording within it (`knowing-it-will-be-removed-from-clang`) meant that the `-ftrivial...=3Dzero` one was the one that would be removed, not `-enable` itself (even if now what will happen is the opposite than what the option suggested originally). So when I read the commit message, the "this additional option ... is going to be removed in the future (as the name of the option suggests)" sounded wrong, since the name did not suggest that, but rather that `-ftrivial...=3Dzero` would be removed, not itself (since that was the original plan). If I understood the story properly, that is. :) Thanks for taking a look! Cheers, Miguel