Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2101131pxp; Mon, 7 Mar 2022 08:25:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJwftOW3IwLUuCrNO96HklLo8yG+RrsXsTKsm6iw8+GPNqM6XGYexRobvJkuTta8L7/LmAcS X-Received: by 2002:a17:902:e88d:b0:151:ba78:3bc1 with SMTP id w13-20020a170902e88d00b00151ba783bc1mr13066134plg.13.1646670320040; Mon, 07 Mar 2022 08:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646670320; cv=none; d=google.com; s=arc-20160816; b=VPlAeYqU5HodeUvOzBvzTbcFFt6vOPceDytExxU9n5ZcN75tU8Jldw7MBWGnFbI4I9 /WZLqUgyAd8Uq7Qm6sMw3Fz40eKG5o8veI4kayCeU9nrPrFuTd+Nk91DwKiZ83U//Zrm 9YL95VuYvWNe9ajj8ieOCv2KQIlNH/X+Qzpstck2Pl5mA/rf+/v2du0cRf15K7lMzIAm RD4TCt+yFcrHPvbysLcqyyMJQknTUUumLEfBa17Am+BRR+XxxbyPoHB8w3TRp7UjtKB1 /3cYwfXlwZY+PZz5auOdNqdHFwu2eVL4/XSlyc2jjm6dx5Jpd4eTYKpO0rkGEDlNVWMv XE2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:from:cc:to:user-agent:mime-version:date :message-id:dkim-signature; bh=Gv6rna6CJDge1dhl8lgPtVO1e/qxTKmXcSfXadSA3jE=; b=SAAtvQKa0xkoKlAiRo7UsnTdg7qErbKqHb4QL7/9ZuwAhY0HMH/IwgMV4vhESfkvf9 ItP4vCHgMWmAley2pcSpQOAXZrGcEgyDkgkxkeKf9iB1FbZCOBxkj20aNpyPOHeO8hIQ 8N/CQbppnxOwYPC5rrjKxKQ/KiI3rZr9ut3+FsBgcJgtR+a675BhDuPvs8WhsR+5CdHK isBjZJxeC3apVENY1XK7UcvHUmhbjzNsGXXRkiX8zpDygXRigb1Pv2jSGckDFPpsN917 iDDRc64NTm1HCzG+BbPmHMOu2zf5WQi1lx6ImfTq50u1ZRBFpAyCOoqMgB6A1wexMZBn lhtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=UCSPvq4W; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f13-20020aa78b0d000000b004c3cc5d2903si11727932pfd.196.2022.03.07.08.25.02; Mon, 07 Mar 2022 08:25:19 -0800 (PST) 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=@broadcom.com header.s=google header.b=UCSPvq4W; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239237AbiCGLcm (ORCPT + 99 others); Mon, 7 Mar 2022 06:32:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241914AbiCGLc2 (ORCPT ); Mon, 7 Mar 2022 06:32:28 -0500 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7556326108 for ; Mon, 7 Mar 2022 03:26:49 -0800 (PST) Received: by mail-pg1-x531.google.com with SMTP id e6so13305405pgn.2 for ; Mon, 07 Mar 2022 03:26:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=message-id:date:mime-version:user-agent:to:cc:from:subject; bh=Gv6rna6CJDge1dhl8lgPtVO1e/qxTKmXcSfXadSA3jE=; b=UCSPvq4WvqHMG2UDZBY9M//7O8q6M0pECIdd2Fci58rugLTgO4ruddcyMftPMze4/0 EZoH2VQYpf659FRwolfg983mBT5gCdTYMqjKUo4+7OcnBLlAtx08T6/Efc9hdMYbb+v9 5kJgtOWj8LKR+nG02FhFOopiMnMRAqKsqwHb4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:to:cc :from:subject; bh=Gv6rna6CJDge1dhl8lgPtVO1e/qxTKmXcSfXadSA3jE=; b=Rml7vdvjk33OlaCe3BjAxRXRZ9/cz52qFsWxA2rxSeob9bUmFUCjaBA4EwxszpUZcx sAxDm3+Y5/QI9nK8fWSTJ8KaBlwc9qXSAaJ1r9ubZjGpbrzypOlJQt0fe8E8zcTuBfSu NnHjGsYPbkj6cKyYBIwdJHXM81mBUIX3fAGQubqb8NK32PSFueW0Yb9zAqpL19S7ZAAm q1x0/V/CF245F5FAecerCN3WGMj+ywC5Gd1muc6/PuXS7Hnmt/7SaNc4oAN6hYTTKPWH DN02yBOXo/mSxBSNyZSyDB4alTElLl8dEG7EPOiXhsNXimaiHJln6AAYSafzV3QaFXCF 9zOw== X-Gm-Message-State: AOAM530TW0XFth6CT6uBMVKEwngapRAMEzxZnQFnQNUwOHU7+vTf5fM8 bKLibHd4LZR6QxqYmu4JC8TB8P4SwPBKwOSG X-Received: by 2002:a63:68c:0:b0:37f:fa5b:4ef with SMTP id 134-20020a63068c000000b0037ffa5b04efmr8564008pgg.520.1646652408479; Mon, 07 Mar 2022 03:26:48 -0800 (PST) Received: from [10.176.68.61] ([192.19.148.250]) by smtp.gmail.com with ESMTPSA id t1-20020a634441000000b00372cb183243sm12081628pgk.1.2022.03.07.03.26.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Mar 2022 03:26:47 -0800 (PST) Message-ID: <9a86b2c9-1009-1683-442e-61c5a7dc8cf3@broadcom.com> Date: Mon, 7 Mar 2022 12:26:45 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 To: Steven Rostedt Cc: Ingo Molnar , Linux Kernel Mailing List From: Arend van Spriel Subject: ftrace bug Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e5a81305d99f2374" X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --000000000000e5a81305d99f2374 Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi Steven, I wanted to use FTRACE on an ARM platform and I hit the following warning which results in ftrace bug. This happens upon loading a module. Looking up the warning I suspect the branch target is too far off. The module is quite large and therefor not loaded in the modules section. Is there a way to exclude a module. In ftrace_module_init I see a check for !mod->num_ftrace_callsites. Is there a way to avoid creating ftrace callsites in a module? Regards, Arend ------------[ cut here ]------------ WARNING: CPU: 2 PID: 1525 at arch/arm/kernel/insn.c:47 __arm_gen_branch+0x70/0x78 CPU: 2 PID: 1525 Comm: insmod Tainted: P 4.19.183 #2 Hardware name: Generic DT based system [] (unwind_backtrace) from [] (show_stack+0x20/0x24) [] (show_stack) from [] (dump_stack+0x98/0xac) [] (dump_stack) from [] (__warn.part.0+0xcc/0xe8) [] (__warn.part.0) from [] (warn_slowpath_null+0x54/0x74) [] (warn_slowpath_null) from [] (__arm_gen_branch+0x70/0x78) [] (__arm_gen_branch) from [] (ftrace_make_nop+0x64/0xec) [] (ftrace_make_nop) from [] (ftrace_process_locs+0x370/0x4b4) [] (ftrace_process_locs) from [] (ftrace_module_init+0x38/0x3c) [] (ftrace_module_init) from [] (load_module+0x18d0/0x2570) [] (load_module) from [] (sys_finit_module+0xe0/0xf8) [] (sys_finit_module) from [] (ret_fast_syscall+0x0/0x58) Exception stack(0xd9b1bfa8 to 0xd9b1bff0) bfa0: 01170228 00000000 00000003 01170228 00000000 beb7ceb3 bfc0: 01170228 00000000 beb7cdc4 0000017b 00127010 00000000 00000000 00000000 bfe0: beb7cc38 beb7cc28 0001a0dc 00012890 ---[ end trace f48808a851a4544a ]--- ------------[ cut here ]------------ WARNING: CPU: 2 PID: 1525 at kernel/trace/ftrace.c:2034 ftrace_bug+0xfc/0x394 --000000000000e5a81305d99f2374 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQdwYJKoZIhvcNAQcCoIIQaDCCEGQCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3OMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjAN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