Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4109970pxk; Tue, 29 Sep 2020 14:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytWnC7Ge0asm+RUZekw0g+vSBgYhHB6XGBAGpKRZFjnPY1IT6Rwyivxh4B2Qkr2bIlu3ED X-Received: by 2002:a17:906:4a53:: with SMTP id a19mr6231591ejv.56.1601416202855; Tue, 29 Sep 2020 14:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601416202; cv=none; d=google.com; s=arc-20160816; b=bhV0EQpFS7w8A8LlqXhl9BGD3k4bhVupOXEgEhTk1FBQGofjlMbG1WSwBzgayBiQUt yDJBBKUix3ZSG0SK+Q89EeVW4K9I64SyO1Uul39rPpXcEL3SOz11+T/7XdJlJKqyfwYu XqcgxwG2ZCMxykiEUoUiLLXNJQMdiXZnlzLKx09hOIVIFE7/5xEPTzQ7sWQmGIxfIDNr Ill7FMbJtHI30hEEBZcSf9tBYoV6B9qiwl/fCysQA59nP2ltp9crEVwmm02/+GOMAZ7x O5eKYrQl9DtsNebkXht8gb0XGue0GKH7xb3MTIo3SNN7/Mklvjkv8qduE4gHvTqd+1Bb TDVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:sender:dkim-signature; bh=Xjrukg6K3IydY/lqqi+bCZNdR5RjdEmABiI8yk+fZMI=; b=EOqjx9FVg+yBPWm8UeSE1XXnawuLUhixDYu8Y0x516kYlMHlAT3IHFAhbWVXxufRK0 MJhBxJd3vE9vLFJ67vWu3TRMMG2tV9zOGByXaJVakHN7RmkNk5IYxTW176MrunVrrTjK fGz9/+97NRabKTmuGPxb5rV52v6oPlLj9UICEEP1/I3T21Vpkg/vkDFyBfGxFDWlBGv0 g1Q+1dWPAAxTLwSFxhGYagnONwnv8G2ack3yLcIbI2VhlO9N2z5ESmig5njYFwoHmA4z 4ETEf8CmkdrU9VW9b71azzpoLbc7ihdwHgPIFubqaNGMt5F28NB3WTu8oNOekEF0iLXv fQdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HdK7XgY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os2si3613691ejb.112.2020.09.29.14.49.39; Tue, 29 Sep 2020 14:50:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=HdK7XgY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729372AbgI2VsB (ORCPT + 99 others); Tue, 29 Sep 2020 17:48:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728450AbgI2Vqy (ORCPT ); Tue, 29 Sep 2020 17:46:54 -0400 Received: from mail-qt1-x84a.google.com (mail-qt1-x84a.google.com [IPv6:2607:f8b0:4864:20::84a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDD08C0613D5 for ; Tue, 29 Sep 2020 14:46:52 -0700 (PDT) Received: by mail-qt1-x84a.google.com with SMTP id m13so4062876qtu.10 for ; Tue, 29 Sep 2020 14:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=Xjrukg6K3IydY/lqqi+bCZNdR5RjdEmABiI8yk+fZMI=; b=HdK7XgY20csMFcb+NLyDCXa0Y0BGLZ848JpvtrKXuN4kP13qc7mB9gIo/tOvGsTK0n Ji2dtRPOFfuxFcA+duNxDZiijoE33HNw7tWDF5E8m1wqENg9cj6ei3CjwJ0N3MORXBa0 OiIDsCN2lwWZN36P+HMA0/i6r+hGq8LSRXCmTEW0ezq9gHlvKKSRObpHJBOae/EdWdAU 32Gd6c/t2yV+iQQ9uWMBg3zEyEcOs6POlcO4VSL93GZziqn82PoJ2cs2fwnaH1D9AfNM SAML6VP9UfLTVbfCFJsAI8Lgk3AeE4OjZhWgBqaEtQTo1lOZgisnM8dMNB6pz6Qg5Lay cqDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=Xjrukg6K3IydY/lqqi+bCZNdR5RjdEmABiI8yk+fZMI=; b=d/aG2a5ki3MXphwqnWKjTTSUR4MCzFWCXv4s/4fKgAGWFMuArBal90xrXk4km/9tjg Hunn38aT+7ZAwXTBfh1y3lRU3oNZ78JP4UkcbWHSlhMEO2aPC9VRW6Q0IyIONuA8xvno gMyqRCk894BmGspmIPiUm0qEQwzbHhZqTtqROWHL/sfED9nWOxh0G06qi5UzM79ipXxq 3isRDKXJKBxtKkabpkJ23j72slCsZ3O8DG5S29XTOyO/wfKxQ+hTgNS96ghRoRX4nRh9 awQeJTjHOH6OQTlm6/i6I3Dp9n59rDkl4bI5TRKnTlzpxVR/oTy9Xf0pQvPq8DvXRUDq PrVg== X-Gm-Message-State: AOAM531UdZiJpRMQqOMSbU/M/4fVldgxjLW2ltfJ7GgFSo7EvahC3AGM EB8aDkzy8rEM2+boSANlGvwzoIKmn1UpidyMLE0= Sender: "samitolvanen via sendgmr" X-Received: from samitolvanen1.mtv.corp.google.com ([2620:15c:201:2:f693:9fff:fef4:1b6d]) (user=samitolvanen job=sendgmr) by 2002:ad4:42b3:: with SMTP id e19mr6361028qvr.6.1601416011975; Tue, 29 Sep 2020 14:46:51 -0700 (PDT) Date: Tue, 29 Sep 2020 14:46:11 -0700 In-Reply-To: <20200929214631.3516445-1-samitolvanen@google.com> Message-Id: <20200929214631.3516445-10-samitolvanen@google.com> Mime-Version: 1.0 References: <20200929214631.3516445-1-samitolvanen@google.com> X-Mailer: git-send-email 2.28.0.709.gb0816b6eb0-goog Subject: [PATCH v4 09/29] arm64: disable recordmcount with DYNAMIC_FTRACE_WITH_REGS From: Sami Tolvanen To: Masahiro Yamada , Will Deacon , Steven Rostedt Cc: Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , Nick Desaulniers , clang-built-linux@googlegroups.com, kernel-hardening@lists.openwall.com, linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, x86@kernel.org, Sami Tolvanen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY to disable recordmcount when DYNAMIC_FTRACE_WITH_REGS is selected. Signed-off-by: Sami Tolvanen --- arch/arm64/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 6d232837cbee..ad522b021f35 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -155,6 +155,8 @@ config ARM64 select HAVE_DYNAMIC_FTRACE select HAVE_DYNAMIC_FTRACE_WITH_REGS \ if $(cc-option,-fpatchable-function-entry=2) + select FTRACE_MCOUNT_USE_PATCHABLE_FUNCTION_ENTRY \ + if DYNAMIC_FTRACE_WITH_REGS select HAVE_EFFICIENT_UNALIGNED_ACCESS select HAVE_FAST_GUP select HAVE_FTRACE_MCOUNT_RECORD -- 2.28.0.709.gb0816b6eb0-goog