Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp948470pxb; Wed, 3 Mar 2021 22:09:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDYrMpLJzndl5GCo4aiJprQQQ0Kc4J0RnbUAeqMuzxFEc6t3yye2FyUrCPDFalWvIFBAAB X-Received: by 2002:a17:906:24c7:: with SMTP id f7mr2413961ejb.473.1614838198896; Wed, 03 Mar 2021 22:09:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1614838198; cv=pass; d=google.com; s=arc-20160816; b=oBwReUYusE6z3S+inH4qmlGPjjHX8UQfcwfyXXRYwystGG+cEi38GTPXVsBTDv+Vz+ o2MYvL6d9ipigpUtZPOdMXNRKeCK8exUV1GSDfiAnswcWaym/BX5oI7dwf8Y+9yQpPZK wI+Mt0/bYH0TMO+p3iaBiqc4a4ZjgmHAGbiA1pS5LGIouhCBbJavcvL2P/BvN7HgmMG6 0nub8qNztYSu8ua6RlfIIzMbuA4Qv25wlKQJ2/dDaljKi7UMHDPDdGxqAKqXiJa0VbOR aYNtgIe22twy/sadIKHKUef1z05UB1f186Kdhyog2cZ+nbijb49IxvjgLKJXBzOcX544 ySAA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:in-reply-to:user-agent:date:message-id:from :references:cc:to:subject:dkim-signature; bh=EX3EXHNLBQWVPPArmym0lRdXl1HHUZ4YWk23lkGFRKQ=; b=l8bbHPZfi0upzpW9j8HHezuV2JwtbEyBwPHb4kn2M1NHfb1xDZb4bsFerhFuiQQrcx EI3KmgZ7L3IeqtqkIWRJpbuwwr2rzNjfm6LwpseY63n92meiZQxZWaAwzn4lNBbkB/Il y6NjxU7/M0mQlOh2NrOlZAGvmuz9sY2N1YHV3ajz+F1VEhKSgNft0eSw7ux7U11auvGD 9+n1wORU2d9/s3D1nx6mxNvB3tLjvbl+roEnr6FvuMsUX/00HqgUNZd97Ws4rdu1GRmL 06sUqfVmfgOmo0fUdmeEkGKFe4AKcQLjdiXZH54ozeeZYS5ON+Fn8aSpsJaLhHprvztV z7Ow== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b="N0wvGr2/"; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si17271004edm.154.2021.03.03.22.09.36; Wed, 03 Mar 2021 22:09:58 -0800 (PST) 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=@nokia.onmicrosoft.com header.s=selector1-nokia-onmicrosoft-com header.b="N0wvGr2/"; arc=pass (i=1 spf=pass spfdomain=nokia.com dkim=pass dkdomain=nokia.com dmarc=pass fromdomain=nokia.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nokia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349573AbhCBKhi (ORCPT + 99 others); Tue, 2 Mar 2021 05:37:38 -0500 Received: from mail-eopbgr50106.outbound.protection.outlook.com ([40.107.5.106]:37638 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1575281AbhCBKSw (ORCPT ); Tue, 2 Mar 2021 05:18:52 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ehIV/66ElNso3LldO0DmAcwmHN5dO/08Ks/px6hgREwgN9rCRSqRuq4DdgLjTXzQpI2tJ/QSNXH8OBDIGfRRUURrCt0nrBr+NFB/6frvG0BjiH+a3/CODbY1QuUzU+h1yHRI1tu4cFM++9K5sADUtV9Pqg2qY6491GEIvJ8dXHCChgYWZNAT1GDufQ6MeSxX9xP5bvGg0ex/SYlxaOaEFbQX8gxhqGlF/fpR8O7z90fQ+z9TuVfmpacmCkyDX3yWQ36kQF4kWQp4yt0rTuNoJwhg844Oj5VWbJajBKzU6Vum+sLYDOF26ormzfon8O0YEVaLRz7HrgrIblNJzoj0xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EX3EXHNLBQWVPPArmym0lRdXl1HHUZ4YWk23lkGFRKQ=; b=NIoBWh9xKUD6LNjkZv4J+jIqeirryWYwm2PStMZ8t5FK45N5awD79FRIl/yRt0/lDYlBOWyyOXaJanQYLnQx7/CaMLaxXuzrtoBjbi4u1gH7D43/60vdOVmwDMP68ih1VspOnl2Y3xPD2q9Dm2EAwhkjqOa7gD4GPjxiC2hF/OxjMHY04YOc2E0hIvI5f0pmUy59dogCky5KF5G2LtrQNm5V3Yz7IsCnUcHltJJ9c4BUxXwI3pgSk37ZhW+Uf0nQQgDK78MUvQycDQdJgfrtXCOjcv90HAsDG8IkIuZ/NH1AQKzg10F53u1NrDqBY0YSwIGua8r7y0hdnTC9pbJz4Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EX3EXHNLBQWVPPArmym0lRdXl1HHUZ4YWk23lkGFRKQ=; b=N0wvGr2/AtwUGhpe1tbcDPZwyD1ZAWkdvJ0xQd29bgJvWSW1e5GyAHzlQHxq8oHgcwWYukpG0lTkaVnlc850HddfWh9dd358aBiVV0K9O0AuFQS5mCdn/GMX4Cp1EDRT0dVDKKjnX/89qplYgoRIB+fUm0ioMGZIJHvtbsWTS08= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=nokia.com; Received: from AM0PR07MB4531.eurprd07.prod.outlook.com (2603:10a6:208:6e::15) by AM4PR0701MB2209.eurprd07.prod.outlook.com (2603:10a6:200:45::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.9; Tue, 2 Mar 2021 10:00:54 +0000 Received: from AM0PR07MB4531.eurprd07.prod.outlook.com ([fe80::7c49:66bd:9795:1a3f]) by AM0PR07MB4531.eurprd07.prod.outlook.com ([fe80::7c49:66bd:9795:1a3f%3]) with mapi id 15.20.3912.016; Tue, 2 Mar 2021 10:00:54 +0000 Subject: Re: [PATCH v7 0/2] ARM: Implement MODULE_PLT support in FTRACE To: Linus Walleij , Ard Biesheuvel Cc: Florian Fainelli , Steven Rostedt , Ingo Molnar , Russell King , Linux ARM , Linux Kernel Mailing List References: <20210127110944.41813-1-alexander.sverdlin@nokia.com> From: Alexander Sverdlin Message-ID: <950ee6f5-13f2-8a07-6956-6921df4fc435@nokia.com> Date: Tue, 2 Mar 2021 11:00:51 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [131.228.32.167] X-ClientProxiedBy: AM0PR01CA0136.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::41) To AM0PR07MB4531.eurprd07.prod.outlook.com (2603:10a6:208:6e::15) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from ulegcpsvhp1.emea.nsn-net.net (131.228.32.167) by AM0PR01CA0136.eurprd01.prod.exchangelabs.com (2603:10a6:208:168::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20 via Frontend Transport; Tue, 2 Mar 2021 10:00:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 374b52f9-f6d4-49d1-f2a1-08d8dd62116a X-MS-TrafficTypeDiagnostic: AM4PR0701MB2209: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MCu7ArU+OxxkYIzheD4y6kIuBWGoF8n6EPfsq0YRe4Z51yis2WOPIVdTvMSzp7bJLmjzoTwV3WkO+xFkHlybLQ0+m/2ZFofDpnKy5H0YYBXsTzE6LNBn134nxqTntbuTo6lJnshTM2lb49QMep+dGbdIEf//nB23ImwMAd0r2MSM0xUgnBsPXRej/ClESuN4rh2JEqGMR5zYIUHyr45jXUM1HLhlYozgeB3bFatOwZ2r0FwdN0u26G7RXzUVmyl89AuCCkQhmZHX7JUOi+0ozE7VmlE1WaOnzQEW4NYKn2L9ZUkAx3Vll/gCnDzv3hsA8sryrrM2QgGwzEp7Fto3gb/S0mPVXgwwlsTYyyw2ua4mqVHnt9vxAyvlmiEwSQluEb8eJfoOEz9kD8EPCuX1hIVbAaHWaN8374emQesL/ERUcZyHIaYs7nVqH1vPFmTQWzkIdz6At0dAVauuyeselRiudvqgIcxscVpr9ifP6gYaGtDkwrvBwmr7ckEkHva2zoC9Ax4x/RYWFinjZvKXdeGV1g4+WSdhIHLAcr3jfvi68zWTxcsHUGHi+DTAHsC7ICDBkXlLdXR8uOoYFcmnmg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM0PR07MB4531.eurprd07.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(366004)(396003)(376002)(136003)(6506007)(8936002)(53546011)(956004)(6512007)(31686004)(8676002)(2616005)(44832011)(6486002)(52116002)(186003)(2906002)(16526019)(26005)(66476007)(66556008)(31696002)(54906003)(110136005)(66946007)(478600001)(4326008)(316002)(5660300002)(36756003)(86362001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?B?ZnZ4K211TUNQNWNCQ3B3aHZTZC91QW5Bd1BleE55S0w5WENJWW9qZDUyNlph?= =?utf-8?B?NWlTeFZESTZZUUVwdnNBWkZ3UHBCeThoODdkTmlNUW1YakdpMnVCaDBFWmRr?= =?utf-8?B?K3c2Ull0N2U1UjI2V3BaZkRYeHN3VWFSdWsybHI3R0FNYngxOUFJSkRNMlJY?= =?utf-8?B?UGlTVnQxcHBNd0RlZDlZeEVnV3loa0lCaXk1UW9iU0JLUFdPTjEvQXRobDBZ?= =?utf-8?B?U0VzV3EyQ0xwc0R2cGxVL1htTzFLNUhwNjlXSkdQQTNTdkJ1WHJhb2hYMmZO?= =?utf-8?B?ZU5SYk8vSTJFRXUvaTJveGlINFk5M1E5TThjZDhTaGNBSGdBSHV1MC9PK04w?= =?utf-8?B?OXBmUmVOTVNUbFp5WUdSZ3RQdUNlU2xkV2JJbWpreFh4bE5VS2R5Ykh5M29q?= =?utf-8?B?N0V4QXQ1aWdrazZwbUg2cXBrQlFYYm1qUk9Cczc0SzZQcTJVMVB0VnE4UmVh?= =?utf-8?B?V3hlY25rZTZCRW5WR2ZSTWRoNnRyZ0o3Yk1Xc3k4cm4wdmF2bWlJRmdQVW1T?= =?utf-8?B?dGNScWNqblJ3NVVQSE1oUjkzS0YveFJybUoyajl4U04wMEoyK2dFN2NNZn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U1H?= =?utf-8?B?VG9EdjBLbEhNNFFJcVVwNEV1Y0Zlc1l4ejk5T1hpbXdJQ05KeWpaUStEUlBU?= =?utf-8?B?eHpJRUtKRWJrdkt6UHExVDRacDZYSnRheGlZN0tpc1p6V1pGMzFCd1Z1Uzgz?= =?utf-8?B?S3UxRDljUGlVU0R5RWY5ek9KTjlVeFpoUjRzNGowa0JjYlNuYmhJVjZTWUUr?= =?utf-8?B?MG43VE5WTXBFWHFwTytBaE54OW9DV1d1c3pvdS94ZG94d3AwQ3JweVJGeDlJ?= =?utf-8?Q?LEbEatWrsqHYT3goi3ypngY61Vh7ndF8EP9msMF?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 374b52f9-f6d4-49d1-f2a1-08d8dd62116a X-MS-Exchange-CrossTenant-AuthSource: AM0PR07MB4531.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2021 10:00:54.3909 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: rus3UMy4Kcnj3oZhHV9bQAv1980gESKOokYYtwsniqygvAXrmpsQDT7vG38PCUx+yELnsukZ2XWEhib6dHMp9fmFMS7XVv5kADT5/WRgvww= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0701MB2209 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Linus, On 02/03/2021 09:29, Linus Walleij wrote: >>>> FTRACE's function tracer currently doesn't always work on ARM with >>>> MODULE_PLT option enabled. If the module is loaded too far, FTRACE's First of all: config ARM_MODULE_PLTS bool "Use PLTs to allow module memory to spill over into vmalloc area" [...] > Any suggestions on a quick use case that illustrates how the problem > manifest and how to test it is gone? The errors in patch 2, what do > I need to configure in to get them? Does it manifest at modprobe? And then I use this module to test for the problem: /********************************************************************** * Author: Alexander Sverdlin * * Copyright (c) 2018 Nokia * * SPDX-License-Identifier: GPL-2.0 * * This module is intended to test ARM MODULE_PLT functionality **********************************************************************/ #include #include #include static int fatmod_init(void) { asm volatile (".rept (6 * 1024 * 1024 / 2)\n\t" "nop\n\t" ".endr"); return 0; } module_init(fatmod_init); static void __exit fatmod_exit(void) { } module_exit(fatmod_exit); MODULE_AUTHOR("Alexander Sverdlin "); MODULE_DESCRIPTION("ARM MODULE_PLT test module"); MODULE_LICENSE("GPL"); -- Best regards, Alexander Sverdlin.