Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp803060rdb; Wed, 1 Nov 2023 03:21:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGj0DMZqASPqL9tPQwTBost1Rw4xnVrfdboLlLHuZZTifmNvtRn0f12f6Vp/xuHsiIuKykJ X-Received: by 2002:a17:902:d552:b0:1cc:50ea:d5db with SMTP id z18-20020a170902d55200b001cc50ead5dbmr8871909plf.4.1698834105363; Wed, 01 Nov 2023 03:21:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698834105; cv=none; d=google.com; s=arc-20160816; b=sLCK76ZJ/7VTjlbgnjkJ9sgwFYqhkB1dcs+GoEJjwPoqbZy/HAlWCUr+Xh3yfT0mgn o2wmVQ1LBTei3ORB2O5px3OeFm+T7AYyoApvsPGhdvbqPpv3BPu6OLerUaRdJ6RqiiAR 14nDB58jPw/WF+M5SNsGeRQsKcLXsXhlst6rgcajmaQV+dC5MLHYJ9SyTOBVxqu84A7A 5QTykNDW48uGOBlHyAjSTW16/iWpFgztK3srKJWg4zHmOiNAfvVsBqZUG7wHA2hVtzXB D6CSSl1NThYf6kXhJFo8Q395o6UPpd1/iClSIZCeHiKv83mb9F6EeLSMOp9cjndk/Iel el3A== 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=Oz6VSHMner62jDzigXvDmGikA8eTXSz2/q7goADHTxs=; fh=7TzdaNNIarizlEoyqTjsNKdaxz8ofUkkRpk0xj0N01k=; b=GRhyxHRidzSaMyUryoZdlOdr9lSMjO/jCNr35oc1UxvkZeroqTxGGCimCN4VfF8EwM Cdkaq4/dANpzBc4EdPQdsxJfJHfHWfYZOH/chHDm6ipvehV7ZcKquoiKlJ3u3KmbSsTP pIfhjqFSd+/VBEYyWT+ckPcbCGWKepyeWoQr82+stM5MxQoT2pb2YGKVluCxFXwmdqjZ LE6xAAke49ZmbNOtqV4NAyPtPa6eLgPLqZk+hbkE33k5IwcCJe/gwld7zKXrRn9WFxy3 +HqhE25GYlwasbwi3gpOCmb7UZt66kRoMTgeyOhstqZm2EVU5rdr8nkSiaCe7lBCuTSz W17g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n4wuCNA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id jb19-20020a170903259300b001c5fb45613dsi2538070plb.318.2023.11.01.03.21.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:21:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=n4wuCNA3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 789FB80898F0; Wed, 1 Nov 2023 03:20:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233631AbjKAKUi (ORCPT + 99 others); Wed, 1 Nov 2023 06:20:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231719AbjKAKUg (ORCPT ); Wed, 1 Nov 2023 06:20:36 -0400 Received: from mail-ua1-x930.google.com (mail-ua1-x930.google.com [IPv6:2607:f8b0:4864:20::930]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BE84E8 for ; Wed, 1 Nov 2023 03:20:34 -0700 (PDT) Received: by mail-ua1-x930.google.com with SMTP id a1e0cc1a2514c-7b9ba0c07f9so2038851241.3 for ; Wed, 01 Nov 2023 03:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698834033; x=1699438833; darn=vger.kernel.org; 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=Oz6VSHMner62jDzigXvDmGikA8eTXSz2/q7goADHTxs=; b=n4wuCNA3a+iOpCV0KjLF6K24a4NscTfTlnZ4iGuEV8HiVLWk7xMuZD1wrr+Uh4WpKz JCEyaQ+7YxXQhOslBnf84hrYVTg7TsmEqNvCcFnAJpvNiAgwJ0jAjKaZwJwC18WruWvE 5prI6t+Yr2YnAsFUjk90NN4WLG7fb9jB1d/6Vps8/3SF/qv3XGThYmr2GXDzNpyIWD0q lU83sZLYbbqnPwQl/r6vQQkceePSyJJ1Yyd8GeCb3R27AsAj0DkosyM7G1pCg3p3e0Og Msdttte5m+ReBW/AzcoNG/B2oH/953S4i4DTTe7wpE3MJuU4K/WBjsat9s3rngaweJOJ i3UA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698834033; x=1699438833; 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=Oz6VSHMner62jDzigXvDmGikA8eTXSz2/q7goADHTxs=; b=anOl6Uy3E1GYCQTE/LVnw0XYI8uZX7a7zfqWsMhg5fm1g2ad9L0WA5HeUUJc/z2jsN hCc5dAe4UJl5foP6T9vrc8sEqmgMJ7q9SW8Asu4KqpIltdj8c75Ysq1Q6hG6DHq6JhRH zM1JrfLajumoCsiliRorSnvJAxIRc3WXBnfD12/Gz9Y/H4LmMhdo0uEwyExMk1hNobj8 jVKcQb3qrIDKPCsEpavVRWhKplnEt1A8UntMZimAmE+F9NIxXYm8Et/hajRjP3chQbDy DGSf88hw1bGwy+iy+JULTlhXvW6tON/nneIHW3j6M7reD2SLiaA3lAGoYvZ2mp1BxP3S VUGA== X-Gm-Message-State: AOJu0YxOowQP2ohoF60Ho1/OO2IfyRwVE1QEO0J7+01HGUfuNID9j9Ed FKo5HNesGSXu51+LuoqqXnbKRyeVQRGUoVPsOe/JIG294qChnhOi0i2gaA== X-Received: by 2002:a67:c38f:0:b0:452:4e56:5e19 with SMTP id s15-20020a67c38f000000b004524e565e19mr9811075vsj.13.1698834033149; Wed, 01 Nov 2023 03:20:33 -0700 (PDT) MIME-Version: 1.0 References: <20231031201945.1412345-1-mmaurer@google.com> In-Reply-To: <20231031201945.1412345-1-mmaurer@google.com> From: Alice Ryhl Date: Wed, 1 Nov 2023 11:20:22 +0100 Message-ID: Subject: Re: [PATCH] rust: Ignore preserve-most functions To: Matthew Maurer Cc: Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho , Nathan Chancellor , Nick Desaulniers , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Tom Rix , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 01 Nov 2023 03:20:50 -0700 (PDT) On Tue, Oct 31, 2023 at 9:20=E2=80=AFPM Matthew Maurer = wrote: > > Neither bindgen nor Rust know about the preserve-most calling > convention, and Clang describes it as unstable. Since we aren't using > functions with this calling convention from Rust, blocklist them. > > These functions are only added to the build when list hardening is > enabled, which is likely why others didn't notice this yet. > > Signed-off-by: Matthew Maurer Reviewed-by: Alice Ryhl