Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp150790rwl; Thu, 6 Apr 2023 16:27:42 -0700 (PDT) X-Google-Smtp-Source: AKy350ZnnSk4Aw4YxP5OhgXyT66kubK0K8YRn3Jf3hxxJglgDVAjrvRSMFy0XczWGar4C1ZGuS2X X-Received: by 2002:a17:906:2502:b0:931:8e8c:2db5 with SMTP id i2-20020a170906250200b009318e8c2db5mr388182ejb.69.1680823662161; Thu, 06 Apr 2023 16:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680823662; cv=none; d=google.com; s=arc-20160816; b=LGkKkpF5cTJBdhFAHig+76z1492FNTnVQUwYG6X3Ogdr0hwBNZ//S0fPwYNwbtOU8d /1jN9ssGcgpE1AVPKjAwL2u7DEUZxqixoTscVmZtPIsWucWVTxhHySTIpbEUXUj7meoK 7iOWVMQ8c8zKlJazwVQs0tW+3FJvYqwWHLOjVW8y4FRRMl57LPp3GqAm2AQWe+taEG3/ 4PZ3pYD4QO/Kfl8ccrbgz6tilo2uzB6aIuPjcFwDqfH3kndgrGyynZkmlpLGFQ+jqOYX dOJhKMn22ig7ghtjoezmfNGcvyYL6saeDiGtTnZrMqRoFZby8zcI+l7ryudWtuN8WJEV p5zw== 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=CGbq12cvGFhwzHD8RaS0k1IPBdh5/8SAgXm63YvkWfc=; b=EOTvK3k+Ii3DQ+1nXMDgHekxYi7l3/tuZsFUFHxZ6Zmt8kkz9m8/cdvFYIuQtwYgnN AGDFZ/4DildhxxGze+CE3dYPqwfNwwvxEfs0thabtmA9u619GVDjs99EQY6QkslCEIMA bnm0wbCJJDPppqlrQclJGWvWqvTtQpB1L3gJzAz4PlreGuApcWO7rNa7Gvv82Z9IgMwe lAeaF6CfNCul+Q5HzUdGYNMiVT1D6ngWNN52VvjqosXgWkM1O1LsLxBLUK0+IssT96+o 12R8HfOhi9z8JFxWsqV47qoJNwXEr/NY7YTPvJTw/h1L4CD5zuPw+t0H67hr6mw7sAGo g41g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=S5nGz8yS; 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 h18-20020a170906591200b0093e2a9e4badsi2213539ejq.565.2023.04.06.16.27.17; Thu, 06 Apr 2023 16:27:42 -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=S5nGz8yS; 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 S239243AbjDFWwc (ORCPT + 99 others); Thu, 6 Apr 2023 18:52:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236907AbjDFWwb (ORCPT ); Thu, 6 Apr 2023 18:52:31 -0400 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8042A30D4; Thu, 6 Apr 2023 15:52:30 -0700 (PDT) Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-54c0c86a436so67009407b3.6; Thu, 06 Apr 2023 15:52:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680821549; x=1683413549; 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=CGbq12cvGFhwzHD8RaS0k1IPBdh5/8SAgXm63YvkWfc=; b=S5nGz8ySThzYiDZxVI3+tNW7F4+ruAydf1N8VW9E8Ik/Dt5eWMvxromtCxM/Hp0ZUh 21VOyOa8vhfyzkyoUcxrTJT0j+LhpKq2psGUdlCQ4uPCiUab4YcQH+mE3/NI/IJ2iG9I bBWs8sroNbnSwhzqvHTVzQCQa8N9e/ruB4g0hj5D+poZZx7On6O4+WaF54eB1DY8jLu5 Qn18rF6zUVgb+ctT3qlJPbKFH0eXOrjQ5SpRaAnF4ewOcodilrESQDzJ63pQ9yzzcJEx waTlYN9OZ3h1BKMnQtmFvvnpX3Ux4acdGcOxBNo98Ulg6F7+5D0Xd81b/ZeEPJLpanky SNrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680821549; x=1683413549; 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=CGbq12cvGFhwzHD8RaS0k1IPBdh5/8SAgXm63YvkWfc=; b=Io4bArsfcl6HujLUUOz8YSeNXaMB/qV2e6khwFdC7I5zm4HXWTDPrbiARkIPlrdjlx v2S/TgvmHo0/kds84ONnbKmlQO85SeHoi4FaemvsWy5/fuouYF05dckzJLYOfsz9L4gK SxFHjwkQKzZSpSNBuRWkaRmK69lZM87YTzJV/2H0Jq8h67rL3RYI6Tm/OWTma1cwm7nc XfZx0/VOLuwoJTmE1lCjnxoe3Hd5UDVIKjbdsZJCPx6OT4JpYKAPAQg6Dl4dQPSMZE1R ov6KLj6aF+Hdwx58ESruq4+EeuBLlbfgIDpkxQdfJ9doxV4J89CQgRJHbM9HoaVCyMyc tznA== X-Gm-Message-State: AAQBX9d027i2Nw3pP94vJo3uX47xmw/DWdFHSqJfAMbscf+La7orsWxe emSwFg1vfEiDvFZIV1NxtfJPtndE96h72aPT8/M= X-Received: by 2002:a81:c509:0:b0:54c:2889:7105 with SMTP id k9-20020a81c509000000b0054c28897105mr7089ywi.0.1680821549455; Thu, 06 Apr 2023 15:52:29 -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: Fri, 7 Apr 2023 00:52:18 +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 Sat, Feb 11, 2023 at 3:35=E2=80=AFPM 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/1921ea54ab0d91d7a660c5bb980f= ce1efc9223f9 Thanks! Cheers, Miguel