Received: by 10.213.65.68 with SMTP id h4csp477506imn; Tue, 13 Mar 2018 10:16:40 -0700 (PDT) X-Google-Smtp-Source: AG47ELsmqmRKMAqO9QL/8P7wOEhC/VjJNKneR7DpOor4LTskPRLgTo82KkzdsS8WFcohdpI7BLNW X-Received: by 10.101.73.141 with SMTP id r13mr1076944pgs.161.1520961400520; Tue, 13 Mar 2018 10:16:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520961400; cv=none; d=google.com; s=arc-20160816; b=bWn+lYwn41cbIf06p94KtHs6J5/BdvnLEbw3UcztdV9ORySri1VkTC3syRRqJYj186 ZYTOM/OWLM57N+JmF+4LHaPm/PzVSPkC1Nyn1ce+SsqhCGUEIoCGbNioKOQ1CgTcSGxv +xJezSn0P1JVqhekez0x9m4idJhOBv2Oa0R67jmKPKktwngzQxXfRgEG2fogXQRDL50I c7gJIyG/n+p5COfxu8BPW/Id4K6qPAC7v9fyDqWwgzr+0yN4jExByZDCruJ+hZ7UPuyx rerPGIQmHjPcnRJYp0Tz3NMqBZQ+Z7/lgUrbYgk17DYjL2TLikDO1kfD79mZg2H/fGP8 l0hw== 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=IkeLHFZAmOSBL8urUVx+QKcCd9FRZqNXQ8Eo0Owbq28=; b=dlOjriZfwWJLZletmaUag4KI8I2cdm5JnQpq8yIGHmSfV5uDIN3kYHvA2jwhgvvObG d4teA7YJNDSvXFR0RHj9bvC2a0md3cE3ES5+tAFbjJa9oaT70rjc7FyPmUH0kTCQaj3T I1eWMfv6s/gztkBU7UCTSxP07o6K+/Q/h47jdc1/A0VPN/sotqHrd/M/LrKw8joaiySu +6VHaIJrTd7hnLeeBt6BOLGtm5kMfoj/kG39ceUV7g8WwyCw3ox7+j+xiUStTIho+Owo lTjeyHTnzkz//Vm6HyX/ftpVxnV2lwQdeaqy2/etAixBA4UKZnNfTF2XLtfhUJz/ZJqN ARvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nokia.onmicrosoft.com header.s=selector1-nokia-com header.b=nGKh9Jhy; 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 r25si321493pge.478.2018.03.13.10.16.25; Tue, 13 Mar 2018 10:16:40 -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=nGKh9Jhy; 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 S1752137AbeCMROL (ORCPT + 99 others); Tue, 13 Mar 2018 13:14:11 -0400 Received: from mail-eopbgr30118.outbound.protection.outlook.com ([40.107.3.118]:45513 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751612AbeCMROJ (ORCPT ); Tue, 13 Mar 2018 13:14:09 -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=IkeLHFZAmOSBL8urUVx+QKcCd9FRZqNXQ8Eo0Owbq28=; b=nGKh9Jhy+qDLpQvr1O83npb2R/kHAVJpfCy5+X/IktvCOHTaQ1DnjIxYFCP8CFDvLiMKrYlqn1kJJbidWfJk0h/bt+9yL0HitA8fZnRytvj/B9VjhV90BgY5zfRixIZNrml43zAZqYYNi2nmWlTAc6CUJXzmF6XxuK19z0lWXbA= Received: from VI1PR0701CA0046.eurprd07.prod.outlook.com (2603:10a6:800:90::32) by HE1PR0701MB2393.eurprd07.prod.outlook.com (2603:10a6:3:70::12) 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:14:06 +0000 Received: from AM5EUR03FT033.eop-EUR03.prod.protection.outlook.com (2a01:111:f400:7e08::202) by VI1PR0701CA0046.outlook.office365.com (2603:10a6:800:90::32) 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:14:05 +0000 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 AM5EUR03FT033.mail.protection.outlook.com (10.152.16.99) 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:14:05 +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 w2DHDQLd029989 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Mar 2018 19:13:26 +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 w2DHDPv5029927; Tue, 13 Mar 2018 19:13:25 +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> From: Alexander Sverdlin Message-ID: <5d3ae760-45bd-3588-500f-1b352e1722de@nokia.com> Date: Tue, 13 Mar 2018 18:13:25 +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)(376002)(346002)(39380400002)(39860400002)(2980300002)(438002)(199004)(189003)(53546011)(6346003)(2486003)(23676004)(316002)(65826007)(229853002)(64126003)(76176011)(186003)(77096007)(26005)(2950100002)(68736007)(54906003)(58126008)(106002)(305945005)(356003)(4326008)(2906002)(5660300001)(36756003)(50466002)(26826003)(81156014)(81166006)(31686004)(8676002)(336012)(97736004)(8936002)(86362001)(478600001)(6916009)(65956001)(65806001)(230700001)(47776003)(106466001)(22756006)(31696002)(53936002)(6246003);DIR:OUT;SFP:1102;SCL:1;SRVR:HE1PR0701MB2393;H:mailrelay.int.nokia.com;FPR:;SPF:Pass;PTR:InfoDomainNonexistent;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;AM5EUR03FT033;1:ZR+UhJOeFiUUXzl1LXjARQBB73S7eaghoq3rQBxvybKnwolijPZWga/YepmfqSXMpC5Zj8gkhkqTP9dlOpx0BY5J9eTCjQrBWQng7hvPOgbiT4QPVovVQb00E5BIzPDM X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 31380aba-9eba-4fb2-1cbd-08d58905d377 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328);SRVR:HE1PR0701MB2393; X-Microsoft-Exchange-Diagnostics: 1;HE1PR0701MB2393;3:MVtxc5zL3bM1wrzxVz6oF4sUg4eTBHFpk+vOKkWUq6RAy6Lj7DIHi/mn0e3PCR8bGtcfTIKNmfJTX+r68Eh4TzhwSj4EsQ94TEZzBJzxyjUNxfS3IqXOAYLtzZjNrgYYyPOZLJftRVDflLKWvnB5LfcOnRG9MZBEwjIn/MMEMawLhyIrQNNJkbxaEX0mOjDucBRmFe0+lXlUEOBxF0jHZSmAcXQqkH0rZSg2W7LmXDMYZx2OE2Xe7YjfHn3k8vJgml+UdFvevtUGkUVSYpISZ82aei06sSXkGfKSi7CQp8MDxjoQTj5D4cqILJFUX88xRqgUu/hAREbzE9XuERP6gh6KoQiQMdyvg5rSzLSIBi4=;25:g/HZFvvumRdQkmrKlcRFp1oTZUc9bcQ0O53t90GFkN8X57RbN7FLcENkKZKLmRtes1UBSTd/UwHWcUzH4o2JltSxjdQMoyqRhEJyPdkU8BgOfIOnVpzUd0jJPGp57l8olEWo3qqc1jL1MJ/Rlt9foR6YfXhiq801AJVVf2XBQrV9NwvlS7jzOECtOvJaYwZUKbWiFDW5Z3UWjqI7tH48O5xm9xS3N30sbrzlCzlHjDIt73ukFnElPXHT7AHwvzXr6IM1JN6l2sYqKH2K/AMB+2Z0VkwTrkwUN8yMYrygUK3DqwKvVf9/ZK1ZCjWTXdvEPCB9CobE1/hZ4HGmw7K4EA== X-MS-TrafficTypeDiagnostic: HE1PR0701MB2393: X-Microsoft-Exchange-Diagnostics: 1;HE1PR0701MB2393;31:EwZh78DnWfhRbVzUseEP/7rqfuzGx8PZqHK/9q33auMURwgjSDrfUk8ILxSqv4YTiSR2d7OuCoZMJ7eAvmyAfxNCIN/1RHC/lqhmK1s8/AlsTGpb+LLreHAC0SayCrt2fTMnGk2FJDXo++7E9rWMA6kvJB4AUBFTeYqd3V+I2eNELkcLkVNsYpQACkeod2caIRSYtWZUWj24y9BcL4KYeer4Gz6GGQ5btkvY4HAbfE8=;20:StDQnJJmQdJ4PnM+Kc4AAYHxNICSS8muE/3bJR7nFeQeSrCcMkG1hwEZ6l/9SeV01p8WGQEkVhSceMMEOqJd9F+3Q6OxMyBgEYOK286pYKb6zN0zET1qzE10zkDVwCKVm102ybu1gOrHgbghJRQavh1RevacNivjIubCaJ6ckrvHdwOyXbpUZHbZ6Fx98PE4lsW78WUvMTg4mVWmQqNVI1R+McgiuyqF72v3lpo7qD6IOuaJ3ya2v5DmNwG3Sfm3aXyA6ROieu78XPkk3/fd6IMuOsVWgU52F5aii7q0d8eglSS1UHp7ibkUgeKDsIGReAkX6C2O1QWgrAaW7jsyA/fFdcMGu3bpOP1aFY2pN349HgHPLRdFRJ8oFZF9tcmHn2qT6Q+S3p6Fdlr6VVsf9m3sYnJI4EsyIlocw5A/3aubmCCyumdaH313ZPGZEzfto4aOe0KbSCz3fp7kAfrusNWBTcEs1fq4qhWJy5dzNDuD1hlfjRrKxS3pLJ3Aspgrgm6EH1Zs1QsmBjdKawerSQRHYGvc0cLdBk2FF/4EttjbHAqRrrmw2Y6mThol8icEL3N4XpHDxur6vqntiTWe+N9XtUbODc7aSg4njpjCBns= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231221)(11241501184)(806099)(944501244)(52105095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:HE1PR0701MB2393;BCL:0;PCL:0;RULEID:;SRVR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ysHZzUyyU+b8fF31PLH9NMv44gLm5sdEUwSxZIuK3lavd5d7kEIvrJPlpVNb2Mx7sEHZ7S/tLQPmqP4fbmJD7bT156HeSGq0SL7swsVNC16Yp9f6fvQBSQ2sV9ly4NxsvGdLxScQ7pUVRbLQI/IsqIpdl9AWs84Ah7E/0=;24:DU9KxT2ZI7CiwFikZ1/i0/XoEj7CGpoaZ/J3xvtlVP4tNovETSnJUQYGTP0kpoCUl8Fh81lc+IF2g6f3ldbKCipXpsa4Uvv4PRqApAJrFfs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;HE1PR0701MB2393;7:liPii4WhAwXjcyLoBImTUJmtWWMqSOnN89OH+ymfnJC6jZzv3vSLq/bwgOT8wyJ0xcoCsSOPSYePUTb4Uh5yUw2tXi9/6psg1lig1PbJL4PBFeXxDx+BfiBpkCpUK8rkde53ssbbXT6Ft05LzOehA9jU46snYwZFhr4F57T9rT+yyqURBObO8WDKSTFcr2Cqt4iXc5E+6zyXUBRBQooeH8GeedK0u30ywExwnVgIFnr3C0IqOcmniaVRZSOm6UH4 X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 17:14:05.6246 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31380aba-9eba-4fb2-1cbd-08d58905d377 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: HE1PR0701MB2393 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Ard, On 13/03/18 17:12, 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. >> + if (!pltsec->plt_count) >> + prealloc_fixed(pltsec, plt); I'll prepare v5 based on your other comments. -- Best regards, Alexander Sverdlin.