Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp443997rwl; Thu, 6 Apr 2023 23:07:28 -0700 (PDT) X-Google-Smtp-Source: AKy350YL9HuB3SOw98D7EtjqzlhP+mS/jL3EMYb25svmMubyyW6JnABO6P/r1nHglSO6+2hvwJd4 X-Received: by 2002:a05:6a20:8b0a:b0:d9:4c19:fe69 with SMTP id l10-20020a056a208b0a00b000d94c19fe69mr1044509pzh.25.1680847647992; Thu, 06 Apr 2023 23:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680847647; cv=none; d=google.com; s=arc-20160816; b=j9xqPugMAmxGHD44+I6M61CKj+VRBrmzbbFManPCXaNS6wCwttHIVrp6f/9L6HHFfo V3I8GvxQ8D9yj7zsEqO4ChsSyYQnYDA+m5xiPDpaUfrbKAKRB2C8sdy9oSndpBxApSDc LwBTI6yjMaVs04woGSC4iejGcl447gG9xMUTASrKpy7dcrmFtZXtsPteBlCzkOe07gCh AqnoOEDjPimH+7aOLRk0EATf948AIaKZHsDYAae4P3rFpXSMPEfiCqxp/gDDXVZsS3cE yp2CN1PWagHQF4Ayqm+bn/rmJfrr+mUeejiaMiEMoiMkOKPZPl2zuLtPrOrKW8w4YH6f vCyQ== 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:dkim-signature; bh=zft3hVuwccqOkIe+/jXqzbhmeCB7evQzBPJj2Wk1H3M=; b=YZ+S2aYC5Qn8aB8RpDB7D9nJcxXmdRBNgdtaYOAiYaP1WMDEJv/YibAMsFyeEKQTOi YsmvVij3mpgK7J2Rwc3zTfHNZIOYLbGzROWYxpFEmIBKScgo778sXHkZBvalIF3W2kdR xa7fz4efjVO6oB8PzrmUTeIjprWwhux4Bsv0xmTAlcWToQpk1gJkQKrGf84KVcg8R1yM fkuNEj747GCcTin64+ZP/TOCDFep5oDxqAtG6PXzVqkdy94YefrOd+mQMJNyFJ323t7l sUN4XUxJO7U8rkx7W2tzrk+5YJVQLchj5tGYboHWrW4SqkTIF0O1gmoJv/DRnnljmJjB /GFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=gS16hkVG; 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=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a5-20020aa79705000000b00628030da823si2904015pfg.318.2023.04.06.23.07.14; Thu, 06 Apr 2023 23:07: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=@canonical.com header.s=20210705 header.b=gS16hkVG; 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=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjDGGCf (ORCPT + 99 others); Fri, 7 Apr 2023 02:02:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229783AbjDGGCd (ORCPT ); Fri, 7 Apr 2023 02:02:33 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F4640E0 for ; Thu, 6 Apr 2023 23:02:31 -0700 (PDT) Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 2C19C3F244 for ; Fri, 7 Apr 2023 06:02:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1680847349; bh=zft3hVuwccqOkIe+/jXqzbhmeCB7evQzBPJj2Wk1H3M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=gS16hkVG5dO458cwTtzME3atj2rvaCDCP1FCz+Jafc/0+rbq126vr/JiQ2AsPBdcA a5JIWFR1Vhd5SD1x2irJkBswY+UQL29cbwmH8SE4ZKSCx8X6H1/KVg1+ITYe5Es6B2 I4oggT3cK5Kyv3Yq8q9yGDrIpr9qrqTF750+/dXMvVR981tuH2V59y7f8ay0BQmbUv MCat5yicqLNGDsyH911X5vCGxh60mFK7rPV8/FEsbW5WPzb01iRYgiGxOO57Hm7o1P HYKKxo91b+GIISfCU/VK8emxPmgEiyO/Sq1DY5DffB3N6goZ3rG7sd5OzhsPLh14Rs 7nas1rLhfruYA== Received: by mail-ej1-f70.google.com with SMTP id fy17-20020a1709069f1100b00948fd62a55cso1148932ejc.0 for ; Thu, 06 Apr 2023 23:02:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680847348; x=1683439348; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zft3hVuwccqOkIe+/jXqzbhmeCB7evQzBPJj2Wk1H3M=; b=HRWeYy6gpLV0bJTPYKS7w9D1ULJN9a9MSQbgVxpLm0wDzL+m1tKuzr90hUiLBSGPTt 3XtUXwSc95ZJC9K8dkdxXd3RfeUhsqFp1i9XaUqnQZnmSemAyzfmUA/oM+gyAGgPtmcG sIG4oT+G5h2fZ76zCwxlH0C2jHBoijTh+bTV/u753xRdemXACzUuylQf9bk3ePHPFI4I W7GM5EmyKNBhnsOTCQQZbhFj9NiI0MRyQJnM8XgIh0D0mHMGU7P0ShSTzkDBTh82YpfN saaboPi2GNibWVBHKFxm5uSQQ2okkKchUvlTPi0CSYbLnmLg7uWjEnVRyCR9kUbJ4yfa NUFg== X-Gm-Message-State: AAQBX9csm/efV+1Y/rCI0bX7M7iFYE2bQo2j2EJBpk7zsdo40TcdB1zX rhJUHhRYe5qImntx3R+Usgs6qRObJEuUgJIHfWjWjgZaLeIwM0XtpL1PBc7gDmZMnfWMmvhsytO YaLVyPlPPe5IOJxcGhe9CwuSIp8Qr4cddi6NhH+hEIV16LpXOEQaN X-Received: by 2002:a17:906:5fc4:b0:931:6f5b:d284 with SMTP id k4-20020a1709065fc400b009316f5bd284mr1250719ejv.57.1680847347842; Thu, 06 Apr 2023 23:02:27 -0700 (PDT) X-Received: by 2002:a17:906:5fc4:b0:931:6f5b:d284 with SMTP id k4-20020a1709065fc400b009316f5bd284mr1250697ejv.57.1680847347521; Thu, 06 Apr 2023 23:02:27 -0700 (PDT) Received: from localhost (host-79-33-132-140.retail.telecomitalia.it. [79.33.132.140]) by smtp.gmail.com with ESMTPSA id mb14-20020a170906eb0e00b00947a749fc3esm1677028ejb.33.2023.04.06.23.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Apr 2023 23:02:27 -0700 (PDT) Date: Fri, 7 Apr 2023 08:02:26 +0200 From: Andrea Righi To: Miguel Ojeda 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 Subject: Re: [PATCH v2] rust: allow to use INIT_STACK_ALL_ZERO Message-ID: References: <20230210215141.108958-1-andrea.righi@canonical.com> <8178319F-4188-4F8E-AD8D-DCC392E26DBF@kernel.org> <4E6FDE1C-47B6-46A6-AF31-28AEB2348344@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Fri, Apr 07, 2023 at 12:52:18AM +0200, Miguel Ojeda wrote: > On Sat, Feb 11, 2023 at 3:35 PM Andrea Righi wrote: > > > > oic, with clang-16 we get a deprecated warning (but it doesn't fail), > > then starting with clang-17 the -enable.. flag is not available anymore. > > Wait, Kees' link says it is deprecated in Clang 16, and the removal > will happen in 18. > > > Then I agree that a better check would be version < 16, instead of < 17. > > Applied to `rust-fixes` with that changed. Please take a look if it is > what you expected (both content and commit message): > https://github.com/Rust-for-Linux/linux/commit/1921ea54ab0d91d7a660c5bb980fce1efc9223f9 The check (< 16) looks correct and the comment also looks correct to me, this option will be removed in clang 18, as mentioned here: https://github.com/llvm/llvm-project/blob/llvmorg-16.0.0-rc2/clang/docs/ReleaseNotes.rst#deprecated-compiler-flags (Maybe we could add also this link as a reference) Thanks! -Andrea