Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4058227rdb; Mon, 11 Dec 2023 07:47:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IErOAbvaay08tmht0Yp156M/IOtNDQ4d0bpVyZ8szCXH9VpO85n6Ko2DlZCaHGsNnxYs5jS X-Received: by 2002:a17:903:1105:b0:1d0:bcb2:b90f with SMTP id n5-20020a170903110500b001d0bcb2b90fmr2591264plh.83.1702309634032; Mon, 11 Dec 2023 07:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702309634; cv=none; d=google.com; s=arc-20160816; b=zvGMgM4iyMDTk5WdGtbAaN0LAzHGO6kdukBdUIL5N4gm2W8I6KRGYVlKB/VWo2dF6F HHkaJ6xDG2KXlZlJ9YXkbGjzlnrRuG1BLmPIxc2J2h68zfC4E4dFnnvFqXPsOjH3+DI4 nKKixqPFMYfU0zGYqGzUhXXA/dc2TIAY5FzdWUVL2KS2fo6pYxHQOQ6GoawY6jt98AJq 1GFxN1k7CR9Yp70AeIL3gZ1OOVIVwwVfTwHV2gkgrp/fFHIl2roD7ukj5NhPVMFPC/65 LY4Q5NaYGu+WXbg4hUZPYqLXM3FvehMarFWGVHCN0+dKA8mx07m+5i067FXtF0YJ4dCo 0Nhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=t7YSA8qppIroeXtav0r61MJOOSYSTCPfxCWfFNYG/XU=; fh=wny1+EUmZigprC6Q8neCXqTXs+dGjyjIQxoQPWWApMk=; b=sH0OpuVQfq1SoXAMAJZkNgyta77ZoC0uNLwnaOfQPPe+lb1LQS/WA1CtmDqo7SuKvP q5SKqat/kmDq28bSzOTpN6tE5KAqLmTtKaJkEfvK1S4gZ9xU3w73AEsPFKqJu4kxi8bv CFYMzSPUAYsKCg2/+g4k9qWDnrZhfDwvqA+W/uG7Rhf6fy0WFEXVTiTZ9FHzX6cJGKhk 8NJIQTmkU7nkGBfVzmE5incCa1QTCZy/GVWLzzPUdOETA1lHY4WrbLV/n/muyQGjP9eH zJhE3mQPNs89wLSuIv8FhLGPKleDI2oExBTIMd4CymjJN1HKmEe6hiSgjXVQQkpxHImw i5rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iUAcdcXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id h9-20020a170902b94900b001cff62f4c75si6319573pls.53.2023.12.11.07.47.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:47:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iUAcdcXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3BD16806BC3D; Mon, 11 Dec 2023 07:47:11 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344158AbjLKPq5 (ORCPT + 99 others); Mon, 11 Dec 2023 10:46:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344112AbjLKPq5 (ORCPT ); Mon, 11 Dec 2023 10:46:57 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30522EB; Mon, 11 Dec 2023 07:47:03 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-1d076ebf79cso26347765ad.1; Mon, 11 Dec 2023 07:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702309622; x=1702914422; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=t7YSA8qppIroeXtav0r61MJOOSYSTCPfxCWfFNYG/XU=; b=iUAcdcXi/iYxMaq2R62WG5akTpwzVPo01anC/0NeV/zHgczwASa7+3rO8gtvKaujH4 gxIG/ydqT34pZUT4DAVChhGQC3TDI1wR4qjKTEj4oPfZNQLRtHYa0Eq0FJGHdbHmfC6b NZqQ+yhhFzGGFUEpDy+/RlnEHxQGRnpSdoZ0saxQ/u7ZxnQiAhpfQfEaZ7cWi8uR6LEa bTSTQl/dVxUFpLVpb3XZC/fOUvyPb2xA9330qZAbJSNHirT42H7aa5BTuAWgH/3ZqLDM IdgJ6HPTIUCIG0sqYwZgxuYgx+YOPQye2+J4xBwZ6HZ03IsNA75ccCUakrZrlJfkJWUZ nkYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702309622; x=1702914422; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t7YSA8qppIroeXtav0r61MJOOSYSTCPfxCWfFNYG/XU=; b=feBNb4FiXSn8QKkYSVhM1+vd/YKY9+PQwCzoqThafs7hjNkz87FwHBCOTLHj2xn68W b2bytps/iGBuggdSyaZr8OoAZDV7Gy2CVIAkpwr+fgiNQhhRVBfrdT6Mw6NOCrym5bQS VGc5OVc6QEFWhMQdWIaM9YCkzeBt3TooinE0DN2HdMyPIiZYXgtB3kQ7h0qbQejhhnty Le8B5FB1SCIvOH/7PoXryNs1J7gk9kppX8n49Qp4CGOeGKms4es6jw1X/DQT1eAl/4ZZ tbtnf3nhRlPLhbmOuuYHylRLLOp0LDkjsNjQHulxfOyVtYKssw7XO8DRQSp909UnYgK9 rzUg== X-Gm-Message-State: AOJu0YxcgILcvoWYt6a1PeSIYeg0EYGhVx2bzlPSzds2C4IGAYM1axe3 xLOiuGmjBEx+Eqa9I1xw4Nk= X-Received: by 2002:a17:903:41ce:b0:1d0:9c03:a7dc with SMTP id u14-20020a17090341ce00b001d09c03a7dcmr2375448ple.100.1702309622493; Mon, 11 Dec 2023 07:47:02 -0800 (PST) Received: from [192.168.54.90] (static.220.238.itcsa.net. [190.15.220.238]) by smtp.gmail.com with ESMTPSA id t23-20020a1709028c9700b001cff9cd5129sm6763877plo.298.2023.12.11.07.46.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Dec 2023 07:47:02 -0800 (PST) Message-ID: Date: Mon, 11 Dec 2023 12:46:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] x86/Kconfig: rust: Patchable function Rust compat Content-Language: en-US To: Matthew Maurer , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, Miguel Ojeda , Alex Gaynor , Wedson Almeida Filho Cc: "H. Peter Anvin" , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org References: <20231211150753.293883-1-mmaurer@google.com> From: Martin Rodriguez Reboredo In-Reply-To: <20231211150753.293883-1-mmaurer@google.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Mon, 11 Dec 2023 07:47:11 -0800 (PST) On 12/11/23 12:07, Matthew Maurer wrote: > Rust doesn't yet support patchable entry, but likely will soon. Disable > function padding when Rust is used but doesn't support it, and propagate > the flag when it does. > > Signed-off-by: Matthew Maurer > --- > [...] > diff --git a/arch/x86/Makefile b/arch/x86/Makefile > index 1a068de12a56..0228af62742e 100644 > --- a/arch/x86/Makefile > +++ b/arch/x86/Makefile > @@ -211,7 +211,9 @@ endif > > ifdef CONFIG_CALL_PADDING > PADDING_CFLAGS := -fpatchable-function-entry=$(CONFIG_FUNCTION_PADDING_BYTES),$(CONFIG_FUNCTION_PADDING_BYTES) > +PADDING_RUSTFLAGS := -Zpatchable-function-entry=$(CONFIG_FUNCTION_PADDING_BYTES),$(CONFIG_FUNCTION_PADDING_BYTES) It seems that at a glance there's no discussion around this, neither an issue, branch, PR or commit. Do you happen to have a link to it? > KBUILD_CFLAGS += $(PADDING_CFLAGS) > +KBUILD_RUSTFLAGS += $(PADDING_RUSTFLAGS) > export PADDING_CFLAGS > endif >