Received: by 10.213.65.68 with SMTP id h4csp487180imn; Tue, 13 Mar 2018 10:35:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELuqCL7WJBdf+lYZ29DlPj7tNKwr92u5RclaWhvXmlDhQvxYg+I5o5AIn/9xP5+IjzQ39LDN X-Received: by 10.98.63.147 with SMTP id z19mr1332007pfj.221.1520962512968; Tue, 13 Mar 2018 10:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520962512; cv=none; d=google.com; s=arc-20160816; b=lpMsVuLIBtloAeV+RSAyZzjZ8lta/HvOMfqDwgp7q9SwdyIQqTMjFzNTvuwpa/BdbS xsB2aVJv0IR6hGKfl3Iv8/GwasrctIPnblfMgPCWAZ5hc1qR0MYsPQUlDEXzoHgq3a4i CFKrZuemvufJmYdct9FZPA+F4N2arm6oCCGZgklTLe5yo+WsZ82EqfK5to5BFLle1FeJ kFI9KCOE3m+1uHsc7pM8VE6+QPfqUIbvORVeyZVgA1QJv5GYw7c5OutGW6EyRscKeiYV p1G0u8+AunIEWR34AQwz9JdmqF4w2teJGU9UEpSEnm9ZjRWGDRP7C6gR4HyOWz8fdJQu 7bZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=+u1qbTsW9Q/r1/kuRAo2194S6Cr7mrfgB2/YhNi5ufI=; b=yKjeMy2UU1TLTAphb1zIr+RKl5zflR82iTcgFR1Hzpi5tVf/en1RexwoMb6wZEjrm/ 9ftZxX/AkJ3v7b4MYCq1as5hb0OkFTAJQg3xeKzTbr+aHmRWRJy/Wx1U0fNXwawnP3VI qaLC0ZtUrgo/ttxInOIbhe/4RtTGfRVacItrZ6/c7Uf+LZs5WlRNpnvLFqo4Y6B2hdSR sR1Myd86Bo9zp9rzUlYUufOSfDvIMK3UPtHDTHuldyiF5ecr6MduT0C7Z+opPtKK0lMq M0jmwKeSZFGkJtVw2IOqWZu89sqsDiwmesaf7st/T72q8YwwGDywAZHWQeuk+H7AGSBg LhOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=JjbcaVR/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d64si467849pfa.384.2018.03.13.10.34.58; Tue, 13 Mar 2018 10:35:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=JjbcaVR/; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752334AbeCMRdY (ORCPT + 99 others); Tue, 13 Mar 2018 13:33:24 -0400 Received: from mail-ve1eur01on0103.outbound.protection.outlook.com ([104.47.1.103]:15232 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750855AbeCMRdV (ORCPT ); Tue, 13 Mar 2018 13:33:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=+u1qbTsW9Q/r1/kuRAo2194S6Cr7mrfgB2/YhNi5ufI=; b=JjbcaVR/gCq4f1MNHo5cZ0ZfedbkhDBH18eJqg4unIm6sPYjbK8+RQiOjdItq0Pdr/xdCW+bKUFxO6xTV7tX89v7mflDcytJOzu/foPro86fTS+tMwALFprtpeFPGMR+DjyRpoyO+Si0ibAsilwInE2EuO0QPLyyhGQfMb01pN8= Received: from VI1PR07CA0174.eurprd07.prod.outlook.com (2603:10a6:802:3e::22) by DB5PR07MB1128.eurprd07.prod.outlook.com (2a01:111:e400:52c7::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.588.7; Tue, 13 Mar 2018 17:33:18 +0000 Received: from DB5EUR03FT027.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e0a::208) by VI1PR07CA0174.outlook.office365.com (2603:10a6:802:3e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.588.7 via Frontend Transport; Tue, 13 Mar 2018 17:33:17 +0000 Authentication-Results: spf=pass (sender IP is 131.228.2.240) smtp.mailfrom=nokia.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=pass action=none header.from=nokia.com; Received-SPF: Pass (protection.outlook.com: domain of nokia.com designates 131.228.2.240 as permitted sender) receiver=protection.outlook.com; client-ip=131.228.2.240; helo=mailrelay.int.nokia.com; Received: from mailrelay.int.nokia.com (131.228.2.240) by DB5EUR03FT027.mail.protection.outlook.com (10.152.20.121) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.16 via Frontend Transport; Tue, 13 Mar 2018 17:33:17 +0000 Received: from fihe3nok0734.emea.nsn-net.net (localhost [127.0.0.1]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id w2DHWsxs015880 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Mar 2018 19:32:54 +0200 Received: from [10.151.73.41] ([10.151.73.41]) by fihe3nok0734.emea.nsn-net.net (8.14.9/8.14.5) with ESMTP id w2DHWrG3015840; Tue, 13 Mar 2018 19:32:53 +0200 X-HPESVCS-Source-Ip: 10.151.73.41 Subject: Re: [PATCH v4 2/2] ARM: ftrace: Add MODULE_PLTS support To: Ard Biesheuvel CC: linux-arm-kernel , Linux Kernel Mailing List , Russell King , Steven Rostedt , Ingo Molnar References: <20180313135314.18780-1-alexander.sverdlin@nokia.com> <20180313135314.18780-3-alexander.sverdlin@nokia.com> <5d3ae760-45bd-3588-500f-1b352e1722de@nokia.com> From: Alexander Sverdlin Message-ID: <60156300-b74a-628c-d296-7fb71a0eeb4f@nokia.com> Date: Tue, 13 Mar 2018 18:32:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:131.228.2.240;IPV:CAL;SCL:-1;CTRY:FI;EFV:NLI;SFV:NSPM;SFS:(10019020)(396003)(346002)(376002)(39860400002)(39380400002)(2980300002)(438002)(199004)(189003)(76176011)(93886005)(2486003)(97736004)(86362001)(356003)(77096007)(26826003)(53546011)(31686004)(478600001)(26005)(186003)(23676004)(305945005)(336012)(54906003)(31696002)(6916009)(65956001)(6246003)(8676002)(230700001)(81166006)(53936002)(106002)(8936002)(81156014)(47776003)(229853002)(68736007)(58126008)(106466001)(2950100002)(316002)(65806001)(4326008)(65826007)(50466002)(64126003)(22756006)(2906002)(5660300001)(36756003);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5PR07MB1128;H:mailrelay.int.nokia.com;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB5EUR03FT027;1:vCUP5OVfWDM85o1RywRPRVR+tcqR9GhhoXdQWGhT96IQ11kzwTkcZteTAvMixDH0jW+NqkpRyCjRyRa6XNnPbtlLjsFTzwxL5z8sbDcMsdjuMRPvUSVdtKrcahKy1bup X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66d09e3b-64cb-462a-0b81-08d5890881f7 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328);SRVR:DB5PR07MB1128; X-Microsoft-Exchange-Diagnostics: 1;DB5PR07MB1128;3:9PljmNHbPcvu6TVddZJtJImq3sq3qlOMwZN1RTo6NtAd0u0LiXunQIyyIkdnmAXjcnX1/d7mhdiWHaP4AfP5TIgVfxQqJ78wi56isbytI4El1f/O5dfggPyhE9LKA70SMqJjPk9caRR+RbvxaaPisFA2dSgvst9mrJvWk4R0EKcY9ifYl336mag0jSWtiOvmrr2ZKOprzu9dqk2h6gIWf+PMTud42gg06OxkdRX/XXLj0r3w/lycCeqj9uaL63zQgnczkgQmfEeBFLrRwi5DzOsNI4TtnhXokCYJ98TraKK9NFXrp8+UA1jFMpi1qWGezSiPlftTRg5lLL/4mPeczv8kVTs1S2fyDN4JMn+MXHQ=;25:9nP+z6ksqn3Zo/+/WAd8ReYY3wlSv+hPC7JicEZIHPuhSJO7UJKCp8AODegRI6Vl5eIJ6bwRzdMTcjf0HO8Vi9UXq0O/Fd+OSeu5KWhxDow1NCrO4xJFih0dI7kOkDhxy2mOOXAm9MkGC4qpPFEjnpDv93U1WgoBDwZZZVX3BWNKhbtDMQbADFv+rIQp87Qren/r9Kq+j2GU+mleB1mHAnsnLi8q6Es57zhH6BnMr8GTssoiZ9zYr83DWtij0UpbCZQpJI/caKAdljRyqfecwWleWdRz5z/Yndsqn/u0ip91MW5eSV2ab1mCyx5kYWbTMtWxuAm5f3BwYT/bEuDJcQ== X-MS-TrafficTypeDiagnostic: DB5PR07MB1128: X-Microsoft-Exchange-Diagnostics: 1;DB5PR07MB1128;31:5emFIF+9YtjvgOUTmxFoy3foir0tG5t8n2Bc6JlRdxvQDV+6RlwkFfXAZUx0SCnW7OHDiUnyJgma4XnWcxE4w0avKqrBpOq4SkNk8W71omA7OmdQVffr3iGPr9LW6l9N2pAvSye3U07KFUbqLRrC+UU37CycAHkY99NQhm0Nq1fRCDjuXz9lFckl5142QAbFMOGGUNupWJZ+Evovkp/DVFmulXMvMbKuxZK44Uw/YIE=;20:GoODXRvQSMty9CTNTV1BKbzTrKyPJN6ki9Vf/tI/q1gEtsTkbj2WmMSJ1IxfXOij3+af0Ed6epAH/iQ0PiozSUBU3S/FlHHv8eySEqtFHc506xRgwCe4KQDB1pFogdmhmqi5jE5eIsyI3eNdE+cCXdYz9gpkMaGZuHtswtkyJR8k7VJD1idK2G5LKltZEqWn8d9vFgtocKORLsgcPz8j8U70OPcw8PdVDTMV0ihjoPnzAkQvRczbK70ESAUkqFHoZXMlw2NX3rH3rikwoT9/zyJpp863JEErfZcnkwORKwmCfxy0OyYS3m4Ij1ho5CzzJfPjH2ED4DY0sFHQjjzcryKpcVJRxiguJqWedUrPpg01ZzxbGOk4lttV2qE39BTy7yQ2yrCR5L9Xw0VWMORLG9oskLF9MN8C7qXmesbnBgE0V/mHCa8Bu45SJRS7D3gbx045DGlkMs8Y1Q5A+EScFbgrVJKIn8WX+VbhCFOPHPwxQ5/iObwNBqROc3GjG6gL/ll0aT9CieA/1rIOqLrJmANmx3xcXCYhoyttaVtiVlRfZAqGT1F10Oh+s/2yNix03iAfjV7qCR4WK08RN83+A1/7LmH/kLMd6m1RdFjObuI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(5005006)(8121501046)(3231221)(11241501184)(806099)(944501244)(52105095)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011);SRVR:DB5PR07MB1128;BCL:0;PCL:0;RULEID:;SRVR:DB5PR07MB1128; X-Microsoft-Exchange-Diagnostics: 1;DB5PR07MB1128;4:+nvwkrIiEi10DX1iLnntrENhjUspHxsvDnN17lFs3O7iD2sXMho6iWHb73yYrq8phmEScQm4OqI3Hal2BNprjAloq4OvP3ltgASAsEu90P1UCvMwinh/J5uwfVgE3K77LY+aq59a21cazb8lGnMo+amlPOXlgoGj1Y3kryzkocfRq3VStRP1kJe57HVOx3m1fzyhjktr3dx+8Qnbot0quLjjd6RCUh4n4euRYs9ofgJFp8ShsS3qU44b3JCiIgGfkcHJpidceuf/C+GbcUCt4Q== X-Forefront-PRVS: 0610D16BBE X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjVQUjA3TUIxMTI4OzIzOlZZSFFVbFlRRS9XSHcxNmxVRlFWVVdZRXFG?= =?utf-8?B?OVZwZ3BLOUxNRXdiV0NWYzE2ZHdWRkFWOXlGUklZeGFORWhUQ3h4ZHk5V283?= =?utf-8?B?Uy9LdU9jL1R5YWpHalZTWFpuQytNMmlqWVU2VWIwQ1VRQVYxZTZhbXVKMDJ6?= =?utf-8?B?aGV6WUh1SldXdlh6SUk0QWEzdHBKdVdrWE91UTIyOHZ1dFV1dmRrL0VEZENr?= =?utf-8?B?R2hzQktOMWRLbWhZMHZZdTNSci9OMVV0MHM5WTJ5M3lGeFRycjI5amE2ZHBW?= =?utf-8?B?STBOWlNmZjhLYmlQSVU4SXI3R2lKR0k5MXQ0Vm9xWVl0YW9jYVVlcEJGUStX?= =?utf-8?B?cE1uMU9GUGZIc2JRNDFLakJyYjE5Z1hJSVQ1TGVZK3ljRnZadWNBb2ZSVXVX?= =?utf-8?B?Y28wYzV2Q1pVYnNXNjZwK2JFZjJoNUxxc0RhSkNKQVc4bENtazZZNmtBSEth?= =?ut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l5C5+Cy2hlsDah/MtT3Ww7SSr4jhX0mdz+MXFy7ZDEzUrt4tCeUVZT2qfZoQHbT9sRnloMaA17Uxla3RhtnE8jZX3gvcbuVDO7W08Zw1Z4EhXOobBaRQFgvwVuiU59rRQWhDX+QKbdwMyo8N27A==;5:lAffQojuMH7f3kmvLrb+mXRoaDmmYscC2CbK/HKtdT9D/pkKsTvgOqh80U6yFtb/3oy+SKqgHFnaHyRcDlxTb939iiH+iHTQ6Au3lnykOWkh0I5S6ASo7mfRm6Q9+FDWKx93j/xEC2pNRyoZJ+9qWkgveBqIrQ4VHhFx4h2nqVg=;24:vUCuG6Kg/OISbfZ2Iqq+wrUykFpSrNaV0hNMKuUe7hGhcJZciZGgtz5Zr1kYTu+t3SOzSSjac5q/VP5DiHRLO2o7DMLIZTPlPscDK8MbGoU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB5PR07MB1128;7:guT233Q0Pak/rhTYQ8GUbM/M5LVC36RevBlgprNMvY8v1Wmv32BZtwK2HOHcUAUYRfhTjXfLgPdlTnMNLkgjmPwjfGHCNiWXe3UcyGyYSDdBXxS+kBYR55JbOSn9ysUgRYoSfBZovkQxYDOzd5x6E6M7hn8l48nR+oGr/waM5ObaP81QK1Jj0v4yCnvZ9LbU3eS0qqIdME4dQ4KbkLpW9cKE6+fDDA5KtCZx+QT9XGMjbnpeHg877aN19WHrEDGE X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 17:33:17.4113 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 66d09e3b-64cb-462a-0b81-08d5890881f7 X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5d471751-9675-428d-917b-70f44f9630b0;Ip=[131.228.2.240];Helo=[mailrelay.int.nokia.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB1128 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ard! On 13/03/18 18:18, Ard Biesheuvel wrote: >>>> u32 get_module_plt(struct module *mod, unsigned long loc, Elf32_Addr val) >>>> { >>>> struct mod_plt_sec *pltsec = !in_init(mod, loc) ? &mod->arch.core : >>>> &mod->arch.init; >>>> + struct plt_entries *plt; >>>> + int idx; >>>> >>>> - struct plt_entries *plt = (struct plt_entries *)pltsec->plt->sh_addr; >> ^^^^^^^^^^^ (*) >> >>>> - int idx = 0; >>>> + /* cache the address, ELF header is available only during module load */ >>>> + if (!pltsec->plt_ent) >>>> + pltsec->plt_ent = (struct plt_entries *)pltsec->plt->sh_addr; >>>> + plt = pltsec->plt_ent; >>>> + >>> Where is plt_ent ever used? >> Above is exactly the place it's used. >> I need to cache it because after the module load is finished the ELF header is freed, >> pltsec->plt pointer (*) is not valid any more. >> With the above modification it's possible to call the function during the whole life >> time of the module. >> > Right, ok. That's a problem. > > This means that you are relying on get_module_plt() being called at > least once at module load time, which is not guaranteed. This is indeed guaranteed. For FTRACE use case. If it's being called from FTRACE in run time, this would mean there were long calls in this module section, which in turn means, get_module_plt() was called at least once for this module and this section. This doesn't hold in general, though. In any case, if you insist, I can try to rework the whole stuff implementing module_finalize(). -- Best regards, Alexander Sverdlin.